A6:2021 | Vulnerable and Outdated Components (7) | Cycubix Docs
How do I generate a Bill of Materials
There are several open source and paid-for solutions that will identify risk in components. However, there are not many tools that will deliver a complete list of "ingredients" used within an application. OWASP Dependency Check provides the ability to generate a bill of materials and identify potential security risk.
Dependency check uses several pieces of evidence to determine the library names. You can add OWASP Dependency check as a plugin to the pom.xml of a Maven project for instance. The plugin will download information from public vulnerability databases and it will check if vulnerable libraries are used and will indicate which vulnerability was reported.
As part of a development pipeline, you can instruct the plugin to fail the build if there are violations that the development team was not aware of. Additionally you can use an xml file to waiver some of the violations. You should do so if the mentioned vulnerability cannot be exploited in your application.
In the parent pom.xml from WebGoat you can see an example:
And also an example of the suppressed violations.
In the case of WebGoat, the plugin is activated when the following is run (owasp profile):
Below is a snippet of a report, which can be found in e.g. webgoat-container/target/dependency-check-report.html:
Last updated