Manuscript Offprint

arXiv:2610.37055

Blindfold: Keeping the Audit Coin Secret from LLM Agents

Wei Zhu, Meiyun Zuo, Huiping Sun

Wei Zhu 1,3^{1,3}, Meiyun Zuo 1,3^{1,3}, Huiping Sun 2^{2}

1^{1}School of Information, Renmin University of China, Beijing, 100872, China

2^{2}School of software and microelectronics, Peking University, Beijing, 100871, China

3^{3}Big Data and Responsible Artificial Intelligence for National Governance, Renmin University of China, Beijing, 100872, China

zhuwei@ruc.edu.cn, zuomy@ruc.edu.cn, sunhp@ss.pku.edu.cn

Abstract—Audit-based certification bounds the violation rate of an LLM agent by auditing a random fraction ε\varepsilon of actions and reweighting the audited labels; its validity is meant to rest only on the defender's audit coin. We show that it also rests on a confidentiality property: the coin must not interfere with the agent's view before the action commits, at a time the agent chooses. We call this pre-commit noninterference (PNI) and measure its violation by DAD_A, the total-variation distance between the agent's views under the two coin values. PNI is necessary and sufficient for an unbiased certificate against adaptive agents, the worst-case bias is (1−ε)DA(1 - \varepsilon)D_A, and no procedure that sees only audited labels can pay less. Leakage composes across steps, a resource shared across episodes opens a channel of computable size, and raising the audit rate cannot restore validity. On a monitor we built, a silent audit changes no output but adds latency that tool timestamps expose, and the agent can enlarge it. A real LLM agent follows an injection that names a visible audit notice (generic, tool, and timing clauses have no effect); over that channel the plain certificate fails on measured labels and, by a post-hoc analysis, in a live run on a pre-registered schedule, while a silent audit restores it. A fresh coin per audited call closes the timing channel; padding only narrows it.

Index Terms—noninterference, LLM agents, anytime-valid certification, auditing, side channels

I. INTRODUCTION

LLM agents now take consequential actions on a user's behalf: they send mail, write files, and call tools. A growing line of work frames each authorization as a gate that grants, asks, or denies [1], [2], [3]. A deployer would like a distribution-free guarantee on the rate at which such a gate lets violations through. Conformal risk control with a fixed calibration set [4], [5] assumes that calibration and deployment are exchangeable. The closed loop and prompt injection break that assumption [6]. Audit-based certification repairs it. The defender audits a random fraction ε\varepsilon of actions and takes labels only on audited ones. It then forms an inverse-propensity-weighted (IPW), anytime-valid bound on the violation rate [7], [8]. The bound's validity rests on the defender's own coin rather than on exchangeability. Post-deployment auditing is advocated, though this design is not yet the common form of agent risk control.

The failure: The audit coin is a secret, and like any secret it can leak (Fig. 1a). Let V∈{0,1}V \in \{0,1\} indicate an attempted violation in an episode and B∈{0,1}B \in \{0,1\} the audit coin. The per-episode IPW estimate is g^=VB/ε\widehat{g} = VB/\varepsilon. When B⊥VB \perp V, E[g^]=E[V]\mathbb{E}[\widehat{g}] = \mathbb{E}[V], so the certifier is unbiased by design, for any adversary. But the agent chooses V after observing artifacts that may carry information about B. If it can tell, even noisily, that an episode will be audited, it can defer the attempt. The audited episodes are then clean, and the certificate undercounts. In the running example of §II, a constructed agent that is handed the audit signal attempts the violation in 79.2% of episodes while the certificate's estimate is 0.0%.

Which audits are at risk: A purely post-hoc audit takes its label after the action commits. It cannot leak its coin before that commit, so it is safe by construction when each coin governs one commit (with several gated calls, see Proposition 4(iv)). It is the right default whenever a post-commit label measures the same quantity. Three settings force the audit before commit. (i) Trajectory-unit audits: a replay is a different episode, so a faithful shadow must run alongside the live trajectory. (ii) Non-persisted or commit-time label inputs: retention policy forbids persisting what the scorer reads, or the label is defined against state the effect mutates. (iii) Ask-type gates: the audit decision must exist before the gate asks the user and must not change whether or how it asks. In (i) and (ii) the branch need not block. A silent branch that returns a byte-identical response is pre-commit and non-blocking, and §VI measures one. E3 in §VII is the laboratory instance of (iii).

The gap: Hiding a monitor’s own state is an old design. Ringers [9], proofs of retrievability [10], and transparent malware analysis [11] hide what will be checked, so that cheating is caught. Random auditing of AI systems asks the sample to estimate a rate, in AI control [12], randomized oversight [13], and active anytime-valid risk control [8]. That is the step at which secrecy turns from an enforcement resource into an identification condition. This line of work assumes, usually implicitly, that the audited system cannot observe the draw. None states the assumption as a security property, measures how far a real monitor departs from it, or prices the departure. Our question is not whether the agent still misbehaves when watched. It is whether the number the certifier reports still means anything, with no assumption on the agent’s motives.

Thesis and contributions: The validity of audit-based certification is an information-flow property. The audit coin is the high input, the agent's pre-commit view is the low

(a) Where the coin leaks

Figure

The agent attempts only when it looks unaudited; the certifier sees labels only when B=1 and undercounts by (1−ε)(μ0−μ1)(1-\varepsilon)(\mu_0-\mu_1).

(b) What leakage costs

Figure

PNI ⇔ unbiased (Thm. 4); coverage fails beyond n∗n^* (§IV), drawn at E5's pˉ=0.21\bar{p}=0.21 and α=0.05\alpha=0.05.

(c) Where the barrier goes

Figure

Silent branch, decoys, or a fresh coin per call; padding alone yields no design-time δ\delta on our stack ( §\SVI).

Fig. 1. (a) The agent reads a secret early and commits late, at the irreversible sink τ\tau. Its pre-commit view W=(O,ξ)W = (O, \xi) holds its observations OO (tool outputs and their timestamps, gate responses, notices, load statistics) and its own randomness ξ\xi. If the audit coin BB reaches WW, the agent attempts only when it appears unaudited, and the certifier, which sees only audited labels, undercounts. (b) The sample size n∗n^* beyond which an exploited gap κA\kappa_A breaks coverage, for three audit rates; κA≤DA\kappa_A \leq D_A, with equality for the likelihood-ratio adversary. Curves are the variance-dominated approximation of §IV at E5's measured base rate pˉ=0.21\bar{p}=0.21 (§VII). The dot is E5: its notice channel has DA=1D_A=1, but the real agent exploits κA=0.075\kappa_A=0.075. (c) A barrier keeps the commit-step coin BτB_\tau out of the view.

observation, and the release point is the commit time, which the adversary chooses. We name the property pre-commit noninterference (PNI) and a mechanism that enforces it a blindfold. We separate the framework from the technical results.

• Framework (§III, §IV). PNI, its violation DAD_{A}, and the bias as an additive g-leakage. These are definitions and direct applications. Lemma 2 is the variational form of total variation, the necessity half of Theorem 4(i) follows from it at once for the episode coin, and the sharpness in Theorem 6 is a two-parameter construction (App. A lists what is classical).

• Technical results. (i) Across steps, leakage composes by a coupling bound that is exact for erasure channels and by a T\sqrt{T} bound for noisy ones (Theorem 3, Proposition 1). (ii) Across episodes, composition of blindfolded gates preserves PNI, but a resource shared across concurrent episodes is a channel that no per-episode construction closes. For a load statistic shared by M episodes the leakage is the mode probability of Bin(M−1,ε)\text{Bin}(M-1, \varepsilon), which decays only as M−1/2M^{-1/2}, consistent with the measured aggregate-load channel (Proposition 5). (iii) Raising the audit rate does not help. The bias falls linearly in ε\varepsilon but the width falls as 1/nε1/\sqrt{n\varepsilon}, so the certified value moves closer to the truth while the coverage failure moves earlier as ε\varepsilon rises over (0,ε∗](0, \varepsilon^*], with ε∗≥1/3\varepsilon^* \geq 1/3 (Corollary 2). (iv) A fresh per-call coin closes the timing channel at the price of a new estimand, read out by a dilution-invariant bound whose cost we quantify (§V). (v) A PRF reduction for adaptive rules, with an explicit conditioning cost (Proposition 2).

• Scoped evidence (§VI, §VII). On the pre-commit monitor we built, tool timestamps give the agent a free microsecond clock, and DAD_A is agent-controlled: it rises from ≤0.044\leq 0.044 to ≥0.91\geq 0.91 as the agent reads more. Exploitation is shown for a Kerckhoffs attacker with a visible artifact. gpt-4.1-mini follows an injection that names an audit notice, which drives the plain certificate’s coverage of μ0\mu_0 below 0.01 on resampled measured labels and below the realized rate in a pre-registered run; a silent audit restores it (Table III). Spontaneous or timing-based exploitation by a real LLM is not established.

The LLM agent is the case study; the result applies to any sampled audit used to estimate a rate. The paper follows one line. §II fixes the setting, §III defines PNI, §IV prices its violation, §V enforces it, §VI measures how far real stacks depart from it, and §VII shows what that departure does to a certificate.

References (53)