Chiosa
AI & Agents

CapLite blocks tested tool attacks without model-written rules

CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts · arXiv:2611.17115

3 min
Updated
CapLite is the only defense with no successful attack, and it starts the Pareto frontier of attack success and utility under attack. Each bubble averages the models a defense ran on, and faint dots…
CapLite is the only defense with no successful attack, and it starts the Pareto frontier of attack success and utility under attack. Each bubble averages the models a defense ran on, and faint dots show single models. Bubble area is proportional to tokens per episode, and the…Figure 1 · CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts · Zimo Xu et al. · CC BY 4.0

In plain words

CapLite is a defense for agents that use tools, such as reading emails and then taking actions. In the tested attacks that required a tool call, it had no successful attacks across 13,935 episodes; CaMeL had 20 in the same episodes.

Instead of asking the agent’s model to write security rules, CapLite builds rules from tool descriptions. It commits planned writes before reading results, then code checks that a write and its important details match the user’s request or confirmation.

The research

Misleading text in an email or file can redirect an agent with access to tools, so the rules governing writes matter as much as the model’s answer.

CapLite’s result makes it plausible to check whether a proposed action matches the user’s request without asking the model to author the rule that decides what it may do.

CapLite derives authorization rules from tool schemas and checks proposed writes against the user’s request, avoiding reliance on a model-written security artifact.

In AgentDojo, a test of tool-using agents exposed to malicious instructions in returned text, CapLite committed write calls before reading tool results. Code then checked that each write was authorized by tool schemas and that its important arguments matched the request or user confirmation.

Across the main attack’s tool-goal episodes, CapLite had no successful attacks, while CaMeL had 20. CapLite’s average task success under attack was close to CaMeL’s, supporting the claim that the design blocked tested write attacks while retaining comparable task completion in this test.

The evaluation covered simulated tasks in AgentDojo, and its write protections did not cover 20 injection pairs that asked only for a sentence in the final answer. CapLite’s mean task success under attack was 21 percentage points below the undefended agent’s.

What the evidence shows

  • Model-written rules admit attacks

    The authors read these results as evidence that model-written authorization artifacts can carry model mistakes into enforcement: Progent admitted attacks on 14 of the 15 tested models, and IPIGuard and DRIFT also admitted attacks on multiple models. This comparison motivates CapLite’s approach of deriving authorization rules in code.

  • Where the failure enters

    The comparison points to a weakness in defenses that enforce a security artifact written by the agent’s model. The authors interpret the attacks as model mistakes carried into enforcement: an artifact that decides what is allowed can admit an attack, while one that decides what runs can block legitimate work.

    This diagnosis motivates CapLite’s different approach, in which code derives the authorization rules instead of enforcing a model-written artifact.

  • The main attack comparison

    Across the shared tool-goal episodes, CapLite’s zero successful attacks compared with CaMeL’s 20 indicates fewer observed attacks for CapLite in the main AgentDojo test. The count pools results across 15 open-weight models, so it does not mean every model or task behaved alike.

  • Security and task completion

    The security result comes with a task-completion tradeoff. Utility under attack, the task success rate on attacked pairs averaged across models, was 29.0% for CapLite and 27.2% for CaMeL.

    Against the undefended agent, CapLite’s mean was lower by 21 percentage points. So the security count alone cannot describe how often agents completed tasks under attack.

  • Two safeguards under test

    These component tests link both safeguards to security in the eight-model evaluation.

    The Mediator comparison changes two things at once: removing it also removes the request-grounding filter on Binder candidates, while allowing writes after observations tests the effect of delaying write commitment.

  • Token cost in context

    The cost comparison suggests CapLite used fewer tokens while achieving a similar average task success rate to CaMeL on attacked pairs in this evaluation. Token use is averaged per episode across each model’s benign and attacked tasks, so it is not a measure of attack runs alone.

Deep

Next paperA verifier helps monitors catch deceptive agent actions