1
DOMPurify — Structural XSS
Strips 20 forbidden tags (script, style, link, object, embed…) and 20 forbidden attributes including all event handlers
→ STRIP
2
Regex — Credential Leaks
7 patterns: AWS keys, SendGrid tokens, GitHub PATs, JWTs, private keys — gated by Shannon entropy to cut false positives
→ REDACT
3
Exfil Beacons & Prompt Injection
3 exfiltration patterns (tracking pixels, beacon URLs) + 13 LLM prompt injection payloads removed inline
→ STRIP