The flagged code collects repository URL and commit metadata during explicit esbuild plugin setup, then makes it available through Datadog tracing variables. The package entry point is a simple export, and the reviewed instrumentation is conditional on plugin subscribers; no malicious behavior was found.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Importing the package entry point loads dd-trace; the esbuild metadata behavior occurs when the build plugin is set up.
Impact
Repository URL and commit metadata may be included in Datadog traces as part of the tracing feature. No unrelated exfiltration or harmful automatic action was identified.
Mechanism
The esbuild plugin reads git repository metadata and embeds it in standard Datadog tracing environment variables. Instrumentation wraps application calls when the corresponding tracing plugin subscribes.
Evidence
packages/datadog-esbuild/index.js