Skip to content

Hide Navigation Hide TOC

Backslash-Per-Character Encoding Attack - ATR-2026-00454 (28e1010b-2a26-508f-ab3b-7a966d961915)

Detects adversarial prompts that insert a backslash before every individual character to evade token-filter defenses: "\I\ \h\a\v\e\ \b\e\e\n\ \P\W\N\E\D". This per-character encoding technique appears in 286+ HackAPrompt corpus samples as a bypass against naive string-match or keyword filters — the backslashes fragment injection keywords into unrecognisable token sequences while the LLM can still reconstruct the original phrase. The detection is structural: it matches 3 or more consecutive backslash-single-character pairs (optionally space-separated) regardless of the encoded content, signalling an encoding evasion attempt for any underlying payload. The character set covers ASCII letters, digits, CJK unicode (Chinese variants), and common punctuation characters used in injection payloads. Backtick characters are excluded to avoid false triggers on Markdown code fences. Standard two-character escape sequences (\n, \t, \r) and Windows directory paths are excluded by requiring 3+ consecutive pairs rather than isolated occurrences. 0 FP on 431-sample benign + 1352 extended-benign + 157 research-mention corpora.

Cluster A Galaxy A Cluster B Galaxy B Level
LLM Prompt Injection (19cd2d12-66ff-487c-a05c-e058b027efc9) MITRE ATLAS Attack Pattern Backslash-Per-Character Encoding Attack - ATR-2026-00454 (28e1010b-2a26-508f-ab3b-7a966d961915) Agent Threat Rules 1
Backslash-Per-Character Encoding Attack - ATR-2026-00454 (28e1010b-2a26-508f-ab3b-7a966d961915) Agent Threat Rules Direct (d911e8cb-0601-42f1-90de-7ce0b21cd578) MITRE ATLAS Attack Pattern 1
LLM Prompt Injection (19cd2d12-66ff-487c-a05c-e058b027efc9) MITRE ATLAS Attack Pattern Direct (d911e8cb-0601-42f1-90de-7ce0b21cd578) MITRE ATLAS Attack Pattern 2