Small language model agents fail to write reliable security artifacts
SLM agents cannot be trusted to generate effective security artifacts for existing enforcement defenses, while CapLite prevents all tested attacks
AI/ML arXiv 12 Nov 2026 Defense Prototype evidence
Published as “CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts”
Why it matters
The work shows that small open-weight models cannot be trusted to generate their own security artifacts, and that a lightweight, schema-driven enforcement layer can provide strong prompt-injection protection with minimal computational overhead, enabling practical on-device agents.
Summary
CapLite prevents every prompt-injection attack on 15 open-weight small language models (0/13,935 episodes), while using only 17.1k tokens per episode (18% of CaMeL) and achieving utility under attack of 29.0%, comparable to CaMeL’s 27.2%. The study also shows that existing enforcement defenses that rely on the model to write security artifacts fail: policies, graphs and constraints written by the models admit attacks on most models, and CaMeL’s programs fail to run in up to 68% of episodes. Evidence is based on the AgentDojo benchmark; no other benchmark was used.
What they found 2
- CapLite’s utility under attack (29.0%) is comparable to CaMeL’s (27.2%) despite using far fewer tokens.
“CapLite reaches utility under attack comparable to CaMeL’s (29.0% vs. 27.2%) with fewer tokens than every other enforcement defense and than the undefended agent: 17.1k per episode, 18% of CaMeL’s”
- Existing defenses that rely on model-written artifacts admit attacks on the majority of models.
“the policies, graphs and constraints that the agent’s model writes admit attacks on 14 (Progent), 13 (IPIGuard) and 11 (DRIFT) of the models, and CaMeL’s programs fail to run in up to 68% of episodes.”
Caveats 6
- CapLite’s utility under attack is 21 points lower than the undefended agent (29.0% vs. 50.2%).
- On Gemma-4-E4B and Gemma-4-12B, CapLite’s utility under attack is significantly below CaMeL’s.
- Authority values not stated in the request require user confirmation, causing failures in 8-12% of episodes.
- One benchmark. All results come from AgentDojo’s four suites.
- CapLite’s utility under attack is 21 points below the undefended agent’s, and on Gemma-4-E4B and -12B it is significantly below CaMeL’s.
- Authority values that the user does not state require a confirmation.
What’s new here 4
- Derives authorization policy directly from tool schemas instead of model-written artifacts.
- Commits all write calls before any tool result is read, guaranteeing write integrity.
- Enforces that every authority argument must appear verbatim in the user request.
- Achieves zero attack success with far lower token cost than prior defenses.