We recently started using Veracode for vulnerability testing. Is there a way to selectively exclude all the third party libraries and focus the scan only on our internal libraries code?
Hi: The answer to your question depends on the language in which the application you are scanning was written.
If you have additional questions, please contact Veracode Support and they can help you further.
Veracode agent based scan is to find out vulnerabilities in all the dependency libraries including third party libs.
For JavaScript/NPM projects scope can be set to production to exclude devDependencies from the scan. Add a file named srcclr.yml to the root of the project add this to it:
# Prevent scanning 'devDependencies' for an NPM project
scope: production
References from Veracode: https://docs.veracode.com/r/Multi_Language_Scan_Directives https://docs.veracode.com/r/Veracode_SCA_Agent_Commands
For NPM, you can set the scope directive to one of these values:
production or prod to restrict the scan to production dependencies, including > the optional dependencies you can install. development or dev to restrict the scan to development dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With