Replies: 3 comments 1 reply
-
|
Hello @nigellh In most cases, Trivy detects only runtime dependencies (for example, it skips test dependencies from pom.xml files or *.deps.json). Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for getting back to me. If you are skipping items and not including them in the SBOM, it is my understanding that you are creating an incomplete SBOM. There are various documents around that indicate that everything that is shipped to the customer, forms part of the deliverable or however you would like to define it Should be included in the SBOM, CoO and, if needed, the Notices file. For example in the currrent NTIA SBOM Minimum Elements Report which is due to be updated soon, it has a number of relevant points:
In the case of any items such as test that you are missing out, you might be failing to comply with the license and/or copyright by not listing them. A little simplistic, but it would only take the customer to look at the code in the product and ask why these packages are not listed in the SBOM. My department analyses our companies products to ensure that we are complying with all the licenses and copyrights. It does prove a challenge when the development team argue that it is not used by the product so should not be there, particularly if it has a vulnerability. My understanding is that this is what the Scope field in the SBOM components section is for. It allows the package to be listed in the SBOM and marked as Excluded as it is not used by the product.
I'd be interested in your thoughts on this. Cheers, N. |
Beta Was this translation helpful? Give feedback.
-
|
Wow thank you for the detailed answer and it helps greatly to understand this. It might be worth keeping in mind the Minimum elements report as the people who are using Trivy to generate an SBOM will be expecting it to match what this is requiring. Thank you for the fantastic and quick responses. Much better than some other SBOM generating tools! ;-) |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Question
In generating an SBOM, specifically a CDX one do you also generate the components with the scope field set. See
https://cyclonedx.org/docs/1.6/json/#components_items_scope
Or the equivalent for other SBOMs. As in required, optional or excluded.
My understanding is that when a package is included in a product, but is not part of the product such as test or build, it should be marked as excluded in the scope field.
The default for this field is required so, technically, it is an optional field.
Target
Filesystem
Scanner
License
Output Format
CycloneDX
Mode
Standalone
Operating System
Does not matter
Version
Beta Was this translation helpful? Give feedback.
All reactions