← Lab /AI/ML

LLMs can be tricked into impersonating users via role spoofing

AI/ML Method · Prototype · arXiv

The claim

LLMs are highly susceptible to role spoofing attacks that combine fake structure and content

Ezra Edelman, Benjamin Edelman, Surbhi Goel, Eran Malach · arXiv Paper PDF

Published as: “Understanding and Mitigating Role Spoofing in LLMs”

So what

Deployers of LLM agents can add a lightweight linear-probe detector to flag role-spoofing injections, reducing the risk of unauthorized actions without high computational overhead.

The five-minute version

Role spoofing attacks that combine fake content and fake special-token structure cause LLM agents to impersonate the user over 95% of the time on several frontier models. The paper shows that adversarial training only mitigates content-based attacks while leaving models vulnerable to structure-based attacks, and proposes linear probes over internal activations that detect role spoofing with near-perfect separation and lower false-positive rates than prior methods. Evidence is based on experiments across multiple models in the AgentDojo benchmark and a custom tool-use testbed.

What they found 2

What undercuts it the paper’s own results

Stated limits 2

What’s new here 4

Artifacts & methods 5

Topics

role spoofingprompt injectionLLM agentslinear probingout-of-distribution generalizationadversarial trainingconversation role tracking
← Previous Two-level keystroke system achieves 96% fixed-text accuracy and 83.5% TAR for continuous auth