Tokenizer settings leave 255 of 400 popular chat models exposed to prompt-injection exploits.
Researchers show a forged template marker such as <|im_start|> can reach a model either as a single reserved control token or as an identical sequence of ordinary subword tokens.
When defenders encode forged markers as subwords (keeping the visible text unchanged), attack success falls by 39–66 percentage points on three of four open-weight model families.
The standard tokenizer mitigation only applies to tokens a configuration declares special, and in 33 of 67 distinct tokenizer configurations it leaves tool-protocol tokens unchanged.
Those vulnerable configurations cover 255 of 400 of the most-downloaded chat models on , so the weakness is widespread in deployed models.
A training-free fallback — rendering untrusted payloads as images called Pictionary — consistently reduces attacks across ten models while largely preserving benign utility.
Sources 1
- ASame Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt InjectionWed 30 Sept, 2:00pm↗
arXiv cs.AI4 articles
3 more from arXiv cs.AI
Render Before Reading: Visual Rendering as a Prompt Injection DefenseWed 30 Sept, 2:00pm↗Meta-SecAlign: Training LLMs against Prompt Injection for Robust AgentsWed 30 Sept, 2:00pm↗Reinforcement Learning from Intermediate Renders for Image-to-Code GenerationTue 29 Sept, 2:00pm↗
More on Artificial intelligence