SCA can detect vulnerabilities that affect open source libraries running in your services based on Datadog’s application telemetry.
Before setting up runtime deteciton, ensure the following prerequisites are met:
Supported Tracing Library: The Datadog Tracing Library used by your application or service supports Software Composition Analysis capabilities for the language of your application or service.
Datadog Agent Installation: The Datadog Agent is installed and configured for your application’s operating system or container, cloud, or virtual environment.
Datadog APM Configuration: Datadog APM is configured for your application or service, and web traces (type:web) are being received by Datadog.
Supported Tracing Library: The Datadog Tracing Library used by your application or service supports Software Composition Analysis capabilities for the language of your application or service. For more details, refer to the Library Compatibility page for each ASM product.
Add an environment variable or a new argument to your Datadog Tracing Library configuration.
By following these steps, you will successfully set up Software Composition Analysis for your application, ensuring comprehensive monitoring and identification of vulnerabilities in open source libraries used by your applications or services.
You can use Datadog Software Composition Analysis (SCA) to monitor the open source libraries in your apps.
SCA is configured by setting the -Ddd.appsec.sca.enabled flag or the DD_APPSEC_SCA_ENABLED environment variable to true in supported languages:
Java
.NET
Go
Ruby
PHP
Node.js
Python
This topic explains how to set up SCA using a Java example.
Example: enabling Software Composition Analysis in Java
Update your Datadog Java library to at least version 0.94.0 (at least version 1.1.4 for Software Composition Analysis detection features):