SG-010: Obfuscation: Unicode
Severity: MEDIUM
Zero-width characters and RTL override characters
Fires when
- Contains a zero-width character (Zero Width Space/Joiner/Non-Joiner, Word Joiner, Soft Hyphen, BOM) that is invisible to humans but processed by the AI
- Contains a right-to-left override or directional-isolate character (e.g. U+202E) that can visually reverse or reorder text
Remediation
No safe remediation: a file that triggers this rule should be rejected, not patched. Read the flagged lines in the source before deciding.