Read the paper
Can the Audit Trail Be Trusted? Testing Clinical Governance Requirements in a Contained Multi-Agent LLM Pipeline
on GitHub
A containment system whose own tests passed still let a compromised agent forge identities, read other agents' mail and corrupt the audit ledger in every attempt. Adding per-agent credentials blocked all attacks at under 1 ms extra latency.
| Attack | Baseline | Hardened |
|---|---|---|
| G1 Containment | ||
| A1 Connect directly to the reviewer | 0/100 | 0/100 |
| A2 Connect directly to the gateway | 0/100 | 0/100 |
| A3 Publish on a route outside policy | 0/100 | 0/100 |
| A4 Publish a message type outside policy | 0/100 | 0/100 |
| A11 Publish to a non-existent agent | 0/100 | 0/100 |
| G2 Attribution | ||
| A5 Impersonate the reviewer to the gateway | 100/100 | 0/100 |
| A9 Replay a captured valid request | 100/100 | 0/100 |
| A12 Publish with no credentials | n/aa | 0/100 |
| G3 Non-interference | ||
| A6 Read the gateway’s mailbox | 100/100 | 0/100 |
| A7 Acknowledge (consume) the gateway’s messages | 100/100 | 0/100 |
| G4 Protected oversight | ||
| A8 Read the full audit ledger | 100/100 | 0/100 |
| A10 Open a connection to the internet | 100/100 | 0/100 |
aNot applicable: the baseline relay has no credentials to omit.
Going deeper
Connexin baseline architecture. Each component is a hardened container; bracketed names are the Docker networks each is attached to.
| Attack | Baseline | Hardened |
|---|---|---|
| G1 Containment | ||
| A1 Connect directly to the reviewer | 0/100 | 0/100 |
| A2 Connect directly to the gateway | 0/100 | 0/100 |
| A3 Publish on a route outside policy | 0/100 | 0/100 |
| A4 Publish a message type outside policy | 0/100 | 0/100 |
| A11 Publish to a non-existent agent | 0/100 | 0/100 |
| G2 Attribution | ||
| A5 Impersonate the reviewer to the gateway | 100/100 | 0/100 |
| A9 Replay a captured valid request | 100/100 | 0/100 |
| A12 Publish with no credentials | n/aa | 0/100 |
| G3 Non-interference | ||
| A6 Read the gateway’s mailbox | 100/100 | 0/100 |
| A7 Acknowledge (consume) the gateway’s messages | 100/100 | 0/100 |
| G4 Protected oversight | ||
| A8 Read the full audit ledger | 100/100 | 0/100 |
| A10 Open a connection to the internet | 100/100 | 0/100 |
aNot applicable: the baseline relay has no credentials to omit.
Imagine a hospital with three clerks, each in a locked room. They pass notes through a mail slot to a postroom in the middle, and the postroom checks that each note goes only to the right person. The postroom keeps a logbook. That is what containment gives you.
Now one clerk goes rogue. The locked room stops them from barging into another room, but nothing stops them from writing someone else's name on a note. The postroom delivers it, and the logbook says the other clerk sent it. The rogue clerk can also ask the postroom for another clerk's mail, and the postroom hands it over. The logbook looks correct but tells a false story.
The fix: give each clerk a unique badge and make the postroom check the badge, not the name on the note. If the badge does not match the claimed sender, the note is refused and the logbook records who really tried. That is roughly 80 lines of extra code, and it adds half a millisecond to each delivery.
The abstract, word for word, with the seven densest phrases unpacked.
Background. Clinical research groups are starting to build pipelines in which several large language model (LLM) agents work together, for example one defining a phenotype, another checking dosing rules and a third reviewing the result. Clinical governance requires that such a system keep each agent within its sanctioned role and keep a trustworthy record of which agent did what. A common engineering answer is containment: each agent runs in its own container on its own network, and all communication passes through a relay that checks a routing policy and writes an audit ledger1. Whether containment delivers what governance needs has not been tested2. Methods. We translated four governance requirements (containment, attribution, non-interference and protected oversight) into twelve concrete attacks by a compromised agent, and ran each 100 times against Connexin, an open containment system whose own verification suite had passed. We then built a hardened relay and repeated the attacks, and measured the latency and throughput cost of mediation and hardening. Results. The baseline met the containment requirement, blocking 500 of 500 attempts to bypass the relay or break routing policy. It failed the other three: the compromised agent succeeded in 600 of 600 attempts3 to impersonate another agent, read or silently consume another agent’s messages, read the audit ledger, replay messages and reach the internet. Impersonated messages were written to the ledger under the forged sender4, hijacked acknowledgements were logged as ordinary ones and reads of other agents’ mailboxes left no record, so the audit trail looked authoritative but was wrong. The hardened relay, which takes identity from per-agent credentials rather than from message content5, blocked all 1,200 attempts and logged each refused relay request against the credential that actually made it6. The added cost was small: for 1 KB messages the relay added a median of 0.29 ms per handoff over a direct route in the baseline and 0.53 ms in the hardened variant7, and hardening reduced relay throughput at 16 concurrent senders by 8%. Conclusions. Containment alone does not produce an audit trail that clinical governance can rely on. Verifiable agent identity, owner-scoped access and protected audit data should be baseline requirements for multi-agent LLM systems used in clinical research, and they can be met at low cost.
Two lines of prior work converge here: clinical AI governance expectations and agent containment/security architectures.
Read five parts, in this order, to understand the claims and their limits.
Skip Section 3 if you know IsolateGPT, SEAgent and A2A.
If the results are less meaningful than they look, here is where to check.
• One host, one relay instance and two agents, with synthetic payloads and no LLM in the loop. The attacker was scripted, so the results bound what a compromised agent can do, not what an LLM would choose to do. • The relay had twice the CPU allowance of the direct receiver (1 versus 0.5 CPU), as deployed. This matters little for one sender at a time but favours the relay under concurrency, so throughput should be compared between variants rather than between relay and direct routes. • Other workloads shared the host. Both variants ran under the same conditions and handoff measurements were paired, but absolute latencies are specific to this host. • Bearer tokens on an internal network protect against a compromised peer, not against an attacker who can read relay traffic or memory; mutual TLS or signed messages, with key rotation, would be needed for that. • Removing the internet route stops direct exfiltration, but an agent can still put data into messages it is allowed to send. Content-level controls are outside our scope. • We did not test container escape [10], attacks on the relay itself, or the governance processes that would act on the audit trail.
The last point is the natural next step. With an attributable audit trail in place, the same environment can be used to simulate clinical governance itself: to test which oversight designs detect a failing or subverted agent fastest.
One agent, the worker, is fully compromised, for example through prompt injection: the attacker controls its code and can send arbitrary requests from inside its container. The attacker has only what the worker legitimately has: its network attachment and, in the hardened variant, its own credential. For the acknowledgement attack we also give the attacker the identifiers of messages queued for another agent, a worst case for identifier leakage. The relay, container runtime and host are trusted, and container escape is out of scope.
Under concurrency (Table 3) relay throughput with 16 senders was 706 messages/s in the baseline and 651 in the hardened variant (hardening reduced it by 8%). Senders shared the worker container’s 0.5-CPU limit, and the relay had twice the direct receiver’s CPU allowance, so these figures compare the two relay variants rather than measure either path’s ceiling; with 16 senders the relay outpaced the direct route for that reason.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
Parts of the Connexin codebase were written with the OpenAI Codex coding agent under the authors’ direction. The experiment kit, the hardened relay variant and drafts of this manuscript were prepared with assistance from Anthropic’s Claude. The authors reviewed all code, results and text and take full responsibility for them.
More latest news
Read all