From ef063df5a686a70523455ca219791a95d2105c68 Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Mon, 23 Nov 2026 09:44:16 +0000 Subject: [PATCH 1/7] Verify native IAST carriers at backend intake across security smoke scenarios Share the request-correlated report, retention and stack checks between SECURITY_SMOKE, both APM standalone configurations and IAST_STANDALONE. Check sink-specific SDK telemetry at the same intake. Keep the assertions independent of transport so the OTLP smoke suite can reuse them later. --- manifests/cpp_nginx.yml | 4 + manifests/golang.yml | 4 + manifests/java.yml | 12 +++ manifests/nodejs.yml | 12 +++ manifests/php.yml | 4 + manifests/python.yml | 18 ++++ manifests/ruby.yml | 4 + tests/appsec/smoke_tests/iast.py | 101 ++++++++++++++++++ .../appsec/smoke_tests/test_apm_standalone.py | 25 +++++ tests/appsec/smoke_tests/test_security.py | 8 ++ 10 files changed, 192 insertions(+) create mode 100644 tests/appsec/smoke_tests/iast.py diff --git a/manifests/cpp_nginx.yml b/manifests/cpp_nginx.yml index dd3fa63dd57..cd3a77097e0 100644 --- a/manifests/cpp_nginx.yml +++ b/manifests/cpp_nginx.yml @@ -86,6 +86,7 @@ manifest: tests/appsec/iast/test_vulnerability_schema.py: irrelevant (ASM is not implemented in C++) tests/appsec/rasp/: irrelevant (ASM is not implemented in C++) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_ApiSecurity: '>=1.19.1' # TODO: a lower version might be supported + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_RemoteConfig: '>=1.19.1' # TODO: a lower version might be supported tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_RemoteConfig::test_rasp_blocking_smoke: missing_feature @@ -94,6 +95,7 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Threats::test_waf_monitoring_smoke: missing_feature (WAF monitoring tags not implemented) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_UserEvents: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: '>=1.19.1' # TODO: a lower version might be supported + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_RemoteConfig: '>=1.19.1' # TODO: a lower version might be supported tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_RemoteConfig::test_rasp_blocking_smoke: missing_feature @@ -101,7 +103,9 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Threats: '>=1.19.1' # TODO: a lower version might be supported tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Threats::test_waf_monitoring_smoke: missing_feature (WAF monitoring tags not implemented) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_UserEvents: missing_feature + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_ApiSecurity: '>=1.19.1' + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp: missing_feature tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_RemoteConfig: '>=1.19.1' tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_RemoteConfig::test_rasp_blocking_smoke: missing_feature diff --git a/manifests/golang.yml b/manifests/golang.yml index 97d0185a51c..2420a324ad3 100644 --- a/manifests/golang.yml +++ b/manifests/golang.yml @@ -681,6 +681,7 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_ApiSecurity: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion @@ -710,6 +711,7 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion @@ -736,10 +738,12 @@ manifest: - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_UserEvents: missing_feature + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py: v2.7.0 tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_ApiSecurity: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion diff --git a/manifests/java.yml b/manifests/java.yml index 9103d2916e4..0d92785ce01 100644 --- a/manifests/java.yml +++ b/manifests/java.yml @@ -1651,6 +1651,9 @@ manifest: - weblog_declaration: "*": v1.60.3 spring-boot-3-native: irrelevant (GraalVM. Tracing support only) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: + - weblog_declaration: + play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: - weblog_declaration: spring-boot-payara: v1.66.0 # TODO: a lower version might be supported @@ -1672,6 +1675,9 @@ manifest: vertx4: missing_feature (login endpoints not implemented) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: - declaration: flaky (APPSEC-60872) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: + - weblog_declaration: + play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - declaration: flaky (APPSEC-60872) - weblog_declaration: @@ -1695,10 +1701,16 @@ manifest: resteasy-netty3: missing_feature (login endpoints not implemented) vertx3: missing_feature (login endpoints not implemented) vertx4: missing_feature (login endpoints not implemented) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: + - weblog_declaration: + play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py: - weblog_declaration: "*": v1.60.3 spring-boot-3-native: irrelevant (GraalVM. Tracing support only) + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: + - weblog_declaration: + play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp: - weblog_declaration: spring-boot-payara: v1.66.0 diff --git a/manifests/nodejs.yml b/manifests/nodejs.yml index c54218552ab..a878902fffc 100644 --- a/manifests/nodejs.yml +++ b/manifests/nodejs.yml @@ -1112,6 +1112,9 @@ manifest: nextjs: *ref_6_26_0 tests/appsec/rasp/test_ssrf.py::Test_Ssrf_Waf_Version: *ref_5_25_0 tests/appsec/smoke_tests/test_apm_standalone.py: v5.92.0 + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: + - weblog_declaration: + nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: - weblog_declaration: nextjs: v6.19.0 # TODO: a lower version might be supported @@ -1122,6 +1125,9 @@ manifest: - weblog_declaration: fastify: missing_feature nextjs: missing_feature + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: + - weblog_declaration: + nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - weblog_declaration: nextjs: v6.19.0 # TODO: a lower version might be supported @@ -1132,7 +1138,13 @@ manifest: - weblog_declaration: fastify: missing_feature nextjs: missing_feature + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: + - weblog_declaration: + nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py: v5.92.0 + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: + - weblog_declaration: + nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp: - weblog_declaration: nextjs: v6.19.0 diff --git a/manifests/php.yml b/manifests/php.yml index e1d041dff59..70b27c131be 100644 --- a/manifests/php.yml +++ b/manifests/php.yml @@ -465,6 +465,7 @@ manifest: tests/appsec/rasp/test_ssrf.py::Test_Ssrf_UrlQuery: v1.7.0 tests/appsec/rasp/test_ssrf.py::Test_Ssrf_Waf_Version: v1.7.0 tests/appsec/smoke_tests/test_apm_standalone.py: v1.18.0 + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_sqli_smoke: # TODO: a lower version might be supported - weblog_declaration: @@ -479,6 +480,7 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity::test_api_security_smoke: - weblog_declaration: apache-mod-7.2: flaky (APPSEC-70615) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_sqli_smoke: # TODO: a lower version might be supported - weblog_declaration: @@ -490,7 +492,9 @@ manifest: weblog: [apache-mod-8.1-zts, apache-mod-7.4-zts, apache-mod-7.2-zts, php-fpm-8.1, apache-mod-8.2-zts, apache-mod-8.2, php-fpm-7.0, apache-mod-7.0, php-fpm-8.0, apache-mod-7.2, apache-mod-7.1-zts, apache-mod-7.3-zts, apache-mod-7.1, php-fpm-7.3, apache-mod-8.1, symfony7x, apache-mod-7.4, apache-mod-7.3, php-fpm-7.1, apache-mod-8.0, php-fpm-8.5, php-fpm-8.6, php-fpm-8.2, apache-mod-8.0-zts, php-fpm-7.4, apache-mod-7.0-zts, laravel11x, php-fpm-7.2] - declaration: bug (APPSEC-69429) excluded_weblog: [apache-mod-8.1-zts, apache-mod-7.4-zts, apache-mod-7.2-zts, php-fpm-8.1, apache-mod-8.2-zts, apache-mod-8.2, php-fpm-7.0, apache-mod-7.0, php-fpm-8.0, apache-mod-7.2, apache-mod-7.1-zts, apache-mod-7.3-zts, apache-mod-7.1, php-fpm-7.3, apache-mod-8.1, symfony7x, apache-mod-7.4, apache-mod-7.3, php-fpm-7.1, apache-mod-8.0, php-fpm-8.5, php-fpm-8.6, php-fpm-8.2, apache-mod-8.0-zts, php-fpm-7.4, apache-mod-7.0-zts, laravel11x, php-fpm-7.2] + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py: v1.18.0 + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_sqli_smoke: - weblog_declaration: diff --git a/manifests/python.yml b/manifests/python.yml index d1899416d0e..4949fc4951f 100644 --- a/manifests/python.yml +++ b/manifests/python.yml @@ -1156,6 +1156,10 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_ApiSecurity: - weblog_declaration: aiohttp: v4.17.0-rc1 + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: + - weblog_declaration: + aiohttp: v4.18.0-rc1 + tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: - weblog_declaration: aiohttp: v4.17.0-rc1 @@ -1171,6 +1175,11 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: - weblog_declaration: aiohttp: v4.17.0-rc1 + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: + - weblog_declaration: + aiohttp: v4.18.0-rc1 + flask-poc, uds-flask: v4.7.0-rc1 + tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - weblog_declaration: aiohttp: v4.17.0-rc1 @@ -1183,10 +1192,19 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Threats: - weblog_declaration: aiohttp: v4.17.0-rc1 + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: + - weblog_declaration: + aiohttp: v4.18.0-rc1 + flask-poc, uds-flask: v4.7.0-rc1 + tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py: v4.6.0 tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_ApiSecurity: - weblog_declaration: aiohttp: v4.17.0-rc1 + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: + - weblog_declaration: + aiohttp: v4.18.0-rc1 + tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp: - weblog_declaration: aiohttp: v4.17.0-rc1 diff --git a/manifests/ruby.yml b/manifests/ruby.yml index feff569168c..988fdf6de6a 100644 --- a/manifests/ruby.yml +++ b/manifests/ruby.yml @@ -1253,6 +1253,7 @@ manifest: "*": v2.29.0 "graphql23": irrelevant tests/appsec/smoke_tests/test_apm_standalone.py: v2.30.0 + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_lfi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_sqli_smoke: @@ -1274,6 +1275,7 @@ manifest: sinatra32: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) sinatra41: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) uds-sinatra: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_lfi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_sqli_smoke: @@ -1295,7 +1297,9 @@ manifest: sinatra32: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) sinatra41: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) uds-sinatra: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py: v2.30.0 + tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_lfi_smoke: missing_feature tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_sqli_smoke: diff --git a/tests/appsec/smoke_tests/iast.py b/tests/appsec/smoke_tests/iast.py new file mode 100644 index 00000000000..93008bc7fa6 --- /dev/null +++ b/tests/appsec/smoke_tests/iast.py @@ -0,0 +1,101 @@ +"""Shared IAST assertions at Agent-to-backend intake, independent of SDK trace transport.""" + +import json +from pathlib import Path +from typing import Any + +import jsonschema + +from utils import interfaces, weblog +from utils.dd_constants import SamplingPriority +from utils.dd_types import DataDogAgentSpan + + +# The harness mounts this directory in every weblog. No traversal or application file is needed. +_SMOKE_PATH = "/var/log/system-tests" +_SCHEMA = json.loads((Path(__file__).parents[1] / "iast/vulnerability_schema.json").read_text(encoding="utf-8")) + + +def _assert_report(report: dict[str, Any]) -> set[str]: + """Check the source/evidence link in this carrier and return the referenced stack IDs.""" + jsonschema.validate(report, _SCHEMA) + source_indices = { + i + for i, source in enumerate(report.get("sources", [])) + if source.get("name") == "path" and source.get("value") == _SMOKE_PATH + } + assert source_indices, "IAST report lost the submitted path source" + + findings = [finding for finding in report["vulnerabilities"] if finding["type"] == "PATH_TRAVERSAL"] + assert findings, "IAST report lost the path finding" + stack_ids = set() + for finding in findings: + parts = finding["evidence"].get("valueParts", []) + assert any(part.get("source") in source_indices and _SMOKE_PATH in part.get("value", "") for part in parts), ( + "IAST evidence does not point to the submitted path" + ) + stack_id = finding["location"].get("stackId") + assert isinstance(stack_id, str), "IAST finding lost its stackId" + assert stack_id, "IAST finding has an empty stackId" + stack_ids.add(stack_id) + return stack_ids + + +def _assert_stacks(span: DataDogAgentSpan, expected: set[str]) -> None: + stacks = span.get_structured_payloads("_dd.stack") + assert stacks, "Backend did not receive the IAST stack carrier" + for payload in stacks: + seen = set() + for stack in payload.get("vulnerability", []): + if stack.get("id") in expected: + assert isinstance(stack.get("language"), str) + assert stack["language"], "IAST stack lost its language" + frames = stack.get("frames") + assert isinstance(frames, list) + assert frames, "IAST stack lost its frames" + seen.add(stack["id"]) + assert expected <= seen, f"IAST stacks missing for findings: {expected - seen}" + + +def _has_executed_sink_metric() -> bool: + # The intake records telemetry per SDK, not per trace. Match the specific sink, not another IAST check. + for data in interfaces.mocked_backend.get_telemetry_data(flatten_message_batches=False): + content = data["request"]["content"] + if content.get("request_type") != "generate-metrics": + continue + payload = content["payload"] + for series in payload.get("series", []): + if ( + (series.get("namespace") or payload.get("namespace")) == "iast" + and series.get("metric") == "executed.sink" + and "vulnerability_type:path_traversal" in map(str.lower, series.get("tags", [])) + and any(value > 0 for _, value in series.get("points", [])) + ): + return True + return False + + +class BaseIastSmokeTests: + """Verify IAST report, stack, retention and telemetry carriers from a native smoke request.""" + + def setup_iast_smoke(self) -> None: + self.r = weblog.post("/iast/path_traversal/test_insecure", data={"path": _SMOKE_PATH}) + + def test_iast_smoke(self) -> None: + assert self.r.status_code == 200 + report_spans = [ + (span, reports) + for _, span in interfaces.mocked_backend.get_spans(self.r) + if (reports := span.get_structured_payloads("iast", "_dd.iast.json")) + ] + assert report_spans, "Backend did not receive an IAST report for this request" + for span, reports in report_spans: + assert span.get_sampling_priority() == SamplingPriority.USER_KEEP + enabled = span.metrics.get("_dd.iast.enabled", span.meta.get("_dd.iast.enabled")) + assert not isinstance(enabled, bool) + assert enabled in (1, "1"), f"Unexpected _dd.iast.enabled: {enabled!r}" + for report in reports: + _assert_stacks(span, _assert_report(report)) + assert _has_executed_sink_metric(), ( + "Backend did not receive positive IAST executed.sink telemetry for this sink" + ) diff --git a/tests/appsec/smoke_tests/test_apm_standalone.py b/tests/appsec/smoke_tests/test_apm_standalone.py index dfe3df4c5b5..8c26590927b 100644 --- a/tests/appsec/smoke_tests/test_apm_standalone.py +++ b/tests/appsec/smoke_tests/test_apm_standalone.py @@ -6,6 +6,7 @@ from utils import features, scenarios +from tests.appsec.smoke_tests.iast import BaseIastSmokeTests from tests.appsec.smoke_tests.utils import ( BaseApiSecuritySmokeTests, BaseRaspSmokeTests, @@ -65,6 +66,13 @@ class Test_AppSecAPMStandalone_UserEvents(BaseUserEventsSmokeTests): pass +@apm_standalone_rfc +@features.appsec_apm_standalone +@scenarios.appsec_apm_standalone +class Test_AppSecAPMStandalone_Iast(BaseIastSmokeTests): + pass + + # --- APPSEC_STANDALONE_APM_STANDALONE (DD_APM_TRACING_ENABLED=false) --------- @@ -108,3 +116,20 @@ class Test_AppSecStandaloneAPMStandalone_ApiSecurity(BaseApiSecuritySmokeTests): @scenarios.appsec_standalone_apm_standalone class Test_AppSecStandaloneAPMStandalone_UserEvents(BaseUserEventsSmokeTests): pass + + +@apm_standalone_rfc +@features.appsec_apm_standalone +@scenarios.appsec_standalone_apm_standalone +class Test_AppSecStandaloneAPMStandalone_Iast(BaseIastSmokeTests): + pass + + +# --- IAST_STANDALONE (DD_APPSEC_ENABLED=false, DD_APM_TRACING_ENABLED=false) - + + +@apm_standalone_rfc +@features.iast_standalone +@scenarios.iast_standalone +class Test_IastStandalone_Iast(BaseIastSmokeTests): + pass diff --git a/tests/appsec/smoke_tests/test_security.py b/tests/appsec/smoke_tests/test_security.py index abc3e463cd6..a38d0c2bfd3 100644 --- a/tests/appsec/smoke_tests/test_security.py +++ b/tests/appsec/smoke_tests/test_security.py @@ -1,6 +1,7 @@ """AAP smoke tests with classic Agent infrastructure and native tracing.""" from utils import features, scenarios +from tests.appsec.smoke_tests.iast import BaseIastSmokeTests from tests.appsec.smoke_tests.utils import ( BaseApiSecuritySmokeTests, BaseRaspSmokeTests, @@ -52,3 +53,10 @@ class Test_SecuritySmoke_ApiSecurity(BaseApiSecuritySmokeTests): @scenarios.security_smoke class Test_SecuritySmoke_UserEvents(BaseUserEventsSmokeTests): pass + + +@features.iast_sink_path_traversal +@features.iast_stack_trace +@scenarios.security_smoke +class Test_SecuritySmoke_Iast(BaseIastSmokeTests): + pass From 65fd1402510aea2a1b1fcd0033864f8b131d9968 Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Mon, 23 Nov 2026 10:26:20 +0000 Subject: [PATCH 2/7] Move shared IAST smoke helpers into the conventional utils module --- tests/appsec/smoke_tests/iast.py | 101 ----------------- .../appsec/smoke_tests/test_apm_standalone.py | 2 +- tests/appsec/smoke_tests/test_security.py | 2 +- tests/appsec/smoke_tests/utils.py | 102 +++++++++++++++++- 4 files changed, 103 insertions(+), 104 deletions(-) delete mode 100644 tests/appsec/smoke_tests/iast.py diff --git a/tests/appsec/smoke_tests/iast.py b/tests/appsec/smoke_tests/iast.py deleted file mode 100644 index 93008bc7fa6..00000000000 --- a/tests/appsec/smoke_tests/iast.py +++ /dev/null @@ -1,101 +0,0 @@ -"""Shared IAST assertions at Agent-to-backend intake, independent of SDK trace transport.""" - -import json -from pathlib import Path -from typing import Any - -import jsonschema - -from utils import interfaces, weblog -from utils.dd_constants import SamplingPriority -from utils.dd_types import DataDogAgentSpan - - -# The harness mounts this directory in every weblog. No traversal or application file is needed. -_SMOKE_PATH = "/var/log/system-tests" -_SCHEMA = json.loads((Path(__file__).parents[1] / "iast/vulnerability_schema.json").read_text(encoding="utf-8")) - - -def _assert_report(report: dict[str, Any]) -> set[str]: - """Check the source/evidence link in this carrier and return the referenced stack IDs.""" - jsonschema.validate(report, _SCHEMA) - source_indices = { - i - for i, source in enumerate(report.get("sources", [])) - if source.get("name") == "path" and source.get("value") == _SMOKE_PATH - } - assert source_indices, "IAST report lost the submitted path source" - - findings = [finding for finding in report["vulnerabilities"] if finding["type"] == "PATH_TRAVERSAL"] - assert findings, "IAST report lost the path finding" - stack_ids = set() - for finding in findings: - parts = finding["evidence"].get("valueParts", []) - assert any(part.get("source") in source_indices and _SMOKE_PATH in part.get("value", "") for part in parts), ( - "IAST evidence does not point to the submitted path" - ) - stack_id = finding["location"].get("stackId") - assert isinstance(stack_id, str), "IAST finding lost its stackId" - assert stack_id, "IAST finding has an empty stackId" - stack_ids.add(stack_id) - return stack_ids - - -def _assert_stacks(span: DataDogAgentSpan, expected: set[str]) -> None: - stacks = span.get_structured_payloads("_dd.stack") - assert stacks, "Backend did not receive the IAST stack carrier" - for payload in stacks: - seen = set() - for stack in payload.get("vulnerability", []): - if stack.get("id") in expected: - assert isinstance(stack.get("language"), str) - assert stack["language"], "IAST stack lost its language" - frames = stack.get("frames") - assert isinstance(frames, list) - assert frames, "IAST stack lost its frames" - seen.add(stack["id"]) - assert expected <= seen, f"IAST stacks missing for findings: {expected - seen}" - - -def _has_executed_sink_metric() -> bool: - # The intake records telemetry per SDK, not per trace. Match the specific sink, not another IAST check. - for data in interfaces.mocked_backend.get_telemetry_data(flatten_message_batches=False): - content = data["request"]["content"] - if content.get("request_type") != "generate-metrics": - continue - payload = content["payload"] - for series in payload.get("series", []): - if ( - (series.get("namespace") or payload.get("namespace")) == "iast" - and series.get("metric") == "executed.sink" - and "vulnerability_type:path_traversal" in map(str.lower, series.get("tags", [])) - and any(value > 0 for _, value in series.get("points", [])) - ): - return True - return False - - -class BaseIastSmokeTests: - """Verify IAST report, stack, retention and telemetry carriers from a native smoke request.""" - - def setup_iast_smoke(self) -> None: - self.r = weblog.post("/iast/path_traversal/test_insecure", data={"path": _SMOKE_PATH}) - - def test_iast_smoke(self) -> None: - assert self.r.status_code == 200 - report_spans = [ - (span, reports) - for _, span in interfaces.mocked_backend.get_spans(self.r) - if (reports := span.get_structured_payloads("iast", "_dd.iast.json")) - ] - assert report_spans, "Backend did not receive an IAST report for this request" - for span, reports in report_spans: - assert span.get_sampling_priority() == SamplingPriority.USER_KEEP - enabled = span.metrics.get("_dd.iast.enabled", span.meta.get("_dd.iast.enabled")) - assert not isinstance(enabled, bool) - assert enabled in (1, "1"), f"Unexpected _dd.iast.enabled: {enabled!r}" - for report in reports: - _assert_stacks(span, _assert_report(report)) - assert _has_executed_sink_metric(), ( - "Backend did not receive positive IAST executed.sink telemetry for this sink" - ) diff --git a/tests/appsec/smoke_tests/test_apm_standalone.py b/tests/appsec/smoke_tests/test_apm_standalone.py index 8c26590927b..57d9090d829 100644 --- a/tests/appsec/smoke_tests/test_apm_standalone.py +++ b/tests/appsec/smoke_tests/test_apm_standalone.py @@ -6,9 +6,9 @@ from utils import features, scenarios -from tests.appsec.smoke_tests.iast import BaseIastSmokeTests from tests.appsec.smoke_tests.utils import ( BaseApiSecuritySmokeTests, + BaseIastSmokeTests, BaseRaspSmokeTests, BaseRemoteConfigSmokeTests, BaseTelemetrySmokeTests, diff --git a/tests/appsec/smoke_tests/test_security.py b/tests/appsec/smoke_tests/test_security.py index a38d0c2bfd3..05b58b8bf59 100644 --- a/tests/appsec/smoke_tests/test_security.py +++ b/tests/appsec/smoke_tests/test_security.py @@ -1,9 +1,9 @@ """AAP smoke tests with classic Agent infrastructure and native tracing.""" from utils import features, scenarios -from tests.appsec.smoke_tests.iast import BaseIastSmokeTests from tests.appsec.smoke_tests.utils import ( BaseApiSecuritySmokeTests, + BaseIastSmokeTests, BaseRaspSmokeTests, BaseRemoteConfigSmokeTests, BaseTelemetrySmokeTests, diff --git a/tests/appsec/smoke_tests/utils.py b/tests/appsec/smoke_tests/utils.py index 1a3ea1da4ac..eda75adf41a 100644 --- a/tests/appsec/smoke_tests/utils.py +++ b/tests/appsec/smoke_tests/utils.py @@ -2,7 +2,13 @@ # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2021 Datadog, Inc. -"""Shared AAP smoke tests verifying payload carriers at backend intake.""" +"""Shared security smoke tests verifying payload carriers at backend intake.""" + +import json +from pathlib import Path +from typing import Any + +import jsonschema from utils import context, interfaces, remote_config as rc, weblog from utils._weblog import HttpResponse @@ -436,3 +442,97 @@ def test_login_success_smoke(self) -> None: return raise AssertionError("Agent spans should include user login event tags") + + +# --------------------------------------------------------------------------- +# IAST +# --------------------------------------------------------------------------- + +# The harness mounts this directory in every weblog. No traversal or application file is needed. +_SMOKE_PATH = "/var/log/system-tests" +_SCHEMA = json.loads((Path(__file__).parents[1] / "iast/vulnerability_schema.json").read_text(encoding="utf-8")) + + +def _assert_report(report: dict[str, Any]) -> set[str]: + """Check the source/evidence link in this carrier and return the referenced stack IDs.""" + jsonschema.validate(report, _SCHEMA) + source_indices = { + i + for i, source in enumerate(report.get("sources", [])) + if source.get("name") == "path" and source.get("value") == _SMOKE_PATH + } + assert source_indices, "IAST report lost the submitted path source" + + findings = [finding for finding in report["vulnerabilities"] if finding["type"] == "PATH_TRAVERSAL"] + assert findings, "IAST report lost the path finding" + stack_ids = set() + for finding in findings: + parts = finding["evidence"].get("valueParts", []) + assert any(part.get("source") in source_indices and _SMOKE_PATH in part.get("value", "") for part in parts), ( + "IAST evidence does not point to the submitted path" + ) + stack_id = finding["location"].get("stackId") + assert isinstance(stack_id, str), "IAST finding lost its stackId" + assert stack_id, "IAST finding has an empty stackId" + stack_ids.add(stack_id) + return stack_ids + + +def _assert_stacks(span: DataDogAgentSpan, expected: set[str]) -> None: + stacks = span.get_structured_payloads("_dd.stack") + assert stacks, "Backend did not receive the IAST stack carrier" + for payload in stacks: + seen = set() + for stack in payload.get("vulnerability", []): + if stack.get("id") in expected: + assert isinstance(stack.get("language"), str) + assert stack["language"], "IAST stack lost its language" + frames = stack.get("frames") + assert isinstance(frames, list) + assert frames, "IAST stack lost its frames" + seen.add(stack["id"]) + assert expected <= seen, f"IAST stacks missing for findings: {expected - seen}" + + +def _has_executed_sink_metric() -> bool: + # The intake records telemetry per SDK, not per trace. Match the specific sink, not another IAST check. + for data in interfaces.mocked_backend.get_telemetry_data(flatten_message_batches=False): + content = data["request"]["content"] + if content.get("request_type") != "generate-metrics": + continue + payload = content["payload"] + for series in payload.get("series", []): + if ( + (series.get("namespace") or payload.get("namespace")) == "iast" + and series.get("metric") == "executed.sink" + and "vulnerability_type:path_traversal" in map(str.lower, series.get("tags", [])) + and any(value > 0 for _, value in series.get("points", [])) + ): + return True + return False + + +class BaseIastSmokeTests: + """Verify IAST report, stack, retention and telemetry carriers from a native smoke request.""" + + def setup_iast_smoke(self) -> None: + self.r = weblog.post("/iast/path_traversal/test_insecure", data={"path": _SMOKE_PATH}) + + def test_iast_smoke(self) -> None: + assert self.r.status_code == 200 + report_spans = [ + (span, reports) + for _, span in interfaces.mocked_backend.get_spans(self.r) + if (reports := span.get_structured_payloads("iast", "_dd.iast.json")) + ] + assert report_spans, "Backend did not receive an IAST report for this request" + for span, reports in report_spans: + assert span.get_sampling_priority() == SamplingPriority.USER_KEEP + enabled = span.metrics.get("_dd.iast.enabled", span.meta.get("_dd.iast.enabled")) + assert not isinstance(enabled, bool) + assert enabled in (1, "1"), f"Unexpected _dd.iast.enabled: {enabled!r}" + for report in reports: + _assert_stacks(span, _assert_report(report)) + assert _has_executed_sink_metric(), ( + "Backend did not receive positive IAST executed.sink telemetry for this sink" + ) From c0c1ea7182a0f4375c0d6fa0a1aa956926ead506 Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Mon, 23 Nov 2026 12:38:28 +0000 Subject: [PATCH 3/7] Make the Django IAST directory fixture repeatable Keep the filesystem operation observable on every request, but accept an existing directory instead of returning HTTP 500. Continue to raise for an existing non-directory or other filesystem errors; leave the smoke assertions and manifests unchanged. --- docs/understand/weblogs/end-to-end_weblog.md | 4 ++++ utils/build/docker/python/django/app/urls.py | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/understand/weblogs/end-to-end_weblog.md b/docs/understand/weblogs/end-to-end_weblog.md index bf72194e014..261c3b6d39c 100644 --- a/docs/understand/weblogs/end-to-end_weblog.md +++ b/docs/understand/weblogs/end-to-end_weblog.md @@ -546,6 +546,10 @@ This endpoint should set a cookie with empty cookie value without SameSite=Stric This endpoint should set a cookie with the name and value coming from the request body (using the cookieName and cookieValue properties), with all security flags except SameSite=Strict, to detect only the NO_SAMESITE_COOKIE vulnerability. +### POST /iast/path_traversal/test_insecure + +The IAST smoke test sends the weblog’s existing `/var/log/system-tests` directory in the `path` form field. Each request should exercise the filesystem operation and return HTTP 200, including repeated requests for that directory. + ### GET /iast/header_injection/reflected/exclusion This endpoint should set the header whose name comes in the `reflected` field of the query string, with the reflected value of another header whose name comes in the `origin` field of the query string. diff --git a/utils/build/docker/python/django/app/urls.py b/utils/build/docker/python/django/app/urls.py index 26f4a3f6f1e..94fd023e329 100644 --- a/utils/build/docker/python/django/app/urls.py +++ b/utils/build/docker/python/django/app/urls.py @@ -536,7 +536,12 @@ def view_cmdi_secure(request): @csrf_exempt def view_iast_path_traversal_insecure(request): path = request.POST.get("path", "") - os.mkdir(path) + try: + os.mkdir(path) + except FileExistsError: + # Still exercise mkdir on every request, including for the pre-mounted smoke directory. + if not os.path.isdir(path): + raise return HttpResponse("OK") From 217588bed8b50ed090a94061a66eefbeed77fe8a Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Mon, 23 Nov 2026 14:39:39 +0000 Subject: [PATCH 4/7] Run the flask IAST smoke tests from v4.6.0 in the APM-opt-out scenarios The v4.7.0-rc1 gate was copied from Test_IastStandalone_UpstreamPropagation_V2, where it only marked the dev version at the time a flask weblog flakiness was fixed by a gevent bump (#6567). Every run now uses the fixed weblog. Co-Authored-By: Claude Opus 5.5 --- manifests/python.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/manifests/python.yml b/manifests/python.yml index 4949fc4951f..dc99c49010a 100644 --- a/manifests/python.yml +++ b/manifests/python.yml @@ -1178,7 +1178,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: - weblog_declaration: aiohttp: v4.18.0-rc1 - flask-poc, uds-flask: v4.7.0-rc1 tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - weblog_declaration: @@ -1195,7 +1194,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: - weblog_declaration: aiohttp: v4.18.0-rc1 - flask-poc, uds-flask: v4.7.0-rc1 tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py: v4.6.0 tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_ApiSecurity: From f45b365b9f5470390b1a491941e30c25da7b9991 Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Mon, 23 Nov 2026 14:39:40 +0000 Subject: [PATCH 5/7] State that the IAST executed.sink check is not correlated to the request Telemetry metrics carry no request or span ID, and other smoke requests such as /rasp/lfi reach the same path traversal sink. Co-Authored-By: Claude Opus 5.5 --- tests/appsec/smoke_tests/utils.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/appsec/smoke_tests/utils.py b/tests/appsec/smoke_tests/utils.py index eda75adf41a..11a1613dce7 100644 --- a/tests/appsec/smoke_tests/utils.py +++ b/tests/appsec/smoke_tests/utils.py @@ -495,7 +495,9 @@ def _assert_stacks(span: DataDogAgentSpan, expected: set[str]) -> None: def _has_executed_sink_metric() -> bool: - # The intake records telemetry per SDK, not per trace. Match the specific sink, not another IAST check. + # Telemetry metrics carry no request or span ID, so this cannot be tied to the smoke request: other requests in + # the scenario that reach a path traversal sink (e.g. /rasp/lfi) emit the same series. It checks that sink + # telemetry reaches the intake with the expected namespace, metric and tag, not which request produced it. for data in interfaces.mocked_backend.get_telemetry_data(flatten_message_batches=False): content = data["request"]["content"] if content.get("request_type") != "generate-metrics": @@ -513,7 +515,9 @@ def _has_executed_sink_metric() -> bool: class BaseIastSmokeTests: - """Verify IAST report, stack, retention and telemetry carriers from a native smoke request.""" + """Verify the IAST report, stack and retention carriers of a native smoke request, and that path traversal + sink telemetry reaches the intake (scenario-wide, not correlated to the request). + """ def setup_iast_smoke(self) -> None: self.r = weblog.post("/iast/path_traversal/test_insecure", data={"path": _SMOKE_PATH}) @@ -534,5 +538,5 @@ def test_iast_smoke(self) -> None: for report in reports: _assert_stacks(span, _assert_report(report)) assert _has_executed_sink_metric(), ( - "Backend did not receive positive IAST executed.sink telemetry for this sink" + "Backend did not receive positive IAST executed.sink telemetry for path traversal" ) From ccfe594821174b60a19a9662fddc76edfb02bfbc Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Mon, 23 Nov 2026 14:51:39 +0000 Subject: [PATCH 6/7] Tighten the IAST smoke assertions on findings, frames and metric type Only the path finding for the submitted source has to link to it, so an unrelated path finding on the request no longer fails the test. Reject stacks whose frames were emptied in conversion, and require the executed.sink series to be a count. Co-Authored-By: Claude Opus 5.5 --- tests/appsec/smoke_tests/utils.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tests/appsec/smoke_tests/utils.py b/tests/appsec/smoke_tests/utils.py index 11a1613dce7..88c61a4b36a 100644 --- a/tests/appsec/smoke_tests/utils.py +++ b/tests/appsec/smoke_tests/utils.py @@ -463,14 +463,20 @@ def _assert_report(report: dict[str, Any]) -> set[str]: } assert source_indices, "IAST report lost the submitted path source" - findings = [finding for finding in report["vulnerabilities"] if finding["type"] == "PATH_TRAVERSAL"] - assert findings, "IAST report lost the path finding" + path_findings = [finding for finding in report["vulnerabilities"] if finding["type"] == "PATH_TRAVERSAL"] + assert path_findings, "IAST report lost the path finding" + # Other path findings on the request may come from other sources; only the one for the submitted path is checked. + findings = [ + finding + for finding in path_findings + if any( + part.get("source") in source_indices and _SMOKE_PATH in part.get("value", "") + for part in finding["evidence"].get("valueParts", []) + ) + ] + assert findings, "IAST evidence does not point to the submitted path" stack_ids = set() for finding in findings: - parts = finding["evidence"].get("valueParts", []) - assert any(part.get("source") in source_indices and _SMOKE_PATH in part.get("value", "") for part in parts), ( - "IAST evidence does not point to the submitted path" - ) stack_id = finding["location"].get("stackId") assert isinstance(stack_id, str), "IAST finding lost its stackId" assert stack_id, "IAST finding has an empty stackId" @@ -490,6 +496,7 @@ def _assert_stacks(span: DataDogAgentSpan, expected: set[str]) -> None: frames = stack.get("frames") assert isinstance(frames, list) assert frames, "IAST stack lost its frames" + assert all(isinstance(frame, dict) and frame for frame in frames), "IAST stack has empty frames" seen.add(stack["id"]) assert expected <= seen, f"IAST stacks missing for findings: {expected - seen}" @@ -507,6 +514,7 @@ def _has_executed_sink_metric() -> bool: if ( (series.get("namespace") or payload.get("namespace")) == "iast" and series.get("metric") == "executed.sink" + and series.get("type", "count") == "count" and "vulnerability_type:path_traversal" in map(str.lower, series.get("tags", [])) and any(value > 0 for _, value in series.get("points", [])) ): From f05efdc1b1f83b9cba6fef175249540382911636 Mon Sep 17 00:00:00 2001 From: "florentin.labelle" Date: Tue, 24 Nov 2026 09:20:22 +0000 Subject: [PATCH 7/7] Consolidate standalone IAST smoke tests and share the schema --- manifests/cpp_nginx.yml | 4 +--- manifests/golang.yml | 4 +--- manifests/java.yml | 8 +------ manifests/nodejs.yml | 8 +------ manifests/php.yml | 4 +--- manifests/python.yml | 10 +-------- manifests/ruby.yml | 4 +--- .../appsec/iast/test_vulnerability_schema.py | 6 ++---- .../appsec/smoke_tests/test_apm_standalone.py | 21 +++++-------------- tests/appsec/smoke_tests/utils.py | 4 ++-- tests/appsec/utils.py | 3 +++ .../{iast => utils}/vulnerability_schema.json | 0 12 files changed, 19 insertions(+), 57 deletions(-) rename tests/appsec/{iast => utils}/vulnerability_schema.json (100%) diff --git a/manifests/cpp_nginx.yml b/manifests/cpp_nginx.yml index cd3a77097e0..2cbfd4dfe93 100644 --- a/manifests/cpp_nginx.yml +++ b/manifests/cpp_nginx.yml @@ -86,7 +86,6 @@ manifest: tests/appsec/iast/test_vulnerability_schema.py: irrelevant (ASM is not implemented in C++) tests/appsec/rasp/: irrelevant (ASM is not implemented in C++) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_ApiSecurity: '>=1.19.1' # TODO: a lower version might be supported - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_RemoteConfig: '>=1.19.1' # TODO: a lower version might be supported tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_RemoteConfig::test_rasp_blocking_smoke: missing_feature @@ -95,7 +94,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Threats::test_waf_monitoring_smoke: missing_feature (WAF monitoring tags not implemented) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_UserEvents: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: '>=1.19.1' # TODO: a lower version might be supported - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_RemoteConfig: '>=1.19.1' # TODO: a lower version might be supported tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_RemoteConfig::test_rasp_blocking_smoke: missing_feature @@ -103,7 +101,7 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Threats: '>=1.19.1' # TODO: a lower version might be supported tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Threats::test_waf_monitoring_smoke: missing_feature (WAF monitoring tags not implemented) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_UserEvents: missing_feature - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: irrelevant (The nginx module does not implement IAST) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_ApiSecurity: '>=1.19.1' tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: irrelevant (The nginx module does not implement IAST) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp: missing_feature diff --git a/manifests/golang.yml b/manifests/golang.yml index 2420a324ad3..f3f86e1a73d 100644 --- a/manifests/golang.yml +++ b/manifests/golang.yml @@ -681,7 +681,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_ApiSecurity: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion @@ -711,7 +710,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion @@ -738,7 +736,7 @@ manifest: - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) weblog: fiber-v2-orchestrion tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_UserEvents: missing_feature - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py: v2.7.0 tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_ApiSecurity: # Easy win for fiber-v2-orchestrion and version 2.12.0 - declaration: missing_feature (Fiber v2 has no HTTP AppSec integration) diff --git a/manifests/java.yml b/manifests/java.yml index 0d92785ce01..abf267af23c 100644 --- a/manifests/java.yml +++ b/manifests/java.yml @@ -1651,9 +1651,6 @@ manifest: - weblog_declaration: "*": v1.60.3 spring-boot-3-native: irrelevant (GraalVM. Tracing support only) - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: - - weblog_declaration: - play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: - weblog_declaration: spring-boot-payara: v1.66.0 # TODO: a lower version might be supported @@ -1675,9 +1672,6 @@ manifest: vertx4: missing_feature (login endpoints not implemented) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: - declaration: flaky (APPSEC-60872) - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: - - weblog_declaration: - play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - declaration: flaky (APPSEC-60872) - weblog_declaration: @@ -1701,7 +1695,7 @@ manifest: resteasy-netty3: missing_feature (login endpoints not implemented) vertx3: missing_feature (login endpoints not implemented) vertx4: missing_feature (login endpoints not implemented) - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: - weblog_declaration: play, ratpack: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py: diff --git a/manifests/nodejs.yml b/manifests/nodejs.yml index a878902fffc..c2ed4490636 100644 --- a/manifests/nodejs.yml +++ b/manifests/nodejs.yml @@ -1112,9 +1112,6 @@ manifest: nextjs: *ref_6_26_0 tests/appsec/rasp/test_ssrf.py::Test_Ssrf_Waf_Version: *ref_5_25_0 tests/appsec/smoke_tests/test_apm_standalone.py: v5.92.0 - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: - - weblog_declaration: - nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: - weblog_declaration: nextjs: v6.19.0 # TODO: a lower version might be supported @@ -1125,9 +1122,6 @@ manifest: - weblog_declaration: fastify: missing_feature nextjs: missing_feature - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: - - weblog_declaration: - nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - weblog_declaration: nextjs: v6.19.0 # TODO: a lower version might be supported @@ -1138,7 +1132,7 @@ manifest: - weblog_declaration: fastify: missing_feature nextjs: missing_feature - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: - weblog_declaration: nextjs: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_security.py: v5.92.0 diff --git a/manifests/php.yml b/manifests/php.yml index 70b27c131be..f342ffe7226 100644 --- a/manifests/php.yml +++ b/manifests/php.yml @@ -465,7 +465,6 @@ manifest: tests/appsec/rasp/test_ssrf.py::Test_Ssrf_UrlQuery: v1.7.0 tests/appsec/rasp/test_ssrf.py::Test_Ssrf_Waf_Version: v1.7.0 tests/appsec/smoke_tests/test_apm_standalone.py: v1.18.0 - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_sqli_smoke: # TODO: a lower version might be supported - weblog_declaration: @@ -480,7 +479,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity::test_api_security_smoke: - weblog_declaration: apache-mod-7.2: flaky (APPSEC-70615) - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_sqli_smoke: # TODO: a lower version might be supported - weblog_declaration: @@ -492,7 +490,7 @@ manifest: weblog: [apache-mod-8.1-zts, apache-mod-7.4-zts, apache-mod-7.2-zts, php-fpm-8.1, apache-mod-8.2-zts, apache-mod-8.2, php-fpm-7.0, apache-mod-7.0, php-fpm-8.0, apache-mod-7.2, apache-mod-7.1-zts, apache-mod-7.3-zts, apache-mod-7.1, php-fpm-7.3, apache-mod-8.1, symfony7x, apache-mod-7.4, apache-mod-7.3, php-fpm-7.1, apache-mod-8.0, php-fpm-8.5, php-fpm-8.6, php-fpm-8.2, apache-mod-8.0-zts, php-fpm-7.4, apache-mod-7.0-zts, laravel11x, php-fpm-7.2] - declaration: bug (APPSEC-69429) excluded_weblog: [apache-mod-8.1-zts, apache-mod-7.4-zts, apache-mod-7.2-zts, php-fpm-8.1, apache-mod-8.2-zts, apache-mod-8.2, php-fpm-7.0, apache-mod-7.0, php-fpm-8.0, apache-mod-7.2, apache-mod-7.1-zts, apache-mod-7.3-zts, apache-mod-7.1, php-fpm-7.3, apache-mod-8.1, symfony7x, apache-mod-7.4, apache-mod-7.3, php-fpm-7.1, apache-mod-8.0, php-fpm-8.5, php-fpm-8.6, php-fpm-8.2, apache-mod-8.0-zts, php-fpm-7.4, apache-mod-7.0-zts, laravel11x, php-fpm-7.2] - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py: v1.18.0 tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_shi_smoke: missing_feature diff --git a/manifests/python.yml b/manifests/python.yml index dc99c49010a..2a457944223 100644 --- a/manifests/python.yml +++ b/manifests/python.yml @@ -1156,10 +1156,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_ApiSecurity: - weblog_declaration: aiohttp: v4.17.0-rc1 - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: - - weblog_declaration: - aiohttp: v4.18.0-rc1 - tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp: - weblog_declaration: aiohttp: v4.17.0-rc1 @@ -1175,10 +1171,6 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_ApiSecurity: - weblog_declaration: aiohttp: v4.17.0-rc1 - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: - - weblog_declaration: - aiohttp: v4.18.0-rc1 - tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp: - weblog_declaration: aiohttp: v4.17.0-rc1 @@ -1191,7 +1183,7 @@ manifest: tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Threats: - weblog_declaration: aiohttp: v4.17.0-rc1 - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: - weblog_declaration: aiohttp: v4.18.0-rc1 tornado: incomplete_test_app (The weblog does not implement the IAST path endpoint) diff --git a/manifests/ruby.yml b/manifests/ruby.yml index 988fdf6de6a..00c53814a71 100644 --- a/manifests/ruby.yml +++ b/manifests/ruby.yml @@ -1253,7 +1253,6 @@ manifest: "*": v2.29.0 "graphql23": irrelevant tests/appsec/smoke_tests/test_apm_standalone.py: v2.30.0 - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_lfi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecAPMStandalone_Rasp::test_sqli_smoke: @@ -1275,7 +1274,6 @@ manifest: sinatra32: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) sinatra41: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) uds-sinatra: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) - tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_lfi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_shi_smoke: missing_feature tests/appsec/smoke_tests/test_apm_standalone.py::Test_AppSecStandaloneAPMStandalone_Rasp::test_sqli_smoke: @@ -1297,7 +1295,7 @@ manifest: sinatra32: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) sinatra41: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) uds-sinatra: missing_feature (no instrumentation of authentication frameworks that work with sinatra or rack) - tests/appsec/smoke_tests/test_apm_standalone.py::Test_IastStandalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) + tests/appsec/smoke_tests/test_apm_standalone.py::Test_Standalone_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py: v2.30.0 tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Iast: missing_feature (IAST path reports and vulnerability stacks are not supported) tests/appsec/smoke_tests/test_security.py::Test_SecuritySmoke_Rasp::test_lfi_smoke: missing_feature diff --git a/tests/appsec/iast/test_vulnerability_schema.py b/tests/appsec/iast/test_vulnerability_schema.py index f2a446ea0d1..f2a51dd0397 100644 --- a/tests/appsec/iast/test_vulnerability_schema.py +++ b/tests/appsec/iast/test_vulnerability_schema.py @@ -1,15 +1,13 @@ import jsonschema import json -from pathlib import Path +from tests.appsec.utils import IAST_VULNERABILITY_SCHEMA_PATH from utils import interfaces, features @features.iast_schema class TestIastVulnerabilitySchema: def test_vulnerability_schema(self) -> None: - schema_path = Path(__file__).parent / "vulnerability_schema.json" - with open(schema_path, "r") as f: - schema = json.load(f) + schema = json.loads(IAST_VULNERABILITY_SCHEMA_PATH.read_text(encoding="utf-8")) validator = jsonschema.Draft7Validator(schema) spans = [s for _, s in interfaces.library.get_root_spans()] for span in spans: diff --git a/tests/appsec/smoke_tests/test_apm_standalone.py b/tests/appsec/smoke_tests/test_apm_standalone.py index 57d9090d829..6aa6d7ffc38 100644 --- a/tests/appsec/smoke_tests/test_apm_standalone.py +++ b/tests/appsec/smoke_tests/test_apm_standalone.py @@ -66,13 +66,6 @@ class Test_AppSecAPMStandalone_UserEvents(BaseUserEventsSmokeTests): pass -@apm_standalone_rfc -@features.appsec_apm_standalone -@scenarios.appsec_apm_standalone -class Test_AppSecAPMStandalone_Iast(BaseIastSmokeTests): - pass - - # --- APPSEC_STANDALONE_APM_STANDALONE (DD_APM_TRACING_ENABLED=false) --------- @@ -118,18 +111,14 @@ class Test_AppSecStandaloneAPMStandalone_UserEvents(BaseUserEventsSmokeTests): pass -@apm_standalone_rfc -@features.appsec_apm_standalone -@scenarios.appsec_standalone_apm_standalone -class Test_AppSecStandaloneAPMStandalone_Iast(BaseIastSmokeTests): - pass - - -# --- IAST_STANDALONE (DD_APPSEC_ENABLED=false, DD_APM_TRACING_ENABLED=false) - +# --- IAST across all standalone scenarios --------------------------------- @apm_standalone_rfc +@features.appsec_apm_standalone @features.iast_standalone +@scenarios.appsec_apm_standalone +@scenarios.appsec_standalone_apm_standalone @scenarios.iast_standalone -class Test_IastStandalone_Iast(BaseIastSmokeTests): +class Test_Standalone_Iast(BaseIastSmokeTests): pass diff --git a/tests/appsec/smoke_tests/utils.py b/tests/appsec/smoke_tests/utils.py index 88c61a4b36a..7d34589bca7 100644 --- a/tests/appsec/smoke_tests/utils.py +++ b/tests/appsec/smoke_tests/utils.py @@ -5,11 +5,11 @@ """Shared security smoke tests verifying payload carriers at backend intake.""" import json -from pathlib import Path from typing import Any import jsonschema +from tests.appsec.utils import IAST_VULNERABILITY_SCHEMA_PATH from utils import context, interfaces, remote_config as rc, weblog from utils._weblog import HttpResponse from utils.dd_constants import SamplingPriority @@ -450,7 +450,7 @@ def test_login_success_smoke(self) -> None: # The harness mounts this directory in every weblog. No traversal or application file is needed. _SMOKE_PATH = "/var/log/system-tests" -_SCHEMA = json.loads((Path(__file__).parents[1] / "iast/vulnerability_schema.json").read_text(encoding="utf-8")) +_SCHEMA = json.loads(IAST_VULNERABILITY_SCHEMA_PATH.read_text(encoding="utf-8")) def _assert_report(report: dict[str, Any]) -> set[str]: diff --git a/tests/appsec/utils.py b/tests/appsec/utils.py index 565f1059868..26e5fe71f2e 100644 --- a/tests/appsec/utils.py +++ b/tests/appsec/utils.py @@ -1,11 +1,14 @@ from collections.abc import Generator, Iterable import os +from pathlib import Path from utils import interfaces from utils import remote_config from utils.dd_constants import RemoteConfigApplyState from utils.dd_types import DataDogLibrarySpan +IAST_VULNERABILITY_SCHEMA_PATH = Path(__file__).parent / "utils" / "vulnerability_schema.json" + BLOCKED_IPS_COUNT_ENV_VAR = "_SYSTEM_TESTS_BLOCKED_IPS_COUNT" DEFAULT_BLOCKED_IPS_COUNT = 12500 # _blocked_ip() lays the denylist out over 12.8.0.0-12.9.255.255, using the second octet as an diff --git a/tests/appsec/iast/vulnerability_schema.json b/tests/appsec/utils/vulnerability_schema.json similarity index 100% rename from tests/appsec/iast/vulnerability_schema.json rename to tests/appsec/utils/vulnerability_schema.json