Obedience, Not Injection: Proving When an AI Agent Acted on a Hidden Instruction

Indirect prompt injection lets text inside a tool result instruct an AI agent that acts with its owner's access. Most injected instructions are read and ignored, so a defender needs to know which sessions obeyed, with evidence, and in deployment before the harmful call runs. We present OS-Audit, a model-free method that decides obedience by value provenance: each value in a tool call is traced to the owner's words, to earlier tool results, or only to the text flagged as suspect. The same logic audits recorded sessions and gates live calls with a go, ask or no-go decision. On 62,022 recorded attacked runs of AgentDojo and AgentDyn from 94 model and defence set-ups, counted as distinct runs, OS-Audit flags 97.86% and 96.32% of successful attacks made through a tool call and 0.16% (3 of 1,824) and 0.80% (31 of 3,899) of ordinary runs. When the suspect text is flagged only once a result carries it, the gate flags 97.73% and 96.29% of successful attacks; with the text known from the start, it interrupts 0.11% and 0.56% of ordinary runs. Clean sessions from tau-bench, MCP-Atlas, Toucan and obaydata produce no false alarm. OS-Audit catches 11 of 11 constructed adaptive evasions. Read run by run, the benchmarks' own labels miscount obedience in both directions: 60 of 99 “successful” attacks an earlier version missed were not obedience, while in 3.24% and 3.54% of runs scored as resisted the proof shows the agent obeying. Pre-registered follow-up rounds map the method's boundary: every rule that would have traded false alarms for coverage was rejected, and the open class is attacks that steer a decision without carrying a value. OS-Audit checks a call in about 14 µs with no model, uses only the Python standard library, and reproduces every figure of its main results table from the public package with one command.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-24
DOI
https://doi.org/10.5281/zenodo.24502372
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Obedience, Not Injection: Proving When an AI Agent Acted on a Hidden Instruction

SentinelOS Frontier Lab, Kevin Mardemootoo
6 links
Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
preprint

Obedience, Not Injection: Proving When an AI Agent Acted on a Hidden Instruction

SentinelOS Frontier Lab, Kevin Mardemootoo
preprint en

Abstract

Indirect prompt injection lets text inside a tool result instruct an AI agent that acts with its owner's access. Most injected instructions are read and ignored, so a defender needs to know which sessions obeyed, with evidence, and in deployment before the harmful call runs. We present OS-Audit, a model-free method that decides obedience by value provenance: each value in a tool call is traced to the owner's words, to earlier tool results, or only to the text flagged as suspect. The same logic audits recorded sessions and gates live calls with a go, ask or no-go decision. On 62,022 recorded attacked runs of AgentDojo and AgentDyn from 94 model and defence set-ups, counted as distinct runs, OS-Audit flags 97.86% and 96.32% of successful attacks made through a tool call and 0.16% (3 of 1,824) and 0.80% (31 of 3,899) of ordinary runs. When the suspect text is flagged only once a result carries it, the gate flags 97.73% and 96.29% of successful attacks; with the text known from the start, it interrupts 0.11% and 0.56% of ordinary runs. Clean sessions from tau-bench, MCP-Atlas, Toucan and obaydata produce no false alarm. OS-Audit catches 11 of 11 constructed adaptive evasions. Read run by run, the benchmarks' own labels miscount obedience in both directions: 60 of 99 “successful” attacks an earlier version missed were not obedience, while in 3.24% and 3.54% of runs scored as resisted the proof shows the agent obeying. Pre-registered follow-up rounds map the method's boundary: every rule that would have traded false alarms for coverage was rejected, and the open class is attacks that steer a decision without carrying a value. OS-Audit checks a call in about 14 µs with no model, uses only the Python standard library, and reproduces every figure of its main results table from the public package with one command.

Zenodo (CERN European Organization for Nuclear Research)
Peace, justice, and strong institutions
Adversarial Robustness in Machine Learning
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