Enhance SBOMs With Runtime Security Context by Using Datadog Software Composition Analysis | Datadog

Enhance SBOMs with runtime security context by using Datadog Software Composition Analysis

Author Karishma Asthana
Author Hossein Siadati
Author Trishank Kuppusamy

Published: July 11, 2023

Software today relies heavily on open source, third-party components, but these reusable dependencies sometimes inadvertently introduce security vulnerabilities into the code of developers who use them. Some of the most serious vulnerabilities discovered in recent years—like the OpenSSL punycode vulnerability, Log4Shell (Log4j), and Dirty Pipe (Linux)—reside in popular open source packages, making them so widespread that they could compromise almost the entire software ecosystem.

In order to help organizations detect such vulnerabilities in third-party software, the US federal government has proposed adoption of a Software Bill of Materials (SBOM)—an inventory of the software components in the codebase of a given product, including third-party dependencies—across the software industry. In Executive Order 14028 on improving national security, Section 4 includes a specific provision for vendors to enhance software supply chain security by “providing a purchaser [an SBOM] for each product directly or by publishing it on a public website.” The order directs vendors of all critical and third-party software used by federal agencies to provide SBOMs for their products on request by the end of this year. Software companies will likely have to start providing SBOMs to non-government customers, too, as expectations for this level of transparency continue to increase.

Creating an SBOM involves taking stock of the dependencies in your product’s codebase. For developers and security engineers, this can be a helpful exercise in identifying vulnerabilities that derive from third-party libraries—but SBOMs have some limitations that can make them difficult to work with for vulnerability management purposes. In this post, we’ll cover:

What needs to be included in an SBOM

An SBOM provides information about the composition of a software artifact. The National Telecommunications and Information Administration (NTIA) has put together a collection of resources describing the SBOM. The baseline information required for an SBOM file includes:

InfoDescription
Author nameThe entity that has created the SBOM; note that this may not always be the supplier
Supplier nameName or other identifier of the supplier of a component in an SBOM entry
Component nameName or other identifier of a component
Version stringVersion of a component
Component hashCryptographic hash of a component
Unique identifierAdditional information to help uniquely define a component
RelationshipAssociation between SBOM components (e.g., “includes” and “included in”)

It also can include auxiliary information, such as:

InfoDescription
LicensingThe term of use or type of license
Provenance and pedigreeWhere the component was fetched from
TimestampDate and time when the SBOM was last updated
End of lifeEnd-of-support dates for components
GroupingBy product lines or implemented technologies; a group could be treated as a special type of upstream component
Unique identifierAdditional information to help uniquely define a component
RelationshipAssociation between SBOM components (e.g., “includes” and “included in”)

SBOMs can be expressed in a number of formats, notably Software Package Data Exchange (SPDX) and CycloneDX. These are open standards that help organizations create SBOMs quickly and efficiently, without having to build out the structure of an SBOM file from scratch. They also aim to standardize SBOM formats across the industry for easier cross-comparison.

Challenges and limitations of SBOMs

SBOMs are a powerful tool for helping software buyers understand what the dependencies are in the product they are purchasing—and they are also helpful for software vendors as a way to inventory their dependencies and identify vulnerabilities. However, starting with an SBOM and deciding which vulnerabilities need to be remediated immediately is not so simple, as SBOMs are not very actionable themselves.

Having insight into whether or not a dependency is vulnerable is important, but not very informative without context as to whether or not that vulnerability is actually exposed in production, and whether the service leveraging the vulnerable dependency has other risks that could be exploited by attackers (e.g., if the service is deployed on mission-critical container workloads or infrastructure hosts). Runtime context is particularly important when you have to make sense of a large SBOM composed of a huge number of dependencies, with an even greater number of associated vulnerabilities. You might not spot the most critical vulnerabilities out of sheer exhaustion, or you could zero in on noncritical vulnerabilities due to lack of context. This is counterproductive to vulnerability management programs and makes it difficult for organizations to determine whether or not they are in compliance with key regulatory frameworks.

Because of these and other limitations, SBOMs tend to be:

  • Not informative enough. There is a low signal-to-noise ratio in most SBOMs due to missing context—e.g., is this dependency actually running in our application right now?
  • Not queryable. It is difficult to sift through large numbers of dependencies to serve various use cases and understand their implications—e.g., what is the blast radius of this dependency?
  • Not linkable. There is no easy way to correlate SBOMs with other databases to extract some key types of information—e.g., is this dependency vulnerable, or does it have the right license?

Augment SBOMs with deeper insights by using Datadog Software Composition Analysis

To identify, prioritize, and remediate vulnerabilities effectively, security analysts need a source of information that is informative, queryable, and linkable, providing the necessary context to augment their existing SBOMs and fill in any gaps. Next, we’ll look at how Datadog Software Composition Analysis (SCA) addresses many of the common limitations of SBOMs by surfacing vulnerabilities in open source libraries that are actually running in production, alongside real-time threat insights.

Informative insights through runtime context

SBOMs typically list dependencies found in source code or during builds. This approach does not indicate whether these dependencies are actually running in production, making it difficult to determine whether vulnerabilities in these libraries are actually important to prioritize for remediation.

SCA uses the information that Datadog APM is already collecting and flags libraries that match known vulnerability advisories. Potentially vulnerable services are highlighted in the APM Security View, which is embedded in the APM Service Catalog. This helps create a more accurate picture of which vulnerable dependencies are active in your environment, so you can build a more targeted and impactful remediation plan.

APM Security View in Datadog APM Service Catalog

Queryable data for faster remediation

Because SBOMs are static documents, they aren’t easily queryable. Organizations need to be able to easily search their SBOMs for their entire suite of applications quickly, in order to spend less time reading the SBOM and more time remediating vulnerabilities.

SCA is tightly integrated within the larger Datadog platform, making it easy to search and filter for specific applications, services, and third-party libraries across your environment so you can surface vulnerabilities in all your services running in production. You can use Datadog’s rich tagging capabilities to query the machines and metrics you’re monitoring and intuitively filter your results by facet, such as service, language, and environment.

Filtering by facet in Datadog Application Security Management

Linkable results to help correlate dependencies

Because SBOMs aren’t linkable, you need to rely on your own knowledge or an external database to determine what vulnerabilities may exist in the dependencies listed there. Datadog SCA links with multiple well-known vulnerability databases, including OSV. This helps surface vulnerable dependencies and ensures that the platform is always up to date with the latest known vulnerabilities. You can also navigate from a vulnerability finding in Datadog to linked resources from NIST, GitHub, and others to help you understand the vulnerability, assess its impact, and determine next steps for remediation.

Sidebar in Datadog Application Security Management showing links to external resources

Complement SBOMs with deeper insights

SBOMs will continue to be a critical resource in creating a more secure software supply chain in the coming years. Datadog SCA provides valuable insights in addition to SBOMs, helping address some of their limitations. Through continuous, real-time monitoring of services in production for vulnerabilities in open source software dependencies, SCA provides an informative, queryable, and linkable view into the risks that third-party components introduce into your environment.

To learn more, you can request a personalized demo. If you’re new to Datadog, sign up for a 14-day .