Reproduce “Prompt Injection as Role Confusion” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Charles Ye, Jasmine Cui, Dylan Hadfield-Menell

The paper tests whether language models confuse role tags with writing style, allowing untrusted text to gain authority. It uses fabricated chain-of-thought attacks, controlled role probes, and an agent-injection experiment. In one comparison, styled versus destyled attacks reached 60.5% and 9.7% success, while Userness predicted exfiltration from 2% to 70%. These findings diagnose risk, not provide a defense.

Key insights

  • LLMs do not robustly track the true tag-specified source of text; instead, they infer roles primarily from spoofable cues like style, lexical choice, explicit declarations, or positional information.
  • When architectural tags conflict with stylistic cues, the stylistic cues produce a stronger activation in the model's internal representations, effectively overriding the intended tag-based role.
  • The logical coherence of forged reasoning is not critically scrutinized; models execute perceived internal thoughts (CoT) even if the underlying logic is absurd, demonstrating a failure of obedience due to misperception.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.