ddtrace 4.15.8
- Source
- https://github.com/DataDog/dd-trace-py
- Artifact scanned
ddtrace-4.15.8.tar.gz- Compared with
ddtrace-4.15.7.tar.gz(0 signals introduced since)- Files
- 1494 scanned, 60 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 43 info
- Scan time
- 39.2 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 40 of 40 warn and critical signals; 40 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-11-17 16:58
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
, = = , = ,likely benign Lazy import of a langchain.agents class via __import__ with a computed module path.Reasoning
__import__ is used with a prefix literal plus a class-path string to lazily import langchain agent classes; the module path is constrained to the langchain.agents namespace. Dynamic import is a common lazy-loading pattern in integration shims. Severity critical is overstated, but the non-literal argument is worth a note.
-
info
warn→ info by reviewframe-introspectionddtrace/appsec/_exploit_prevention/stack_traces.py:58:13= = 0likely benign Collects call-stack frames to build a trimmed stack trace for exploit reporting.Reasoning
inspect.stack() is used to crop and record stack traces for exploit-prevention reporting, a legitimate diagnostic use in an APM/security library.
-
= .. =likely benign Reads the caller's module name via frame introspection to instrument that module.Reasoning
currentframe().f_back.f_globals is used to find the calling module name for AST-patching of an import hook. The sys.exit/exec/eval co-occurrence is a heuristic flag; the code is part of IAST instrumentation, not anti-analysis.
-
= # creating a new module environment to execute the patched code from scratch =likely benign Compiles an instrumented AST of a module for IAST taint tracking.Reasoning
compile() of a patched AST produced by the IAST source-instrumentation loader is a deliberate, documented mechanism for taint-tracking instrumentation of user modules.
-
# executing the compiled code in the new module environment # nosec B102likely benign Executes the instrumented module code in its module namespace.Reasoning
exec of compiled instrumented code into the module's own dict is the standard re-execution step of the IAST module patcher; the nosec comment shows it is an acknowledged, intentional pattern.
-
# Patched source is compiled in order to execute it =likely benign Compiles patched module source for IAST instrumentation.Reasoning
Same IAST loader pattern: compile of patched source for taint-tracking instrumentation, with error handling and debug logging.
-
# Patched source is executed instead of original module # nosec B102likely benign Executes instrumented module code in the loader.Reasoning
Executes the patched compiled module in place of the original, as part of the IAST loader; intentional and documented with nosec.
-
info
warn→ info by reviewmacro-keyword-overrideddtrace/appsec/_iast/_taint_tracking/constants.h:3:1likely benign Macro alias for the long type in a native header.Reasoning
Defining RANGE_START as long is a benign C macro used to abstract type names in the native taint-tracking module; macro names are not C keywords and no malicious payload is present.
-
info
warn→ info by reviewmacro-keyword-overrideddtrace/appsec/_iast/_taint_tracking/constants.h:4:1likely benign Macro alias for the long type in a native header.Reasoning
Same benign type-alias macro as the adjacent line; a common C idiom for typedef-like names, not obfuscation.
-
info
warn→ info by reviewframe-introspectionddtrace/appsec/_iast/taint_sinks/code_injection.py:103:26= =likely benign Retrieves the current frame to resolve the caller for a taint sink.Reasoning
currentframe() is used to find the caller frame for code-injection taint sink reporting, a legitimate instrumentation need.
-
info
warn→ info by reviewframe-introspectionddtrace/appsec/_iast/taint_sinks/code_injection.py:116:30= =likely benign Retrieves the current frame to resolve the caller for a taint sink.Reasoning
Same caller-frame resolution in the code-injection sink for diagnostic and reporting purposes.
-
= # cache so we warn at most once per symbol returnlikely benign Lazy module attribute loader that caches resolved attributes in globals.Reasoning
Module-level __getattr__ caches lazily resolved attributes into globals(); this is a standard lazy-import pattern for optional integrations, not hidden access.
-
= = # cache so we warn at most once per symbol returnlikely benign Lazy forwarder to litellm attributes that caches results in globals.Reasoning
Same module-level __getattr__ lazy-forwarding pattern to the litellm module, caching attributes and warning once per symbol.
-
= = # cache so we warn at most once per symbol returnlikely benign Lazy module attribute loader that caches imported attributes in globals.Reasoning
Module-level __getattr__ lazily imports a symbol from strands and caches it in globals(); standard lazy-loading pattern with no malicious payload.
-
# But can vary depending on Python versions; that's why we use an heuristic = . = Nonelikely benign Walks the call stack to infer a boto operation name for tracing.Reasoning
The code walks up the call stack with inspect.currentframe().f_back to guess an operation name for tracing. This is a known heuristic in an APM instrumentation library and shows no sign of hidden or malicious behavior.
-
returnlikely benign Module __getattr__ that looks up names in module globals for lazy attribute access.Reasoning
This is a module-level __getattr__ that resolves lazily defined names through globals(), a standard lazy-attribute pattern. It only reads module globals and raises AttributeError otherwise.
-
, =, =, =,likely benign Captures the caller frame for a debugger probe snapshot.Reasoning
The debugger captures the caller's frame via sys._getframe(1) to evaluate probe conditions and log context. This is the expected behavior of a dynamic debugger.
-
# Try with a built-in type first return # type: ignore[index] # Otherwise we expect a fully qualified namelikely benign Resolves a type name against builtins for debugger expression isinstance checks.Reasoning
The expression compiler looks up built-in type names in __builtins__ for isinstance checks in debugger predicates, falling back to fully qualified names on KeyError. The lookup is bounded to type resolution and is not an injection path.
-
, = = # type: ignore[index] , = ,likely benign Selects a builtin function by name while compiling debugger expressions.Reasoning
Same pattern as the neighboring finding: a builtin is selected by name from a fixed set of expression operators to build a debugger predicate. This is a normal expression-compilation design.
-
= =likely benign Reads caller frame globals and locals to evaluate assembly-expression text.Reasoning
The assembly helper reads the caller's frame globals and locals to evaluate developer-written bytecode assembly expressions. The sys.exit and exec mention reflects the file's content, not a dropper. The critical severity comes from the anti-analysis shape match, which does not fit this use. Eval of developer-supplied text is still a sensitive sink, so some doubt remains.
-
return # noseclikely benign eval of assembler expression text inside the caller's frame namespace.Reasoning
eval runs on text from the bytecode assembler's own expression syntax, with the caller's frame namespace, and is marked nosec. The input is developer-authored assembly source rather than untrusted network or file data, so this looks like a deliberate evaluator design.
-
= == :likely benign Caches a lazily computed python_version into module globals.Reasoning
Lazy module attribute caching assigns the computed python_version into globals under a fixed name. This is a standard compatibility shim.
-
=likely benign Caches a lazily computed python_implementation into module globals.Reasoning
Lazy module attribute caching assigns python_implementation into globals under a fixed name, matching the other compat shim branches.
-
returnlikely benign Module __getattr__ fallback reading names from globals.Reasoning
Module __getattr__ fallback that reads globals and raises AttributeError on a miss. This is ordinary lazy-attribute code.
-
info
warn→ info by reviewdynamic-executionddtrace/internal/datadog/profiling/build_standalone.sh:41:5likely benign Build helper that runs a caller-supplied tool to read its version.Reasoning
The helper runs a tool passed as $1 to read its version during the build. The command is chosen by the build script's own caller, and the function is a build utility, not a remote payload.
-
info
critical→ info by reviewdynamic-executionddtrace/internal/datadog/profiling/build_standalone.sh:66:5if ; then filikely benign Build helper that uses eval to assign a found version to a named variable.Reasoning
eval assigns a result to a variable whose name is passed in by the build script, and the value comes from parsing local tool version output. It is poor practice but a common local build idiom, with no sign of remote or attacker-controlled input in the snippet.
-
-
if ! -
info
warn→ info by reviewdynamic-executionddtrace/internal/datadog/profiling/stack/fuzz/build.sh:39:7for; do | && breaklikely benign Installs rustup via the official curl-to-sh bootstrap with retries.Reasoning
This fetches the official rustup installer from sh.rustup.rs over TLS 1.2 and retries on failure. Piping to sh is the documented rustup install method, though it is a supply-chain-sensitive pattern.
-
info
warn→ info by reviewdynamic-importddtrace/internal/datadog/profiling/stack/fuzz/build.sh:44:5donelikely benign Sources the standard cargo environment file after rustup install.Reasoning
Sourcing the standard rustup environment file from HOME/.cargo/env immediately after installing rustup is the normal way to put cargo on PATH.
-
likely benign Temporarily installs a trace function to capture locals while a lazily loaded module initializes.
Reasoning
sys.settrace is set around a call to fn() and restored in finally, then frame locals are copied into module globals. This is a lazy-module evaluation mechanism that captures names defined during initialization. No network, decoding, or process spawning is involved.
-
likely benign Restores the previous trace function after lazy initialization and merges captured locals into module globals.
Reasoning
This is the restore half of the same settrace block in a finally clause, which is the correct cleanup pattern. The frame locals are then merged into module globals as part of lazy loading.
-
= . = Falselikely benign Reads the caller's module globals via the stack frame so a decorator can register lazy state.Reasoning
sys._getframe(1).f_globals is a common way for a decorator to reach its caller's module namespace. Here it binds the lazy-loading state to the calling module. Nothing suspicious appears in the snippet.
-
info
warn→ info by reviewdecoder-decompress-payloadddtrace/internal/openfeature/_agentless.py:79:16return returnlikely benign Decompresses a gzip-encoded response body when the content-encoding header says so.Reasoning
The function decompresses an HTTP body only when Content-Encoding is gzip. This is normal handling of a compressed response, not an embedded payload being run.
-
likely benign Under MSVC, maps the inline keyword to the compiler-specific __inline spelling.
Reasoning
The define is guarded by _MSC_VER and maps the C keyword inline to MSVC's __inline. This is a standard MSVC compatibility shim, not a malicious redefinition.
-
# Make the frame object available to the contexts = # Freeze the list of contexts so that we know exactly which ones tolikely benign Stores the caller's frame object in context storage for wrapped context managers.Reasoning
The frame is stored at a fixed depth so wrapped contexts can access it. This is internal tracing machinery and does not exfiltrate or execute anything.
-
= = returnlikely benign Lazily imports an integration submodule and caches the attribute in module globals.Reasoning
This is a module-level __getattr__-style lazy loader. It imports the integration module by name and caches it in globals. The import target is internal to the package.
-
# Start from the current frame and walk up the stack = return ,likely benign Walks up the call stack via inspect.currentframe to infer a variable name and module for tracing.Reasoning
Walking inspect.currentframe() up the stack to name a variable or module is a common introspection technique for tracing labels. The snippet shows no hidden execution or network activity.
-
:////-//3e54cda11620a773d53c7f64d2ebb10d3a01794c/#multiple-headers ::dismissed A docstring URL containing a long commit hash, matched as a base64 blob.Reasoning
The flagged text is a docstring containing a GitHub URL with a commit hash. The base64-like match is a false positive from a hex-like identifier in the link, and no decoding occurs.
-
:////-//3e54cda11620a773d53c7f64d2ebb10d3a01794c/#single-header ::dismissed A docstring URL with a commit hash, matched as a base64 blob.Reasoning
This is another docstring URL to the b3-propagation README with a commit hash. It is documentation text and has no code effect.
-
likely benign Conditionally execs a module-level async source string on Python 3.5 and later to define async context helpers.
Reasoning
The exec and compile calls run at import time on ASYNC_SOURCE, a module-level source string. This is a known vendored pattern for defining async-def syntax only on Python 3.5+ without breaking older parsers. The source is a constant, so there is no runtime input. Exec-on-import is still a pattern worth checking against the actual string contents.
-
likely benign Compiles the constant ASYNC_SOURCE string for the version-gated exec that defines async helpers.
Reasoning
This compile call is the input to the exec on the previous line. It compiles a constant module string with the file path as filename, so it is part of the same version-gated pattern. Its only input is the constant ASYNC_SOURCE.
-
/// but whose Python attributes should read as `RemoteConfigProduct.LiveDebugging`).
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|
&&