- Rating
- 3
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies tool-chain hijacking attacks against LLM agents. The key observation is that existing tool-hijacking attacks and defenses mostly focus on individual tool invocations, whereas real-world agents often complete user requests through multi-step tool-use workflows. The paper proposes ChainForge, a two-stage framework that first synthesizes a coherent metadata-level malicious tool chain using execution logs and rollout-based optimization, and then instantiates the chain into executable tool code with hidden malicious side effects while preserving user-visible utility. The authors also introduce ChainBench, a benchmark of 97 user-attack task pairs across Banking, Travel, Slack, and Workspace, and evaluate the attack across four LLM agents, multiple defenses, and code safety scanners.
Strengths and weaknesses
Strengths
-
The paper identifies an important and timely problem. As LLM agents increasingly rely on external tools, moving from single-tool attacks to chain-level attacks is a natural and security-relevant direction. The paper’s framing of “tool-chain hijacking” is interesting and highlights a potential blind spot in current agent security research.
-
The proposed attack pipeline is relatively complete. ChainForge does not only optimize tool metadata, but also attempts to generate executable tool implementations that preserve benign task utility while embedding hidden side effects. This makes the attack model more realistic than purely metadata-level simulations.
-
The experimental scope is reasonably broad. The paper evaluates four application domains, four LLM agents, several runtime defenses, and multiple code safety scanners. The ablation studies on chain length selection and iterative optimization also help support the claim that the full method is stronger than simpler variants.
Weaknesses
-
My main concern is that the threat model relies on a strong and insufficiently justified assumption: the attacker has access to execution logs or reference traces that reveal how agents decompose tasks into tool-call sequences. In the experiments, these traces are obtained by running a benign agent in the benchmark environment. However, in realistic third-party tool ecosystems, it is unclear how an external attacker would obtain sufficiently detailed execution logs, including tool-call sequences, parameters, and context. Since ChainForge’s optimization appears to depend heavily on these traces, this assumption substantially limits the realism and external validity of the attack.
-
The defense evaluation is not fully convincing. Many of the evaluated defenses were designed for prompt injection or single-step tool-use threats, not for chain-level workflow integrity. Showing that these defenses fail is useful, but somewhat expected. The paper would be stronger if it included more direct chain-aware defense baselines, such as runtime monitoring.
-
The paper overstates the novelty of the chain-level attack framing. The idea that multi-step tool use can compose into unsafe or adversarial behavior is not entirely new; closely related works [1,2] have already studied chain-based or multi-turn safety risks in tool-using agents. These papers should be discussed and compared. The authors should explain how ChainForge differs from and improves over these prior works, both conceptually and empirically. Without such positioning and comparison, the claimed novelty of “tool-chain hijacking” appears overstated.
References
[1] Li et al. "STAC: When Innocent Tools Form Dangerous Chains to Jailbreak LLM Agents."
[2] Li et al. "Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agents."
Questions
-
How realistic is the assumption that an attacker can access execution logs with enough detail to reconstruct reference tool-call traces? What concrete real-world platforms expose such logs to third-party tool developers?
-
How does ChainForge perform when execution logs are unavailable, incomplete, noisy, or generated by a different agent than the target victim agent?
-
Would the attack remain effective if tools were subject to stronger defenses like runtime monitoring?
Limitations
See weaknesses
Paper formatting concerns
None
Final justification
Thank you to the authors for the detailed rebuttal and additional experiments. The no-trace ablation, runtime-monitoring evaluation, and clarification of the distinction from prior work address most of my main concerns. In particular, the results show that ChainForge does not fundamentally depend on privileged execution logs. I therefore raise my score to 3.
We thank the reviewer. We map our response to the reviewer's structure: W1 (threat model) answers Q1 and Q2, W2 (defenses) answers Q3, and W3 addresses novelty. All new results are on GPT-5.4. We hope the clarified threat model, the weaker-knowledge ablation, the runtime-monitoring defense, and the novelty distinction address the concerns behind the score.
W1 / Q1. Threat Model and Execution-Trace Access
Direct answer first. The traces used in our experiments are produced by running a benign agent in a controlled harness; no production-user log is ever read. More importantly, the premise that ChainForge depends heavily on them does not hold: with no reference trace and no target probing at all (L3 below), ChainForge still reaches 83.78% TSR. Execution logs are an optional upper-bound signal, not a necessary input, so the concern about how an external attacker would obtain detailed logs does not gate the attack.
Scope: a task-aware marketplace attacker. We claim success only for an attacker targeting a specific documented workflow, not a universal chain for arbitrary unknown tasks. The remaining question is therefore what an attacker uses instead of a trace, which is what the marketplace survey establishes (Q1: what platforms expose). We surveyed three real open marketplaces, all of which let ordinary developers publish MCP servers. Glama (glama.ai) builds and runs each listed server and publicly indexes every tool's name, description, full JSON
inputSchema, and annotations viatools/list; Smithery (smithery.ai) accepts a public endpoint or MCPB bundle, auto-scans servers, and returns tool definitions (name, description,inputSchema) through registry/connection APIs to ordinary registered users; MCP.so (mcp.so) lists tool and parameter information (name/type/required/description) plus source and install instructions, from which the server is reconstructed and its schema recovered viatools/list. This establishes the information floor (public metadata + a task of interest + reconstructible environments + self-probing), with no victim log, which is all ChainForge fundamentally requires. The survey shows tools are publishable and their schemas obtainable and self-testable; the victim's specific task and benign tool pool are the attacker's chosen target, not information the survey shows is leaked. These are large open ecosystems that ordinary developers publish to:These marketplaces also report substantial usage. Glama reports over one million tool calls per month from more than 50,000 developers, while Smithery reports tens of thousands of calls per day; both figures are self-reported.
On our wording. The phrases "mines agent execution logs" and "probing traces from the target agent" describe a real setting (internal red-teaming, insider access, or compromised observability) rather than a fictional one, but we agree they read as a default requirement. We will rewrite them to present the trace as the upper end of the spectrum above, with the marketplace floor as the operating assumption.
Q2. Performance Without Privileged Logs
We progressively remove target-specific information (37 Banking+Slack tasks, GPT-5.4; mean ± sample std over five evaluation runs, one synthesis seed; two missing generated-code cases remain in the denominator as failures). No level uses real production-user logs.
Directly answering Q2: unavailable traces are the L3 case (TSR 83.78%), and a different agent is the L2 case (mismatched framework/prompt + surrogate model, TSR 98.38%). L2 also answers the natural follow-up, whether an attacker's self-reconstructed environment must closely replicate the victim's: it does not, since a mismatched framework/prompt and a different surrogate agent still yield 98.38% TSR. We do not claim L2 is a controlled trace-corruption experiment, but the stronger no-trace case (L3) subsumes that concern. Cross-model transfer is complementary: several off-diagonal pairs exceed 70% TSR, though transfer is heterogeneous (tab 4 in the paper).
W2 / Q3. Runtime Monitoring
Directly answering Q3 ("would the attack remain effective under runtime monitoring"): the FORGE-style Datalog monitor is exactly a runtime monitor. Over 97 tasks, five rounds, GPT-5.4 (execution errors in denominator):
Corrected conclusion: the blind spot is the observation boundary, not the presence of any defense. A hidden side effect is reduced only for the specific actions or flows a defense represents at its enforcement boundary, and never beyond it. FORGE is precisely a runtime monitor, and it reduces ASR only for the actions it instruments (31 email + 6 web-write denials); it cannot govern uninstrumented actions, so full action coverage plus a suitable policy would block the covered side effect by construction, while any uncovered action escapes. ToolSafe's reduction is real but bundled with a utility drop (78.76→73.40) — the observability it adds is paid for in task completion. Our thesis is therefore not "undefendable under runtime monitoring" but precise and testable: a hidden side effect survives exactly when it is not represented at the monitor's observation boundary, and closing that boundary carries an observability–utility cost. That boundary gap is the chain-level blind spot we characterize.
W3. Novelty Relative to STAC and Unsafer in Many Turns
STAC and Unsafer in Many Turns study harmful-intent decomposition: a malicious user splits a harmful goal across turns using legitimate tools. ChainForge studies third-party tool supply-chain integrity: a benign user issues one legal query and the attacker never converses with the agent.
Because the threat models differ (malicious user vs. malicious tool supplier), the two do not share an evaluation protocol, so a direct empirical comparison is not well defined; we distinguish them conceptually and will cite both. The technical contribution is not that multi-step actions compose, but how several malicious tools repeatedly win selection against benign competitors: (1) grounding to a realizable replacement workflow, (2) joint semantic momentum countering cascading failure, (3) contrastive alignment against base tools seen in failed rollouts, and (4) utility-preserving executable instantiation (each ablated in Table 6).
Ethics and Responsible Release
All experiments run in sandboxed environments with synthetic data and simulated endpoints; no real marketplace, service, or user was attacked. We contribute the ChainBench benchmark and three chain-aware defense reproductions to support defense research. We will share our findings with the surveyed marketplaces and model providers, and will release the benchmark and defensive artifacts while withholding or gating turnkey executable payloads and evasion/restoration prompts.