SecureClaw: Clawing Back Control of LLM Agents

Yuhan Ma, Stefan Schmid
6/8/2026
4 citations
cs.CRcs.AI

Official code: ponyyuhan/SecureClaw (6 stars, Python, MIT, last commit 2026-09-27).

Abstract

Tool-using large language model (LLM) agents face two distinct security failures: unauthorized external actions and exposure of sensitive plaintext inside the runtime before any final output check can intervene. Existing defenses usually protect one boundary, either the planner/runtime or the point where external actions are executed, and therefore do not by themselves secure both surfaces.

Show full abstract

We present SecureClaw, a dual-boundary architecture that enforces authorization in a trusted executor and keeps raw protected data outside the LLM runtime. Sensitive reads pass through a trusted gateway that replaces raw values with reference IDs. In the evaluated deployment, the gateway also provides short planning summaries that deliberately release selected information, a process called declassification. Writes that change external state follow a PREVIEW$\rightarrow$COMMIT protocol in which only a trusted executor may execute the exact request authorized by policy. The runtime can still plan over summaries and reference IDs, but cannot directly resolve the IDs into secrets or perform side effects. Across the AgentDojo, AgentLeak, and Agent Security Bench (ASB) benchmarks, SecureClaw is the only defense we evaluate in a common harness that simultaneously retains usable task utility and achieves 0% attack success rate (ASR) on ASB, 0.64% ASR on AgentDojo, and 3.23% overall leak on AgentLeak's attacked parity lane, which measures final-output and internal-relay leakage. Code is available at https://github.com/ponyyuhan/SecureClaw.

View on arXivView PDF

Code Implementations(1)

MIT

SecureClaw: Clawing Back Control of LLM Agents — NeurIPS 2026. Runtime, method adapters, and evaluation code.

61Python, RustSep 25, 20262 months agoMIT
agent-securityllm-agentsmcpneurips-2026privacy+1 more

Similar Papers

Cite this paper

@article{ma2026secureclaw,
  title  = {SecureClaw: Clawing Back Control of LLM Agents},
  author = {Yuhan Ma and Stefan Schmid},
  year   = {2026},
  eprint = {2606.09549},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09549v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.09549.svg)](https://codeofpaper.com/paper/2606.09549)

Discussion