TL;DR
ECLIPSE is a novel prompt injection framework that successfully hijacks long-horizon LLM agents by splitting the attack across two channels: a stealthy, natural-language user prompt and poisoned tool-side metadata. By combining offline sandbox verification with dynamic runtime corrections, it bypasses state-of-the-art defenses and reliably executes complex, multi-step malicious workflows.
What Problem Does This Paper Address?
Large Language Model (LLM) agents have evolved from simple text generators into autonomous planners capable of executing complex, multi-step tasks by interacting with external tools (Figure 1). However, this expanded capability introduces severe security vulnerabilities, particularly to prompt injection attacks.
Existing prompt injection attacks struggle against these "long-horizon" agents due to a fundamental trade-off between stealth and fidelity:
- The Stealth Challenge: Concentrating a malicious objective into a single user prompt makes it highly controllable but easily flagged by input-side safety filters.
- The Fidelity Challenge: Distributing the malicious intent across multiple execution stages or external data sources makes the attack stealthier, but highly unreliable. As the execution chain grows, any minor deviation or intermediate error can derail the entire attack trajectory.
The authors introduce ECLIPSE to solve both challenges simultaneously, achieving high stealth without sacrificing execution fidelity over long tool chains.
Methods
ECLIPSE uses a Dual Injection Paradigm that splits the attack into a user-side prompt (direct injection) and a tool-side specification (indirect injection). The framework operates in two main phases:
1. Stealthy Attack Trajectory Synthesis (SATS)
Instead of guessing a path, ECLIPSE instantiates a "shadow agent" inside an isolated, simulated sandbox environment. It iteratively generates, tests, and refines candidate tool chains to achieve the malicious goal. Once a valid chain is verified, ECLIPSE translates it into a plausible, one-shot user prompt. Crucially, this prompt uses natural narrative language, realistic personas, and practical constraints (like deadlines or formatting rules) while completely omitting explicit tool names, parameters, or malicious jargon.
2. Tool-Chain Steering (TCS)
To ensure the target agent actually follows the planned trajectory in the real environment, ECLIPSE employs two steering mechanisms (Figure 3):
- Static Workflow Encoding (SWE): It rewrites the descriptions of the tools in the malicious chain to embed subtle state-transition cues (Prerequisites, Invariants, and Postconditions). To the LLM, these look like standard compliance or workflow documentation, but they logically chain the tools together.
- Dynamic Trajectory Correction (DTC): If the agent drifts from the planned path at runtime, DTC intercepts the tool output and appends a "residual correction signal." This signal mimics an ordinary system error or workflow requirement, subtly nudging the agent back onto the malicious track.
Datasets
To evaluate long-horizon agent security, the authors introduced LASE-Bench (Long-horizon Agent Safety Evaluation Benchmark).
Unlike existing benchmarks that focus on short, 1-to-3 step interactions, LASE-Bench consists of 120 malicious tasks and 198 unique tools, where 96.7% of the tasks require at least five sequential tool calls (with a median of 6). The benchmark covers seven distinct security domains, ranging from supply-chain compromise to data exfiltration (Table 1).
The authors also compared their dataset's tool-call distribution against existing benchmarks like ASSEBench and SHADE-Arena to highlight the significantly longer execution horizons required by LASE-Bench (Figure 2).
Key Insights and Ideas
- Exploiting the "Helpful Assistant" Nature: ECLIPSE succeeds because it frames malicious steps using standard administrative and compliance vocabulary (e.g., "security baseline," "transition invariant"). LLMs are trained to be highly sensitive to workflow structures, making them eager to satisfy these artificial prerequisites.
- Context Splitting Defeats Myopic Filters: Traditional guardrails inspect inputs (prompts) or boundaries (tool arguments) in isolation. By hiding the intent in the user prompt and the mechanics in the tool descriptions, ECLIPSE ensures that no single detector has enough context to flag the attack.
- The Necessity of Feedback Loops: Real-world deployment environments are unpredictable. The inclusion of the dynamic correction loop (DTC) highlights that static prompt engineering is insufficient for long-horizon attacks; adversaries must actively guide the agent's state machine.
Key Results
The authors evaluated ECLIPSE across seven different LLM backends (including DeepSeek, GPT-4o, and Claude 4.8 Opus) against five baseline attacks and five potential defenses.
- High Attack Success: In an undefended setting, ECLIPSE achieved a peak Attack Success Rate (ASR) of 96.7% on DeepSeek, 95.0% on GPT-4o, and 93.3% on Claude.
- Bypassing Safety Filters: When tested against a standard LLM-based external safety filter, ECLIPSE maintained a 69.2% ASR on DeepSeek, outperforming the strongest baseline (ObliInjection) by a massive 27.5% margin.
- Defense Resilience: Evaluated against advanced defenses like DataSentinel (input filtering) and Tool-Guard (tool isolation), ECLIPSE still maintained high success rates because its early tool calls look completely benign out of context. Only trajectory-level monitors (like AgentDoG) and preference-aligned models (like SecAlign) showed a significant capacity to mitigate the attack.
Limitations and Future Work
- Tool Control Assumption: The attack assumes the adversary can manipulate tool metadata, either by publishing a malicious tool to a public registry or compromising an existing tool server (a "Rug Pull" attack). If tool descriptions are strictly immutable and verified, the static steering mechanism fails.
- Defensive Trade-offs: While model-level alignment defenses (like SecAlign) successfully reduced ECLIPSE's success rate to 0.8%, the authors note this may also over-aggressively suppress legitimate, complex long-horizon tasks.
- Future Direction: The paper underscores an urgent need for holistic defenses that can jointly reason over user prompts, tool metadata, and historical execution traces simultaneously, rather than analyzing them as isolated components.
Summary updated