# CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts

DevFeed: [CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts](<https://devfeed.tech/articles/caplite-prompt-injection-defense-for-small-language-model-agents-without-model-written-security-artifacts-132315.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.17115>)

Author: Zimo Xu, Wenzhuo Liu, Hideki Nakayama

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [prompt injection](<https://devfeed.tech/topics/prompt-injection.md>), [LLM security](<https://devfeed.tech/topics/llm-security.md>), [ai security](<https://devfeed.tech/topics/ai-security.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [attack](<https://devfeed.tech/tags/attack.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [defense](<https://devfeed.tech/tags/defense.md>), [integrity](<https://devfeed.tech/tags/integrity.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [open-weight-models](<https://devfeed.tech/tags/open-weight-models.md>), [policy](<https://devfeed.tech/tags/policy.md>), [prompt-injection](<https://devfeed.tech/tags/prompt-injection.md>), [prompt-injection-defense](<https://devfeed.tech/tags/prompt-injection-defense.md>), [schemas](<https://devfeed.tech/tags/schemas.md>), [small-language-model](<https://devfeed.tech/tags/small-language-model.md>)

## AI overview

CapLite aims to protect small language model agents from prompt injection without relying on model-written security artifacts. It derives policy from tool schemas, commits write calls before reading tool results, and permits a write only when the user's request states every argument that determines its target or effect. The authors say this prevents injected text from adding writes or directing them to unstated recipients, amounts, objects, or destinations. In 13,935 attacked AgentDojo episodes, no attack succeeded. Under attack, CapLite's utility was 29.0%, compared with CaMeL's 27.2%, using 17.1k tokens per episode (18% of CaMeL's); it had the highest utility per token among the enforcement defenses evaluated. The abstract reports that model-written artifacts in Progent, IPIGuard, and DRIFT admitted attacks across many tested models, while CaMeL programs failed to run in up to 68% of episodes.

## Source excerpt

arXiv:2611.17115v1 Announce Type: new Abstract: Enforcement defenses against prompt injection, such as CaMeL, Progent, IPIGuard and DRIFT, ask the agent's own model to write a security artifact (a program, a privilege policy, a dependency graph or a constraint list) that code then enforces. We ask whether small language model (SLM) agents can be trusted to write these artifacts. Across 15 open-weight models, 13 of them between 1.7B and 12B parameters, they cannot: 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. We present CapLite, which derives its policy from the tool schemas, commits the write calls before any tool result is read, and admits a write only if every argument that decides whom or what it affects is stated in the user's request. This guarantees write integrity: injected text cannot add a write, and no write reaches a recipient, amount, object or destination that the user did not state. No attack succeeds in 13,935 attacked AgentDojo episodes. 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, and the highest utility per token of all enforcement defenses.