
Sohlae (Community Member) asked a question.
Is the dynamic analysis for Veracode available for integration with Azure DevOps? I found this document but it seems to be for static analysis only.

Sohlae (Community Member) asked a question.
Is the dynamic analysis for Veracode available for integration with Azure DevOps? I found this document but it seems to be for static analysis only.

hello @Sohlae (Community Member)
There isn't available a plugin to trigger a dynamic analysis. You'll need to use the REST APIs provided using the http CLI.
Basic steps:
Save your API credentials as a variable secret inside of your Azure pipeline
You can install httpie CLI and the veracode-api-signing package to authenticate, like bellow:
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
pip install httpie
pip install veracode-api-signing
displayName: 'Install Requirements'
And then you'll need to create a json configuration file, and send a POST request to create a new DAST scan. The example and details are provided here: https://docs.veracode.com/r/t_dynamic_single
----
Optionally, you can use the Docker image veracode-api-signing avaiable here: https://hub.docker.com/r/veracode/api-signing
example:
script: |
docker run --rm --env VERACODE_API_KEY_ID=$(VARIABLE VERACODE ID) --env VERACODE_API_KEY_SECRET=$(VARIABLE VERACODE KEY) veracode/api-signing:cmd POST "https://api.veracode.com/was/configservice/v1/analyses" < input.json

Thank you Lucas. I will try this out. Do you also have steps on how to implement SCA scans?

absolutely @Sohlae (Community Member)
For SCA Agent-based scans:
Set up and agent scan and workspace
Linux/Mac agent pools
- task: CmdLine@2
inputs:
script: |
export SRCCLR_API_TOKEN=$(SRCCLR_API_TOKEN)
export SRCCLR_SCM_URI=$(Build.Repository.Uri)
export SRCCLR_SCM_REF=$(Build.SourceBranchName)
export SRCCLR_SCM_REF_TYPE="branch"
export SRCCLR_SCM_REV=$(Build.SourceVersion)
curl -sSL https://download.sourceclear.com/ci.sh | bash -s – scan --allow-dirty --update-advisor --uri-as-name || true
displayName: 'Veracode SCA - Agent-Based Scan'
Windows
$env:SRCCLR_API_TOKEN
$env:SRCCLR_API_TOKEN='$(SRCCLR_API_TOKEN)'
$env:SRCCLR_SCM_URI='$(Build.Repository.Uri)'
$env:SRCCLR_SCM_REF='$(Build.SourceBranchName)'
$env:SRCCLR_SCM_REF_TYPE='branch'
$env:SRCCLR_SCM_REV='$(Build.SourceVersion)'
Set-ExecutionPolicy AllSigned -Scope Process -Force
$ProgressPreference = "silentlyContinue"; iex ((New-Object System.Net.WebClient).DownloadString('https://download.sourceclear.com/ci.ps1'))
srcclr scan $(local path that you app is in)
---
Note: always review the pre requeriments for your language example:
.NET >> https://docs.veracode.com/r/c_sc_net
Java >> https://docs.veracode.com/r/c_sc_java
JavaScript >> https://docs.veracode.com/r/c_sc_javascript

Hi @lucas.ferreira (M3Corp), does Veracode provide the option for a passive and active scan, the latter taking a longer time to execute?

@Sohlae (Community Member)
At the moment no, but you can create a scope or working on in a specific configurations for yours scans to be more directly.
Direcotry Restrictions
Similarity Threshold
Control which web pages the analysis ignores based on the similarity of the content on each page. The scanner compares each web page with the other pages it previously scanned to identify pages with similar content.
URL Blocklist
Exclude URLs that you do not want the Dynamic Analysis to scan.
Crawl Script
You can create a script using the Selenum IDE browser extension that it will record all interactions that you do in your browser tab app screen. In this case, would be possible to create a "path" that the scanner would the follow and only test pages and URLs that you recorded.
Links to help you


@Sohlae (Community Member)
I know that you can update manually or via script, using tools like "sed", "echo" etc... depends of you operate system and script language that you prefer.
As a example, here we have a script into Azure Devops, executed into a CMD task. The script create a json with many parameters using echo

Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the community.
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
.png)
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
hello @Sohlae (Community Member)
There isn't available a plugin to trigger a dynamic analysis. You'll need to use the REST APIs provided using the http CLI.
Basic steps:
Save your API credentials as a variable secret inside of your Azure pipeline
You can install httpie CLI and the veracode-api-signing package to authenticate, like bellow:
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
pip install httpie
pip install veracode-api-signing
displayName: 'Install Requirements'
And then you'll need to create a json configuration file, and send a POST request to create a new DAST scan. The example and details are provided here: https://docs.veracode.com/r/t_dynamic_single
----
Optionally, you can use the Docker image veracode-api-signing avaiable here: https://hub.docker.com/r/veracode/api-signing
example:
script: |
docker run --rm --env VERACODE_API_KEY_ID=$(VARIABLE VERACODE ID) --env VERACODE_API_KEY_SECRET=$(VARIABLE VERACODE KEY) veracode/api-signing:cmd POST "https://api.veracode.com/was/configservice/v1/analyses" < input.json