{"id":121538,"topic":"ai","source":"arxiv","title":"Understanding and Mitigating Role Spoofing in LLMs","url":"https://arxiv.org/abs/2610.40396","url_hash":"b2ec3f30f85fa1780dbfc6148d13a43d3356cd7a","author":"Ezra Edelman, Benjamin Edelman, Surbhi Goel, Eran Malach","summary":"Despite 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. Malicious text in tool outputs (for instance, a malicious webpage accessed by an agent) can leverage role confusion to impersonate the user, an attack we call role spoofing}. In this work, we seek to understand and mitigate role spoofing. We study how models track \"who said what\" in a conversation, showing that they use cues from both content (e.g., semantics and writing style) and structure (e.g., control tokens and formatting). We show that LLMs are highly susceptible to role spoofing attacks that combine both fake structure and content. Additionally, in a toy setting, we show that adversarial training which teaches the model to ignore content-based injections does mitigate content-based attacks but leaves the model susceptible to structure-based attacks. This can explain why frontier models, with increased resistance to many injection attacks, can still be susceptible to role spoofing. Finally, we propose a new method for detecting role spoofing using linear probes trained to predict roles in a conversation, and show that it is effective across different settings.","content":null,"image_url":null,"lang":"","published_at":"2026-10-29T16:33:08+00:00","fetched_at":"2026-10-30T22:25:37+00:00","status":"read","starred":0,"extract_state":"ok","summary_auto":null,"cluster_id":null,"extract_retries":0,"extract_error":null,"item_type":"paper","ref_id":"10.48550/arxiv.2610.40396","refs_json":"{\"authors\": [\"Ezra Edelman\", \"Benjamin Edelman\", \"Surbhi Goel\", \"Eran Malach\"]}","doi":"10.48550/arxiv.2610.40396","arxiv_id":"2610.40396","paper_version":"v1","sources_json":"[{\"name\": \"arxiv\"}]","relevance_score":0.1,"relevance_method":"keyword","cited_by":null,"contract_version":"news_item.v1","format_contract_version":"news_item_formats.v1","dedup_url":"https://arxiv.org/abs/2610.40396","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"medium","confidence":0.5,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"Medium confidence: summary fallback used without full text.","operator_guidance":{"severity":"warning","recommended_action":"use_summary_with_caveat","next_step":"Use the available summary only with a visible quality caveat.","operator_label":"Use summary with caveat","can_retry":false,"can_use_summary":true,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"summary_only","label":"Summary only","has_full_text":false,"has_summary":true,"content_length":0,"summary_length":1405,"usable_text_length":1405,"source_field":"summary"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":0,"summary_length":1405}},"news_item":{"id":121538,"canonical_url":"https://arxiv.org/abs/2610.40396","source_url":"https://arxiv.org/abs/2610.40396","title":"Understanding and Mitigating Role Spoofing in LLMs","source_name":"arxiv","author":"Ezra Edelman, Benjamin Edelman, Surbhi Goel, Eran Malach","published_at":"2026-10-29T16:33:08+00:00","locale":null,"topic":"ai","tags":[],"rss_summary":"Despite 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. Malicious text in tool outputs (for instance, a malicious webpage accessed by an agent) can leverage role confusion to impersonate the user, an attack we call role spoofing}. In this work, we seek to understand and mitigate role spoofing. We study how models track \"who said what\" in a conversation, showing that they use cues from both content (e.g., semantics and writing style) and structure (e.g., control tokens and formatting). We show that LLMs are highly susceptible to role spoofing attacks that combine both fake structure and content. Additionally, in a toy setting, we show that adversarial training which teaches the model to ignore content-based injections does mitigate content-based attacks but leaves the model susceptible to structure-based attacks. This can explain why frontier models, with increased resistance to many injection attacks, can still be susceptible to role spoofing. Finally, we propose a new method for detecting role spoofing using linear probes trained to predict roles in a conversation, and show that it is effective across different settings.","full_text":null,"excerpt":"Despite 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. Malicious text in tool outputs (for instance, a malicious webpage accessed by an agent) can leverage role confusion to impersonate the user, an attack we call role spoofing}. In this work, we seek to understand and mitigate role spoofing. We study how models track \"who said what\" in a conversation, showing that they use cues from both content (e.g., semantics and writing style) and structure (e.g., control tokens and formatting). We show that LLMs are highly susceptible to role spoofing attacks that combine both fake structure and content. Additionally, in a toy setting, we show that adversarial training which teaches the model to ignore content-based injections does mitigate content-based attacks but leaves the model susceptible to structure-based attacks. This can explain why frontier models, with increased resistance to many injection attacks, can still be susceptible to role spoofing. Finally, we propose a new method for detecting role spoofing using linear probes trained to predict roles in a conversation, and show that it is effective across different settings.","extraction":{"state":"ok","confidence":0.5,"error":null,"explanation":"Medium confidence: summary fallback used without full text.","diagnostics_url":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"medium","confidence":0.5,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"Medium confidence: summary fallback used without full text.","operator_guidance":{"severity":"warning","recommended_action":"use_summary_with_caveat","next_step":"Use the available summary only with a visible quality caveat.","operator_label":"Use summary with caveat","can_retry":false,"can_use_summary":true,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"summary_only","label":"Summary only","has_full_text":false,"has_summary":true,"content_length":0,"summary_length":1405,"usable_text_length":1405,"source_field":"summary"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":0,"summary_length":1405}}},"display_formats":["compact","card","full","digest_section","json"]},"daily_stack_record":{"title":"Understanding and Mitigating Role Spoofing in LLMs","url":"https://arxiv.org/abs/2610.40396","summary":"Despite 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. Malicious text in tool outputs (for instance, a malicious webpage accessed by an agent) can leverage role confusion to impersonate the user, an attack we call role spoofing}. In this work, we seek to understand and mitigate role spoofing. We study how models track \"who said what\" in a conversation, showing that they use cues from both content (e.g., semantics and writing style) and structure (e.g., control tokens and formatting). We show that LLMs are highly susceptible to role spoofing attacks that combine both fake structure and content. Additionally, in a toy setting, we show that adversarial training which teaches the model to ignore content-based injections does mitigate content-based attacks but leaves the model susceptible to structure-based attacks. This can explain why frontier models, with increased resistance to many injection attacks, can still be susceptible to role spoofing. Finally, we propose a new method for detecting role spoofing using linear probes trained to predict roles in a conversation, and show that it is effective across different settings.","source":"arxiv","date":"2026-10-29T16:33:08+00:00","content":"","confidence":0.5,"diagnostics_url":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396","quality_bucket":"medium","failure_kind":"none","retryable":false,"quality_reason":"Medium confidence: summary fallback used without full text.","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"medium","confidence":0.5,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"Medium confidence: summary fallback used without full text.","operator_guidance":{"severity":"warning","recommended_action":"use_summary_with_caveat","next_step":"Use the available summary only with a visible quality caveat.","operator_label":"Use summary with caveat","can_retry":false,"can_use_summary":true,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"summary_only","label":"Summary only","has_full_text":false,"has_summary":true,"content_length":0,"summary_length":1405,"usable_text_length":1405,"source_field":"summary"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":0,"summary_length":1405}},"tags":[]},"fallback_formats":["markdown","json","html"],"actions":{"read":"/item/121538","export_markdown":"/api/items/121538/export?format=markdown","export_json":"/api/items/121538/export?format=json","diagnose":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396"},"formats":{"full":{"id":121538,"title":"Understanding and Mitigating Role Spoofing in LLMs","url":"https://arxiv.org/abs/2610.40396","source":"arxiv","author":"Ezra Edelman, Benjamin Edelman, Surbhi Goel, Eran Malach","published_at":"2026-10-29T16:33:08+00:00","locale":null,"topic":"ai","tags":[],"excerpt":"Despite 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. Malicious text in tool outputs (for instance, a malicious webpage accessed by an agent) can leverage role confusion to impersonate the user, an attack we call role spoofing}. In this work, we seek to understand and mitigate role spoofing. We study how models track \"who said what\" in a conversation, showing that they use cues from both content (e.g., semantics and writing style) and structure (e.g., control tokens and formatting). We show that LLMs are highly susceptible to role spoofing attacks that combine both fake structure and content. Additionally, in a toy setting, we show that adversarial training which teaches the model to ignore content-based injections does mitigate content-based attacks but leaves the model susceptible to structure-based attacks. This can explain why frontier models, with increased resistance to many injection attacks, can still be susceptible to role spoofing. Finally, we propose a new method for detecting role spoofing using linear probes trained to predict roles in a conversation, and show that it is effective across different settings.","full_text":null,"reading_time_min":1,"extraction":{"state":"ok","confidence":0.5,"error":null,"explanation":"Medium confidence: summary fallback used without full text.","diagnostics_url":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"medium","confidence":0.5,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"Medium confidence: summary fallback used without full text.","operator_guidance":{"severity":"warning","recommended_action":"use_summary_with_caveat","next_step":"Use the available summary only with a visible quality caveat.","operator_label":"Use summary with caveat","can_retry":false,"can_use_summary":true,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"summary_only","label":"Summary only","has_full_text":false,"has_summary":true,"content_length":0,"summary_length":1405,"usable_text_length":1405,"source_field":"summary"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":0,"summary_length":1405}}},"quality_profile":{"profile_version":"extraction_quality.v2","bucket":"medium","confidence":0.5,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"Medium confidence: summary fallback used without full text.","operator_guidance":{"severity":"warning","recommended_action":"use_summary_with_caveat","next_step":"Use the available summary only with a visible quality caveat.","operator_label":"Use summary with caveat","can_retry":false,"can_use_summary":true,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"summary_only","label":"Summary only","has_full_text":false,"has_summary":true,"content_length":0,"summary_length":1405,"usable_text_length":1405,"source_field":"summary"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":0,"summary_length":1405}},"actions":{"read":"/item/121538","export_markdown":"/api/items/121538/export?format=markdown","export_json":"/api/items/121538/export?format=json","diagnose":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396"}},"digest":{"id":121538,"title":"Understanding and Mitigating Role Spoofing in LLMs","url":"https://arxiv.org/abs/2610.40396","source":"arxiv","topic":"ai","published_at":"2026-10-29T16:33:08+00:00","excerpt":"Despite 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…","quality_bucket":"medium","quality_reason":"Medium confidence: summary fallback used without full text.","reading_time_min":1,"cluster_id":null},"card":{"display_title":"Understanding and Mitigating Role Spoofing in LLMs","subtitle":"arxiv · 2026-10-29","summary":"Despite 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…","badges":["quality:medium"],"links":{"read":"/item/121538","original":"https://arxiv.org/abs/2610.40396","diagnose":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396"},"quality_warning":null},"export":{"title":"Understanding and Mitigating Role Spoofing in LLMs","url":"https://arxiv.org/abs/2610.40396","summary":"Despite 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. Malicious text in tool outputs (for instance, a malicious webpage accessed by an agent) can leverage role confusion to impersonate the user, an attack we call role spoofing}. In this work, we seek to understand and mitigate role spoofing. We study how models track \"who said what\" in a conversation, showing that they use cues from both content (e.g., semantics and writing style) and structure (e.g., control tokens and formatting). We show that LLMs are highly susceptible to role spoofing attacks that combine both fake structure and content. Additionally, in a toy setting, we show that adversarial training which teaches the model to ignore content-based injections does mitigate content-based attacks but leaves the model susceptible to structure-based attacks. This can explain why frontier models, with increased resistance to many injection attacks, can still be susceptible to role spoofing. Finally, we propose a new method for detecting role spoofing using linear probes trained to predict roles in a conversation, and show that it is effective across different settings.","source":"arxiv","date":"2026-10-29T16:33:08+00:00","content":"","confidence":0.5,"diagnostics_url":"/api/diagnose?url=https%3A//arxiv.org/abs/2610.40396","quality_bucket":"medium","failure_kind":"none","retryable":false,"quality_reason":"Medium confidence: summary fallback used without full text.","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"medium","confidence":0.5,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"Medium confidence: summary fallback used without full text.","operator_guidance":{"severity":"warning","recommended_action":"use_summary_with_caveat","next_step":"Use the available summary only with a visible quality caveat.","operator_label":"Use summary with caveat","can_retry":false,"can_use_summary":true,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"summary_only","label":"Summary only","has_full_text":false,"has_summary":true,"content_length":0,"summary_length":1405,"usable_text_length":1405,"source_field":"summary"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":0,"summary_length":1405}},"tags":[],"format_contract_version":"news_item_formats.v1"}}}