You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add more documentation around components[].scope #293
The CycloneDX standard includes a scope attribute for each component:
I am confused about when one should use required, optional or excluded when generating an entry for a component. Are there any examples? Could the description be altered to make this more clear?
This attribute can be deprecated in favor of evidence. The presence of an occurrence or a call stack evidence is proof that the component is definitely required. All other components could be treated as unknown to keep it safe.
Example:
consider CVE-2023-4910. Typically unit test files would be treated as a dev dependency and therefore as scope optional. However, there is direct occurrence evidence (even with an SBOM with a post-build lifecycle) so this component must be considered as required. However, the evidence alone is enough instead of setting another redundant attribute.
scope is a way to include a component but not assert that that component is delivered or included in the inventory. For example, you may want to include Windows XP Embedded as a component, mark the scope as excluded, as a way to indicate that the entire stack will include the OS, but that the supplier does not provide it with the software. There is ongoing discussions within CISA on how to specify runtime requirements. Expect this capability to expand in the future.
For example, you may want to include Windows XP Embedded as a component, mark the scope as excluded, as a way to indicate that the entire stack will include the OS, but that the supplier does not provide it with the software.
with CycloneDX 1.7, we introduced external runtime dependencies
Make it possible to describe external dependencies that are not part of a shipped product,
like runtime environments, shared objects and dynamically linked libraries, operating system, hardware (architecture) etc.
Activity
prabhu commentedon Dec 24, 2023
This attribute can be deprecated in favor of evidence. The presence of an occurrence or a call stack evidence is proof that the component is definitely
required. All other components could be treated as unknown to keep it safe.Example:
consider CVE-2023-4910. Typically unit test files would be treated as a dev dependency and therefore as scope
optional. However, there is direct occurrence evidence (even with an SBOM with a post-build lifecycle) so this component must be considered asrequired. However, the evidence alone is enough instead of setting another redundant attribute.https://www.malwarebytes.com/blog/news/2023/11/owncloud-vulnerability-can-be-used-to-extract-admin-passwords
stevespringett commentedon Dec 27, 2023
scopeis a way to include a component but not assert that that component is delivered or included in the inventory. For example, you may want to includeWindows XP Embeddedas a component, mark the scope as excluded, as a way to indicate that the entire stack will include the OS, but that the supplier does not provide it with the software. There is ongoing discussions within CISA on how to specify runtime requirements. Expect this capability to expand in the future.stevespringett commentedon Dec 27, 2023
With that said, we will expand the documentation for v1.6. Thanks for the suggestion.
jkowalleck commentedon Feb 8, 2024
JSON was fixed via d92e58e
XML and ProtoBuf already had the needed docs,
see
specification/schema/bom-1.5.xsd
Lines 857 to 880 in 46ff114
[WIP] v1.6 (#323)
[WIP] v1.6 (#323)
[WIP] v1.6 (CycloneDX#323)
jkowalleck commentedon Mar 3, 2026
with CycloneDX 1.7, we introduced external runtime dependencies