Back to section
Willison ⭐ Notable

Prompt Injection as Role Confusion

Utorok 23. júna 2026 Source: Simon Willison

Main idea

Willison highlights new research (Charles Ye, Jasmine Cui, Dylan Hadfield-Menell) that reframes prompt injection. LLMs distinguishing privileged system instructions from adversarial user input rely on visual/styling cues more than on semantic content.

Context

Prompt injection has been a defined problem since 2022, but the community usually treats it as content filtering. This research shifts the lens — it's role confusion: if the attacker stylistically mimics the format of a system instruction, the model trusts it. Destyling the attack (formatting normalization) drops attack success rate from 61% to 10%.

Why it matters

For builders of agentic systems it offers a concrete technical lever: input normalization may be a cheaper and more effective defense than classifiers. Reshapes the debate on RAG safety and tool-use safety.

Details / arguments

  • Attack success no intervention: 61%
  • After destyling: 10%
  • Reframe: role confusion not content classification
  • Concrete lever: input normalization before the LLM
Open original source Simon Willison