TL;DR
This paper introduces Scope-Gap Injection (SGI), a clever indirect prompt injection technique that exploits a blind spot in multi-stage LLM safety pipelines. By hiding malicious instructions inside benign-looking file attachments that safety judges ignore but agents read at runtime, the authors successfully bypassed security filters in the IJCAI 2026 OpenClaw competition, achieving a significantly higher success rate than traditional "in-prompt" attacks.
What Problem Does This Paper Address?
As LLM agents move into enterprise workflows—managing documents, controlling smart homes, or handling financial data—they are increasingly protected by multi-stage safety "gates." These gates typically include static scans for malicious patterns and LLM-based "judges" that evaluate if a user's request is safe.
The authors identified a critical architectural flaw: a scope gap. In many systems, the safety judge only inspects the direct user instruction and the agent's system prompt (the "skill"). However, the agent itself has access to a much wider range of data at runtime, including file attachments. If the safety judge doesn't "see" what the agent "reads," an attacker can hide malicious payloads in plain sight.
Methods
The authors developed the Scope-Gap Injection (SGI) framework to exploit this mismatch through a two-pronged strategy:
- Scope Separation: All attack-specific details—such as target identifiers, bypass parameters, and unauthorized authorization procedures—are moved out of the task instruction and skill definition. Instead, they are placed exclusively in attachment files (e.g.,
worklist.txt). - Benign-Carrier Disguise: To pass static security scans (which do look at attachments), the payload is formatted as a mundane business document, such as a "document review worklist" or a "compliance archival checklist."
The attack package consists of:
- Benign Task Instruction: A simple, harmless request (e.g., "Please process today's worklist").
- Generic Skill Definition: A standard assistant prompt that tells the agent to read the attachment.
- Attack Payload: The hidden instructions inside the attachment, written in professional prose to avoid triggering alarms.
The authors adapted this method to bypass three specific permission mechanisms in the OpenClaw environment: requesting dynamic JWT tokens, claiming pre-authorization by a specific user, or providing a plausible-sounding "business reason" for a sensitive action.
Datasets
The study was conducted using the IJCAI 2026 OpenClaw Agent Security Attack Competition environment. This benchmark includes 19 attack targets across three scenarios:
- IoT Smart Home: (e.g., controlling devices).
- E-commerce: (e.g., managing customer data).
- Enterprise Office Automation (OA): (e.g., accessing financial records or layoff lists).
The agent backend used the kimi-k2.5 model.
Key Insights and Ideas
- Evaluator Blindness is the Primary Weakness: The most significant finding is that the LLM judge (S2) was effectively blind to attachment contents. By moving the attack from the prompt to an attachment, the authors turned a "high-risk" request into a "benign" one in the eyes of the evaluator.
- Context Matters for Evasion: The "Benign-Carrier" strategy isn't just about hiding text; it's about framing. Using "business prose" helps the payload blend into the expected operational data of an enterprise agent, making it harder for both static scanners and human-like LLM judges to detect malice.
- Target-Name Sensitivity: The authors observed that the safety judge might be using metadata, like directory names, to make decisions. For example, any attack involving a directory named
oa_salary_queryfailed S2, regardless of how benign the content was, suggesting the judge was biased by the target's name itself.
Key Results
The SGI method proved remarkably effective compared to placing attack instructions directly in the skill definition ("In-Skill").
- Higher Acceptance: As shown in the comparison below, moving the payload to an attachment increased the aggregate S2 safety judge acceptance rate from 23% to 78%.
- Competition Success: The authors' highest-scoring submission achieved a score of 0.385, successfully bypassing all three safety stages for 5 out of 19 targets.
- Iterative Improvement: The progression of their scores (Table 2) highlights how the shift to SGI was the "key change" that unlocked higher performance.
Limitations and Future Work
The authors acknowledge several limitations:
- Scenario-Level Barriers: SGI failed consistently in e-commerce scenarios, likely because the "VIP customer" context made the judge inherently more suspicious of any data operations.
- Judge Variability: The S2 judge showed inconsistent behavior (flipping between safe and unsafe) even on identical inputs, suggesting sampling-based inference or hidden backend states.
- Defense Complexity: Simply copying all attachments into the safety judge prompt is impractical due to token limits, latency, and costs.
Future Work: The authors suggest developing "risk-oriented" defenses that hash and track all agent-readable artifacts, ensuring that any channel the agent can access is faithfully represented in the safety evaluation without overwhelming the system.
Summary updated