Manuscript Offprint

arXiv:2610.01349

PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents

Fengpeng Li, Qizhou Wang, Yuke Hu, Kemou Li, Jun Liu, Haiwei Wu, Jiantao Zhou, Di Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Tool-using large language model (LLM) agents turn generated text into real side effects, so poisoned tool metadata, retrieved pages, memory, and reusable skills can steer the next call. Vetting an artifact before admission does not settle this. A safe variant and a leaking variant can produce the same admission evidence, and a sound gate then cannot relax that site for either. We make that condition precise, which leaves the last boundary a deployment can still act on. We present Provenance-Aware Capability Enforcement (PACE), which mediates every tool call immediately before it executes. Path confinement proposes an executable cut of represented influence paths, while capability and effect verification checks schema-defined effects against authority compiled from the authenticated request. We distinguish the certified execution contract from the evaluated configuration, which can restore an authorized call after a proposed block or apply a declared repair. Confinement requires the final action to preserve the certified cut. On eight executable agent-security benchmarks with three target-model families, the evaluated configuration gives strictly lowest attack success in 62 of 79 eligible attack columns and ties in 14; full-benchmark native utility loses at most three points relative to the undefended agent. A complete ablation over 1167 paired cases attributes most security gains to effect verification and refusal control to boundary adaptation. A reduced-scale adaptive search succeeds on 0/30 out-of-authority targets against the defense. Source code is in the supplemental material.

1 INTRODUCTION

Tool-using LLM agents plan, call tools, and act inside one loop (Yao et al., 2023; Schick et al., 2023; Qin et al., 2024; Patil et al., 2024). The same loop reads retrieved pages, tool returns, files, and third-party skill descriptions, so instructions and data share the context that picks the next action (Zverev et al., 2025). Prompt injection exploits this across tool suites, web tasks, and multi-step workflows (Perez & Ribeiro, 2022; Greshake et al., 2023; Zhan et al., 2024; Debenedetti et al., 2024; Zhang et al., 2025; Evtimov et al., 2025; Liu et al., 2024; Yi et al., 2025; Ruan et al., 2024), with payloads arriving through MCP schemas (Wang et al., 2026c; Yang et al., 2025; Hou et al., 2026), reusable skills (Duan et al., 2026), or poisoned memory and knowledge bases (Chen et al., 2024; Zou et al., 2025; Wang et al., 2026b). Once the agent can send mail, write files, or spend money, that text can cause a real effect. We target deployments where it also reaches the planning context, as MCP tool descriptions and marketplace skills do today. Section B surveys related work.

Defenses fall into four families: flow control anchored in a trusted plan or a reconstructed trace (Debenedetti et al., 2025; Costa et al., 2025; Zhong et al., 2025; Wang et al., 2025), declarative privilege and task alignment (Shi et al., 2025; Jia et al., 2024), detection and re-execution (Zhu et al., 2025; Liu et al., 2025; Chennabasappa et al., 2025; Rebedea et al., 2023; Inan et al., 2023), and

∗^{*}Corresponding author: Di Wang (di.wang@kaust.edu.sa) instruction/data separation (Wallace et al., 2024; Chen et al., 2025a;b; Hines et al., 2024). Their trusted inputs differ: plans, request-derived policies, instrumented provenance, or learned distinctions between instructions and data (Section B). Trust inversion arises when the authority for admission is itself attacker-controlled. An admission gate may review a skill by reading its specification and the agent later follows that same specification, so the object under review and the authority used to review it are one attacker-written string. Published attacks on tool metadata exhibit this confused deputy (Wang et al., 2026c); adversarial prompting of reusable skills exposes a related surface (Duan et al., 2026). Dynamic labels track instrumented flows but do not certify behavior over attacker-controlled contexts (Enck et al., 2010; Kemerlis et al., 2012). Underneath sits a mismatch of evidence: confidentiality compares two runs and needs the semantics of both (Clarkson & Schneider, 2010; Terauchi & Aiken, 2005; Barthe et al., 2004), while a reviewer holds evidence about one (Necula, 1997; Sekar et al., 2003). Section 3 makes this precise over the behavior family, the trajectory distributions an artifact induces across attacker-supplied contexts, and gives the condition under which no admission-time evidence licenses relaxing a site.

We therefore decide at the last tool boundary before an external effect. Four things meet there: the concrete proposal, the authenticated request, the observed provenance, and a hook that can still change the outcome. PACE pairs path confinement with capability and effect verification. The first proposes actions that sever represented influence paths; the second checks request authority over concrete effects. Their composition depends on the final action: restoring a blocked call can discard separation, and rewriting an authorized call can change its effects. The certified contract preserves the cut and rechecks the final call; the evaluated configuration permits restoration and declared repairs. Recent provenance and execution monitors already check argument provenance and fine-grained authority (Fan et al., 2026; Wang et al., 2026a; Santos-Grueiro, 2026). Our analysis identifies the graph-separation condition an intervention must retain alongside effect authority (Section 4.4), within the flows and effects the schemas represent.

We make the following contributions.

• The security-relevant object is an artifact’s behavior family over attacker-controlled contexts. We show when admission-time evidence cannot license relaxing an egress site.

• We propose PACE, pairing path confinement with capability and effect verification at the last enforceable tool boundary, and distinguish its certified contract from the restoration and repair behavior of the evaluated configuration.

• We prove represented-path separation, authorized-effect soundness, and a conditional grounded-execution theorem, and specify which final interventions retain its path-separation premise. These guarantees concern represented chains.

• On eight executable benchmarks with three target-model families, the evaluated configuration achieves strictly lowest ASR in 62 of 79 eligible columns and ties in 14, with a paired component study and a reduced-scale adaptive evaluation.

References (65)