Study finds LLMs can be role-spoofed by malicious tool output
Original title: Understanding and Mitigating Role Spoofing in LLMs
Linear role probes detect spoofing; content-only adversarial training still leaves structure-based attacks effective.
The paper studies role spoofing, in which malicious text in tool outputs impersonates the user by exploiting role confusion. Models track speakers using content cues such as style and structural cues such as control tokens and formatting. Combined fake structure and content make models highly susceptible. Adversarial training against content-based injections did not stop structure-based attacks in a toy setting. Linear probes trained to predict roles are proposed as a detector and reported effective across settings.
Unconfirmed: The claim that this explains frontier-model susceptibility is the authors' interpretation, not a test of named models.
- Role spoofing uses malicious tool output, such as a webpage an agent fetches.
- Models use semantics, writing style, control tokens, and formatting as speaker cues.
- Content-only adversarial training leaves structure-based spoofing intact.
- Detection relies on linear probes trained to predict conversation roles.
From the original article
1 min read at arxiv.orgDespite growing capabilities, LLMs remain susceptible to prompt injections: malicious inputs that can manipulate or hijack models. In particular, it has recently been observed that LLMs can exhibit role confusion (Ye et al. , 2026), where models attribute the source of text based on its style instead of its labeled role.
By Ezra Edelman · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.