Trace-based benchmark reveals policy compliance misses utility loss in tool-using LLM agents
Terminal policy labels are insufficient to assess post-injection containment; trajectory and utility metrics are needed
Security & privacy arXiv 27 Jul 2026 Benchmark Simulation evidence
Published as “ContainmentBench: Trace-Based Evaluation of Post-Injection Containment in Tool-Using LLM Agents”
Why it matters
Developers of tool-using LLM agents can use ContainmentBench to identify and balance security versus authorized utility trade-offs that are invisible to traditional endpoint-only attack success metrics.
Summary
The paper finds that an intent-ledger runtime policy restores most of the authorized work lost under a taint-only firewall (authorized completion 0.857 vs 0.164) while still preserving zero committed-harm endpoints, but it still yields lower utility than a strong tool-boundary baseline (0.857 vs 0.923). Endpoint-only scoring hides these utility differences, as both defenses achieve the same zero-harm endpoint yet diverge sharply in logged trajectories and authorized actions. The evidence comes from a frozen 17,640-rollout synthetic benchmark using Qwen2.5-7B-Instruct, comparing multiple defenses. The study shows that trace-based containment measurement can reveal security-utility trade-offs that endpoint metrics miss.
What they found 2
- Endpoint-only evaluation hides that taint-only enforcement blocks most authorized workflows over external content.
“Endpoint-only evaluation would classify taint-only v1 as secure while missing that it disables most authorized workflows over external content.”
- Intent-ledger containment repairs the utility loss of taint-only but still yields lower authorized completion than a strong tool-boundary policy.
“Intent-ledger v2 and tool-boundary policy have no observed committed policy violations, wrong-recipient events, or secret leakage in 2,520 rollouts each.”
Caveats 4
- The tool-boundary policy achieves higher authorized tainted-action completion (0.923) than the intent-ledger policy (0.857) despite both having zero committed-harm endpoints.
- The benchmark performs no real email, browser, cloud, network-service, or destructive filesystem action.
- All sinks are benchmark-local or synthetic local domains, and all secrets are synthetic canaries.
- The full-scale evaluation assumes a correct structured intent ledger derived from the trusted scenario specification before the rollout begins.
What’s new here 4
- Introduces a trace-based, stage-structured benchmark that records messages, tool proposals, memory writes, taint labels, and authorizations.
- Defines and measures authorized-tainted-action completion as a separate utility metric.
- Provides a unified protocol to compare runtime policies (taint-only, intent-ledger, tool-boundary) on post-exposure containment.
- Shows that equal endpoint outcomes can conceal large differences in propagation and utility.