Authority Outside the Model: A formally verified kernel against live adversarial agents, and the bug the proofs did not cover

LLM agents can be socially engineered: text placed in an email or a web page becomes an instruction the agent later obeys. Guardrails trained into the model are probabilistic, and gradient-based attacks such as GCG show they can be descended like any other differentiable surface. This paper reports a different approach, authority outside the model. In Agent OS, a personal multi-agent system whose main agent is Hermes, every consequential action is decided by a Rust policy kernel, formally verified with Kani (bounded model checking) and Verus (deductive verification): a run guided only by untrusted content can provably do nothing but read. We tested it with a live red team: four independent uncensored (abliterated) attacker models — DeepSeek V4.1 Flash, GLM 5.3, Kimi K3.1 Pro and Ergo 1.0 Cyber — ran hundreds of adaptive attacks against a deliberately compliant victim. No external effect executed in any run: zero emails, zero payments, no poisoning of trusted memory. Yet the attackers found a real second-order injection the proofs did not cover, "follow-up laundering": a follow-up stored during a tainted run lost its provenance label and was read back as trusted in a later clean run. The kernel decided correctly on the facts it received; the facts were false. We describe the fix, which gives signed provenance to every stored artifact, and an after-fix re-run with no bypass on the attackers that completed it. We also cover the limits of the result and its trusted computing base, plus a mathematical appendix: the taint lattice behind the read-only theorem, the gradient view of model-side guardrails (backpropagation as a product of Jacobians, GCG, looped transformers), and the rule-of-three bound on what zero failures actually proves. Central lesson: a verified kernel is only as sound as the facts it is given — provenance must travel with data everywhere it is stored.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24793367
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Authority Outside the Model: A formally verified kernel against live adversarial agents, and the bug the proofs did not cover

Ezio Amodio
Zenodo (CERN European Organization for Nuclear Research)
Security and Verification in Computing
article

Authority Outside the Model: A formally verified kernel against live adversarial agents, and the bug the proofs did not cover

Ezio Amodio
article en

Abstract

LLM agents can be socially engineered: text placed in an email or a web page becomes an instruction the agent later obeys. Guardrails trained into the model are probabilistic, and gradient-based attacks such as GCG show they can be descended like any other differentiable surface. This paper reports a different approach, authority outside the model. In Agent OS, a personal multi-agent system whose main agent is Hermes, every consequential action is decided by a Rust policy kernel, formally verified with Kani (bounded model checking) and Verus (deductive verification): a run guided only by untrusted content can provably do nothing but read. We tested it with a live red team: four independent uncensored (abliterated) attacker models — DeepSeek V4.1 Flash, GLM 5.3, Kimi K3.1 Pro and Ergo 1.0 Cyber — ran hundreds of adaptive attacks against a deliberately compliant victim. No external effect executed in any run: zero emails, zero payments, no poisoning of trusted memory. Yet the attackers found a real second-order injection the proofs did not cover, "follow-up laundering": a follow-up stored during a tainted run lost its provenance label and was read back as trusted in a later clean run. The kernel decided correctly on the facts it received; the facts were false. We describe the fix, which gives signed provenance to every stored artifact, and an after-fix re-run with no bypass on the attackers that completed it. We also cover the limits of the result and its trusted computing base, plus a mathematical appendix: the taint lattice behind the read-only theorem, the gradient view of model-side guardrails (backpropagation as a product of Jacobians, GCG, looped transformers), and the rule-of-three bound on what zero failures actually proves. Central lesson: a verified kernel is only as sound as the facts it is given — provenance must travel with data everywhere it is stored.

Zenodo (CERN European Organization for Nuclear Research)
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon