Understanding and Mitigating Role Spoofing in LLMs
This arXiv paper examines role spoofing, an attack in which malicious text—such as content from a tool output or webpage—exploits LLM role confusion to impersonate the user. The authors show that models track speakers using both content cues, including semantics and writing style, and structural cues, including control tokens and formatting, and that attacks combining fake structure and content are highly effective. In a toy setting, adversarial training reduced susceptibility to content-based injections but not structure-based attacks. The paper also proposes detecting role spoofing with linear probes trained to predict conversational roles and reports effectiveness across settings.
It offers a concrete analysis of a prompt-injection risk in tool-using LLM systems and proposes a detection approach relevant to AI security practitioners.
Comments & Questions (0)
No comments yet
Be the first to comment!