ChainCaps: Composition-Safe Tool-Using Agents via Monotonic Capability Attenuation

Xiaochong Jiang, Shiqi Yang, Ziwei Li, Lifei Liu, Haoran Yu, Yichen LiuAIWILD @ ICML 2026

TL;DR

ChainCaps introduces a runtime defense against "permission laundering," where AI agents combine individually safe tool calls to perform unsafe actions (like reading a private file and emailing its summary). By attaching sink-specific "capability budgets" to every piece of data and attenuating those budgets through intersection during tool composition, ChainCaps reduces attack success rates from up to 68% to less than 5% with negligible latency.

What Problem Does This Paper Address?

As LLM-based agents move from simple chatbots to active participants in workflows, they gain access to "tools"—file systems, web APIs, and databases. Current security models focus on per-tool authorization: "Is the agent allowed to read this file?" or "Is the agent allowed to send an email?"

The authors identify a critical gap they call permission laundering. An agent can satisfy every individual permission check but still violate a global security policy through composition. For example, an agent might read a confidential salary spreadsheet (authorized), summarize it (authorized), and then email that summary to an external address (authorized). No single tool misbehaved, but the end-to-end workflow leaked sensitive data. Because agents assemble these call graphs dynamically at runtime, static planners and server-side checks often fail to catch these emergent risks.

Methods

The core of ChainCaps is Monotonic Capability Attenuation. It operates on a simple but rigorous rule: data can lose authority as it moves through a workflow, but it can never gain it.

  1. Capability Budgets: Every value carries a budget—a set of "sinks" (authorized destinations or operations) it is allowed to reach.
  2. The Transfer Rule (Intersection): When a tool combines multiple inputs to produce an output, the output's budget is the intersection of all input budgets and the tool’s own "pass-through" policy. If you mix "internal-only" data with "public" data, the result becomes "internal-only."
  3. MCP Proxy: The system is implemented as a transparent proxy using the Model Context Protocol (MCP). It sits between the LLM agent and the tool servers, intercepting calls to track data lineage without requiring changes to the underlying models or tools.
  4. Context Tracking: To prevent data from "leaking" through the model's own prompt context, ChainCaps maintains a "context budget" that is intersected with any value the model later generates.
  5. Manifests: Tool developers provide metadata (manifests) describing what a tool does (Exec), what authority it passes through (Pass), and what it requires (Req).

Datasets

The authors evaluated ChainCaps using a stress-test suite of 82 tasks:

  • 56 Adversarial Tasks: Spanning 12 attack categories including cross-source mixing, code injection, and exfiltration. These were adapted from existing benchmarks like InjecAgent and ToolEmu.
  • 26 Benign Tasks: Covering 5 common workflow types (e.g., report synthesis, scoped web lookups) to ensure the defense doesn't break legitimate functionality.
  • Frontier Models: Evaluation was performed across five models: Claude Sonnet 4, Sonnet 4.6, Opus 4.6, GPT-5.1, and Qwen 3.5.

Key Insights and Ideas

  • Composition is the Vulnerability: The paper shifts the focus from "Is this tool safe?" to "Is this dataflow safe?" It argues that in agentic systems, authority is a property of the data, not just the actor.
  • Why Scalar Labels Fail: Traditional Information Flow Control (IFC) often uses scalar labels (e.g., "Secret" vs. "Public"). The authors prove that this is insufficient for complex tool use. You need a bit-vector of specific sinks because a piece of data might be safe to "write to local disk" but unsafe to "send to Slack," and these aren't always on a single linear scale of sensitivity.
  • The "Manifest" Bottleneck: The researchers found that the biggest hurdle isn't the math or the latency—it's the quality of the tool descriptions. "Expert-authored" manifests blocked 100% of attacks, while "naive" (auto-generated) manifests only blocked 27.3%.

Key Results

  • Massive Attack Reduction: Across five frontier models, ChainCaps reduced the Attack Success Rate (ASR) from a baseline of 25–68% down to 0–4.8%.
  • High Utility: The system preserved 96–100% of benign task completion, meaning it rarely interferes with the agent's intended "good" work.
  • Performance: The proxy adds only 0.13 ms of median latency per tool call, which is effectively invisible compared to the seconds required for LLM inference.
  • Superiority over Baselines: In replay experiments, ChainCaps significantly outperformed standard scalar-IFC and per-function isolation methods in blocking sophisticated multi-step attacks.

Limitations and Future Work

  • Explicit Flow Only: ChainCaps tracks data that moves through the proxy. It does not currently account for "covert channels" (like timing attacks) or "implicit flows" (where a model's internal state changes in a way that leaks info without direct data copying).
  • Proxy Visibility: If an agent uses a tool to write a script and then executes that script via a shell in a way that bypasses the proxy's tracking, the defense can be evaded.
  • Future Directions: The authors suggest focusing on automated manifest generation (using LLMs to document tools) and extending these "budget" semantics to protocols beyond MCP, such as direct browser-based agents.

Summary updated

BibTeX
@inproceedings{jiang2026chaincaps,
  author = {Xiaochong Jiang and Shiqi Yang and Ziwei Li and Lifei Liu and Haoran Yu and Yichen Liu},
  title = {{ChainCaps: Composition-Safe Tool-Using Agents via Monotonic Capability Attenuation}},
  booktitle = {AIWILD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=KtrAm71ER9},
}

Loading related content...

Figure