← Back to Pull requests

Verify IAST payload carriers in the OTLP security smoke scenario #8735

Closed
unknown closed this pull request without merging on Dec 03, 2026 10:28 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 16:39 UTC
Author

Motivation

APPSEC-71876. #8524 added the IAST smoke (BaseIastSmokeTests) to the classic and standalone scenarios, and #8573 added the OTLP security smoke (SECURITY_SMOKE_OTLP, OTLP export through bundled DDOT). IAST was not yet checked over OTLP.

Changes

  • Add Test_SecuritySmokeOtlp_Iast(BaseIastSmokeTests) to tests/appsec/smoke_tests/test_security_otlp.py. It uses the same features as Test_SecuritySmoke_Iast (iast_sink_path_traversal, iast_stack_trace). The module's autouse assert_ddot_export fixture also applies, so the request must reach the agent only through OTLP. SECURITY_SMOKE_OTLP already enables IAST through the end-to-end defaults (iast_enabled=True).

  • BaseIastSmokeTests reads the IAST report from meta_struct["iast"] or _dd.iast.json, but it reads _dd.stack only from MetaStruct. That means every SDK needs structured reports restored to MetaStruct at intake. The manifest gates follow from this:
  • | Manifest | Test_SecuritySmokeOtlp_Iast | Source |
    | --- | --- | --- |
    | agent.yml | missing_feature (datadog-agent#60077), for every SDK | same as OTLP RASP / AI Guard |
    | java.yml | missing_feature for <1.70.0-SNAPSHOT (dd-trace-java#13391); play, ratpack: incomplete_test_app | OTLP RASP version gate + classic IAST weblog gate |
    | nodejs.yml | : missing_feature (JSON bytes instead of MessagePack); nextjs: incomplete_test_app | OTLP RASP / AI Guard + classic IAST weblog gate |
    | dotnet.yml | missing_feature (dd-trace-dotnet#9715) | OTLP RASP / Threats / RemoteConfig |
    | python.yml | aiohttp: v4.18.0-rc1; tornado: incomplete_test_app | classic IAST weblog gates (file gate v4.11.0) |
    | golang.yml | missing_feature (no IAST path reports or vulnerability stacks) | classic IAST |

    PHP, Ruby, Rust, C, and C++ already mark the whole test_security_otlp.py file as missing_feature (no OTLP trace export). No rule change in libraries_and_scenarios_rules.yml is needed, because the test goes into an existing file and scenario.

    Validation

  • ./format.sh: passed.

  • git diff --check: clean.

  • ./run.sh TEST_THE_TEST tests/test_the_test/test_compute_libraries_and_scenarios.py tests/test_the_test/test_manifest.py tests/test_the_test/test_scenarios_declaration.py tests/test_the_test/test_conventions.py: 167 passed.

  • Not yet run: live Docker SECURITY_SMOKE_OTLP validation for each SDK. Until the bundled DDOT includes datadog-agent#60077, the agent gate deactivates the class for every SDK.
  • Workflow

    1. ⚠️ Create your PR as draft ⚠️
    2. Work on you PR until the CI passes
    3. Mark it as ready for review
    Tests, manifest, weblog are modified -> you'll need a review from system-tests-reviewers: ask to one of youre co-worker familiar with the tested feature.
    * Framework is modified, or non obvious usage of it -> get a review from system-tests-core (slack)

    :rocket: Once your PR is reviewed and the CI green, you can merge it!

    🛟 #apm-shared-testing 🛟

    [APPSEC-71876]: https://datadoghq.atlassian.net/browse/APPSEC-71876?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 416 lines (+312 / -104) across 5 files Reviewer: christophe-papazian Review duration: 1069m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 416 lines diff across 5 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.361
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #8735"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.1% (HIGH) · Higher = larger blast radius
    68.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.9% · Safe to merge
    26.9%