← Back to Pull requests

fix(iast): ignore secured ranges when applying origin exclusions #22085

Closed
unknown closed this pull request without merging on Nov 25, 2026 10:47 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 09:15 UTC
Author

<!-- 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) and scripts/lint checks, including coverage that distinguishes suppression by secure marks from exclusion by origin.

Risks


VulnerabilityBase.is_tainted_pyobject is 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

Diff: 221 lines (+165 / -56) across 2 files Reviewer: avara1986 Review duration: 91m
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
0.37
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.323
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #22085"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
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: 36.8% (MEDIUM) · Higher = larger blast radius
36.8%
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: 14.5% · Safe to merge
14.5%