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