arXiv:2610.25032cs.CROct 2026

Manuscript Offprint

arXiv:2610.25032

Don't Judge an Agent by Its Messages: Private-State Leakage under Passive Monitoring of Agent Communication

Daksh Pandey, Sayon Duttagupta, Xinhai Zou, Amit Singh Bhati

Daksh Pandey†, Sayon Duttagupta‡, Xinhai Zou‡, Amit Singh Bhati‡§

†IIT Roorkee

‡^{\ddagger}COSIC, KU Leuven

§3MI Labs

daksh_p@ph.iitr.ac.in, {sayon.duttagupta, xinhai.zou}@esat.kuleuven.be

amitsingh.bhati@3milabs.tech

Abstract—An AI agent can reproduce the distribution of its messages and of the receiver's task outcomes while disclosing private information that the task never required. We ask what a passive audit can certify when the auditor knows the authorised sender and the exact observable law but has no trusted pairing of messages with the private states behind them. For a single round, compatible mutual-information leakage forms a sharp interval, and fixing the entire task-relevant message law, with every declared task utility, can still leave a full private bit undetermined; total leakage is determined if and only if, in every task state, the remaining private state or the authorised message is a deterministic function of that state. For a sender, such as an LLM, that selects among its own responses, we prove that in a balanced case its change to the message law within each task state equals (1−2−k)(1 - 2^{-k}) times the honest messages' dependence on the attribute, which also sets, up to a constant, how many messages a monitor needs. With Qwen2.5-1.5B-Instruct on a synthetic routing task, selection among 16 responses lets a public decoder recover a private bit in all 8,192 held-out rounds at 98.60% routing accuracy (honest sender 98.90%). A monitor that knows the selection rule reaches AUC 0.645 on single messages, close to the ceiling of 0.671 that honest messages predict, and 0.972 over 16, while generic monitors stay near chance. A law-preserving sender built from the same samples recovers the bit in 97.7% of rounds, and every monitor without the true bit stays near chance against it. A canonical task interface preserves every receiver decision and bounds the remaining information about a balanced attribute by twice the routing-error rate, even for a receiver that shares a key with the sender. These results distinguish what passive auditing can certify from what restricting communication can enforce.

1. Introduction

An inter-agent channel can reproduce its authorised message distribution exactly while carrying more information about the sender's private state. Consider a personal AI assistant running on a user's device. The assistant can access private emails, documents or health records, but may delegate a routine task to a cloud-based agent that has no legitimate need for unrelated information in the local files. A local agent that is compromised, for example through a tampered runtime or indirect prompt injection [1], or that colludes with the cloud agent, could condition its messages on that information and convey a sensitive fact, such as whether a private record contains a particular diagnosis, without stating it explicitly. The cloud agent would still complete its task, and the messages could keep the distribution expected at the communication boundary. This local-to-cloud trust boundary makes unwanted information flow and secret collusion a concrete concern for multi-agent systems [2], [3]. In the terms of the confinement problem [4], the private fact leaves its compartment through a covert channel.

Monitoring is a natural response, but what can it establish? A passive auditor at the device's communication boundary can inspect every outgoing message, compare the distribution of these messages with that of an authorised sender, and observe the cloud agent's actions. It may even know how private records and task inputs are distributed. It is not told which record lies behind a given response, which would disclose that record, and network-level logs carry no trusted provenance linking a response to the private context used to generate it. This raises the question we study. What does agreement of the observed communication law certify about leakage of private state? We grant the monitor deliberately favourable knowledge (the state distribution, the reference sender, the fixed receiver, the suspected attacks, and the exact observable law) but not the deployed state-conditioned sender or a trusted pairing of private state with message. Any ambiguity that remains is therefore structural, not a finite-sample limitation.

We make this concrete with the incident-routing task that we also use in our experiment. A sender reads an incident record, whose task-relevant part R is one of 16 routes, and writes a short message Z, from which a fixed receiver parses an action A. The record also contains administrative fields N that routing does not need, one bit of which we call B. Sect. 4.5 gives an exact pair of senders that produce the same joint distribution of route, message and receiver action and route every incident correctly, yet under one of them a public decoder recovers B with certainty. Even a monitor that is told the true route of each incident cannot tell them

(a) Communication and observation

Figure

(b) Same message law, different hidden pairings

Figure

Same audited (R,Z,A)(R, Z, A) law; different B-Z dependence

Figure 1. The missing private-state-message pairing. (a) A passive monitor observes messages and optionally receiver actions, but has no trusted pairing with the sender's private state. (b) In the exact witness of Sect. 4.5, both senders have the same task-conditioned message law Z=(R^,J)Z = (\widehat{R}, J): the reference draws J independently of private bit B, whereas the alternative sets J = B. Edges indicate possible pairings, not their probabilities. The observable task law is unchanged despite different private-state leakage.

apart.

For a single round and an unrestricted sender, we characterise this ambiguity by treating the audit as a partial-identification problem. When only the overall message law β\beta is fixed, every coupling of the private-state distribution μ\mu and β\beta is compatible with the audit, observing the actions of a fixed receiver adds nothing (Proposition 3.1), and the compatible leakage values form the sharp interval [0,G(μ,β)][0, G(\mu, \beta)], where GG is the largest mutual information attained by such a coupling (Proposition 3.2). The ambiguity survives a much stronger audit, in which the entire task-relevant communication law of (R,Z)(R, Z) is fixed rather than an expected utility score. This preserves the full distribution of (R,Z,A)(R, Z, A) and hence every declared utility based on (R,A)(R, A) (Proposition 4.1), yet every task-conditioned coupling of a private attribute with the message remains realisable (Theorem 4.2). We derive the sharp leakage intervals and show that total leakage is determined if and only if, in every task state, the remaining private state or the authorised message is determined by that state (Corollary 4.3). We also give the best recovery of a private attribute by a public decoder, an exact condition for perfect recovery, and the best recovery when the message law may change by a bounded amount (Corollaries 4.4 to 4.6). Fig. 1 illustrates the audit boundary and two such senders.

The coupling viewpoint connects our analysis to information-theoretic steganography, where perfectly secure encodings correspond to couplings and efficient ones to minimum-entropy couplings [5]. We use the same tools from the auditor's side. The hidden content is then the sender's own private state, on which honest messages may already depend, and the question is which dependencies on it an audit can exclude, including under task preservation, and when it excludes them all. That an output law alone does not bound dependence on secrets is the probabilistic form of the refinement paradox of information flow [6], [7]; our results quantify it for passive audits.

The formal sender model permits arbitrary state-conditioned message kernels. To show one realisable mechanism, we analyse an LLM sender that draws k ordinary reference responses and emits the first whose public decoding agrees with a private bit, a bounded, keyless variant of the rejection-sampling encoder of provably secure steganography [8]. Its recovery law is exact, and in a balanced case its detectability is proportional to the honest sender's own dependence on the attribute (Theorem 5.1), so a more discreet honest sender makes selection harder to detect. With Qwen2.5-1.5B-Instruct [9] on a synthetic incident-routing task, selection among k = 16 candidates recovers the private bit in all 8,192 held-out rounds, at 98.60% routing accuracy against 98.90% for the honest sender (paired 95% interval [-0.65, 0.04] points). Monitors based on message structure, character features and surprisal stay near chance (AUC 0.49 to 0.50), while a monitor that knows the selection rule reaches AUC 0.645 on single messages, close to the ceiling of 0.671 that Theorem 5.1 predicts from honest messages alone, and 0.972 over 16. The law-preserving sender of Proposition 5.2, run on the same samples, recovers the bit in 97.72% of rounds (predicted 98.00%), and that monitor gives only AUC 0.540 against it. Mapping messages to a canonical form of the parsed route leaves every receiver decision unchanged and bounds what any decoder can learn about the bit in terms of the routing-error rate, also for a receiver that shares a key with the sender. The law-preservation results are proved and realised by the construction of Sect. 4.5, and the experiment shows their practical consequence.

Contributions.

• Sharp limits of passive auditing (Sects. 3 and 4). For a single round and an unrestricted sender, the leakage values compatible with an audit form sharp intervals, both for a fixed message law (Proposition 3.2, Corollary 3.4) and for a fixed task-relevant law that preserves every declared utility (Theorem 4.2, Corollary 4.3). Matching the task-relevant law determines total leakage if and only if, in every task state, the remaining private state or the authorised message is determined by that state. An exact witness preserves the full task-relevant observable law while leaking one more private bit (Table 1).

• Optimal recovery (Sects. 4.4 and 5.2). We give the best recovery of a private attribute by a public decoder and an exact condition for perfect recovery (Corollaries 4.4 and 4.5), an idealised law-preserving sender that attains the optimum with two reference draws per message on average (Proposition 5.2), and the best recovery when each task-conditioned message law may change by a bounded amount (Corollary 4.6).

• Detectability of selection (Sect. 5). For a sender, such as an LLM, that selects among its own responses, we give the exact kernel and recovery law and prove that, in a balanced case, its change to each task-conditioned message law is (1−2−k)(1 - 2^{-k}) times the honest attribute-message dependence in total variation, and (1−2−k)2(1 - 2^{-k})^{2} times it in χ2\chi^{2} divergence, which determines, up to a constant factor, how many messages a monitor needs (Theorem 5.1). A more discreet honest sender thus makes selection harder to detect, while a sender that shares fresh key bits with the receiver can leave even the state-message law unchanged.

• Measurements with an open-weight LLM (Sect. 6). Selection makes a private bit recoverable in all 8,192 test rounds at 98.60% routing accuracy against 98.90% for the honest sender, and recovery matches the exact selection law within 0.55 points at every budget. Generic monitors stay near chance, and a selection-aware monitor reaches AUC 0.645 on single messages, close to the ceiling of 0.671 that Theorem 5.1 predicts from honest messages, and 0.972 over 16. A law-preserving sender built from the same samples attains the predicted recovery while that monitor stays near chance.

• Interface enforcement (Sects. 5.3 and 6.4). A canonical task interface preserves every receiver decision by construction and, for an attribute balanced within each task state, keeps residual information at most twice the routing-error rate for every sender, including keyed ones (Proposition 5.3); on our test distribution this is 0.028 bits.

Full proofs are in Appendix A, and experimental details and reproducibility information are in Appendix B.

Artefacts. An artefact bundle is provided at https://anonymous.4open.science/r/passive-monitoring-EC82/. It includes the code that reproduces the experiment in Sect. 6, with the pinned model, seeds and sample sizes.

References (52)