fix(iast): ignore secured ranges when applying origin exclusions #22085
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 221 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #22085"
general
weight: 0.35
avara1986
<!-- dd-meta {"pullId":"20bff613-ab19-48ac-8f46-085792becd94","source":"chat","resourceId":"105e8025-5412-4348-9bac-9df68a1c224d","workflowId":"4998e535-01c7-4e9c-8387-406e5c682b29","codeChangeId":"4998e535-01c7-4e9c-8387-406e5c682b29","sourceType":"action_platform_workflows"} -->
Description
Workflow Automation • View in Workflow Automation
Apply origin exclusions to unsecured taint ranges only. A secured range can no longer make an otherwise excluded range reportable. The regression test covers both validated and unvalidated input.
Customer impact
IAST reports fewer false-positive unvalidated redirects. The change includes a release note.
Testing
The Bits Code session ran the Python 3.12 IAST suite (19,984 passed, 75 skipped), the Flask redirect checks (3 passed), and
scripts/lint checks. The regression reproduced on the base revision. The follow-up passed 89 focused Python 3.12 IAST tests (1 skipped) andscripts/lint checks, including coverage that distinguishes suppression by secure marks from exclusion by origin.Risks
VulnerabilityBase.is_tainted_pyobjectis shared by multiple sinks. It now returns as soon as an unsecured range has a non-excluded origin, without allocating a list. The suppression metric still records only when all ranges have the secure mark.Additional Notes
An isolated Python 3.12 microbenchmark using synthetic ranges measured 83–86% lower per-call time versus the initial draft when the first of ten ranges qualified. This does not measure end-to-end IAST performance.
---
PR by Bits - View session in Datadog
Comment @datadog to request changes