Scan with Veracode Container Security
Veracode Container Security scans return vulnerability data and policy evaluations based on several categories of findings.
Before you begin:
- Ensure you have installed the Veracode CLI.
- If you want to run container security scanning in a Docker container, ensure you have installed a package containing compatibility libraries for
glibc, such aslibc6-compat.
To complete this task:
-
At the command prompt, run this command:
./veracode configure. -
When prompted, enter the API ID and secret key you generated in the Veracode Platform.
-
Fetch the custom policy to be applied to the scan. For example, to fetch the policy named policy-container-scan, run the following command:
./veracode policy get demo-policy-container-scanThe preceding command fetches the policy in Rego format. To check if the policy is downloaded, run
ls -ltr. -
Run the
scancommand with the appropriate policy, target type, target, and flags. For example:./veracode scan --source alpine:latest --type image --policy policy-container-scan.regoTo print the output to a file, add the
-oflag. You can share this file or save it as an artifact in a pipeline. For example:./veracode scan --source alpine:latest --type image -o alpine-latest.json -
Review the results.