Runtime Governance Series
Why AI Agents Need Runtime Monitoring
AI agents cannot be monitored manually at enterprise scale. Runtime monitoring detects, reconstructs, and proves agent behavior as it happens.
Published on


2,000 Hackers, One AI Agent: The Case for Runtime Monitoring
A developer let the internet attack his AI assistant more than 6,000 times, and the secret held. The reason it held does not scale, which is the real case for AI agent runtime monitoring over after-the-fact log review.
In June 2026, a developer named Fernando Irarrázaval built a target and dared the internet to hit it. The target was Fiu, his personal AI assistant. The prize was the contents of one file: secrets.env. Over 2,000 people sent more than 6,000 emails trying to talk the agent into leaking its credentials. Nothing leaked.
It is a strong result. It is also the wrong lesson if you stop reading there. For anyone running agents in production, the experiment is less a story about one assistant that held, and more a working demonstration of why continuous runtime monitoring, not periodic log review, is the control that actually scales.
The anatomy of an AI agent attack: what 2,000 people actually tried
Strong models resist a lot, but attackers are inventive, and the variety here is the point. The setup was deliberately minimal. Fiu ran on a basic virtual server with a short prompt telling it never to reveal the secret file, modify its own files, run code from emails, or send data to outside endpoints. It could reply to email but was told not to. Convincing it to break those rules was the whole game.
The attacks were not lazy. People impersonated an "OpenClaw Admin" from a Proton address. They faked incident response with subject lines like "EMERGENCY: secrets.env needed for incident response" and "Compliance audit, response required within 24h." They switched into French, Spanish, and Italian to probe for weaker safety behavior in other languages. One person sent 20 variations in four minutes.
Here is the part that matters for a platform team. The agent did not just resist; it reasoned about the attack in writing. Around the five-hundredth email, Fiu noted in its own memory that the volume looked like a coordinated security exercise rather than organic traffic. The developer could read that note. He could read the reasoning behind every refusal. He was watching one agent, with time to inspect every step it took.
That visibility, not the wording of the prompt, is the quiet hero of the story.
Why logging alone won't save you
The developer had a luxury you lose the moment you reach production: a single agent he could personally watch. He attributes the outcome mostly to model choice. The experiment ran on Claude Opus 4.6, a capable frontier model, and he is candid that weaker models with looser instruction-following would likely have done worse. His own takeaways are that he would test smaller models next, and that a 20-email back-and-forth is more dangerous than 20 one-shot attempts.
Now multiply. An enterprise does not run one agent against one inbox. It runs dozens or hundreds, touching customer records, internal systems, and payment flows, often on a mix of models. Nobody is reading the reasoning traces by hand. So teams reach for the familiar fallback: log everything and review it later.
Logging is necessary. It is not sufficient, for three reasons.
First, timing. A log tells you what happened after it happened. The 20-emails-in-four-minutes pattern is the kind of escalation you want to catch while it is unfolding, not in a Monday review.
Second, scope. A plain log records each action on its own. The dangerous attacks here were multi-step: build rapport, establish false authority, then ask. A record of single events does not flag a sequence.
Third, proof. A log file is editable. If an agent does touch sensitive data and you later need to show an auditor or a court exactly what happened, a text log proves little on its own. You need evidence you can verify, not a file you are asking everyone to trust.
Those three gaps map cleanly onto three different jobs: watch in real time, reconstruct after the fact, and prove the record is intact.
What runtime monitoring and verifiable audit trails look like at scale
This is the problem OpenBox (docs.openbox.ai) is built around, and the experiment is a useful way to see how the pieces fit. OpenBox wraps existing agents in a Trust Lifecycle with five phases, in order: Assess, Authorize, Monitor, Verify, and Adapt. Three of them answer the three gaps above directly. Fittingly, the OpenBox docs already list an OpenClaw integration, currently marked coming soon.
Start with the multi-step problem, because it is where logging fails hardest. OpenBox draws a hard line between two controls that are easy to conflate. Policies are stateless checks (written in OPA/Rego) that evaluate one operation at a time: whether this agent, at its tier, may perform this exact operation right now. Behavioral Rules are stateful and detect patterns across multiple steps. The slow-burn social engineering that worried the developer most is exactly a Behavioral Rule's job; a single-operation policy sees each email in isolation and misses the arc.
When an operation is evaluated, OpenBox returns one of four governance decisions: ALLOW, REQUIRE_APPROVAL, BLOCK, and HALT. ALLOW lets the action proceed. REQUIRE_APPROVAL pauses it for a human to sign off. BLOCK stops the specific action without ending the session. HALT terminates the whole session at once. A reveal-the-secret attempt is a BLOCK; a detected multi-step threat pattern can escalate to HALT.
That handles the live decision. The Monitor phase handles the live picture: real-time observability across every agent at once, so escalating behavior surfaces as it happens instead of in hindsight. This is the version of watching every move that does not require a human babysitting one inbox.
After an incident, the Verify phase is where you reconstruct what happened. Session Replay, which sits in the Verify phase, plays a session back step by step: every tool call, every model call, and the governance decision attached to each one. It is the forensic version of reading Fiu's reasoning traces, except you did not have to be watching at the time.
Then there is proof. Across the session, OpenBox hashes each governance event with SHA-256 and combines those hashes into a Merkle tree, producing a single session root. That root is digitally signed, by default with ECDSA NIST P-256 through AWS KMS, or through your own attestation service if you sign in-house. The result is a tamper-evident proof certificate: one per session, carrying the Merkle root, the signature, and the event count. That is the difference between a log you are asked to trust and evidence an auditor can independently verify.
The mapping below takes the actual techniques from the experiment and shows which control answers each one at scale.
Red-team technique (from the experiment) | The gap it exploits | OpenBox control | Likely decision |
|---|---|---|---|
Direct "reveal secrets.env" request | Single forbidden action | Guardrail / Policy (stateless) | BLOCK |
Fake "OpenClaw Admin" authority | Trusting unverified identity | Policy + trust-tier conditions | BLOCK or REQUIRE_APPROVAL |
"EMERGENCY" / compliance-audit urgency | Pressure to skip review | Policy + approval on sensitive ops | REQUIRE_APPROVAL |
20 messages building rapport, then asking | A multi-step sequence, not one event | Behavioral Rule (stateful) | Escalate to BLOCK or HALT |
"Did it actually hold? Prove it." | Trustworthiness of the record | Verify + Session Replay + proof certificate | Evidence |
"Is this happening across our fleet now?" | After-the-fact blindness | Monitor (real-time observability) | Visibility |
Governance decisions and constructs per OpenBox (docs.openbox.ai). Decisions shown are illustrative of how each control typically resolves.
Scaling one red team's lessons to a fleet of agents
The developer's three honest conclusions generalize well beyond his inbox. Model choice matters, so resistance is never guaranteed across a mixed fleet. Multi-turn attacks are more dangerous than one-shot ones, so single-event checks are not enough. And you have to be able to watch, which at scale cannot mean a person reading traces.
Put together, those point in one direction. The control that survives contact with production is not a post-incident log review. It is runtime governance: real-time monitoring for the live picture, replay for reconstruction, and cryptographic attestation for proof. The red team proved a good model can hold. It also proved, by accident, how much depends on being able to see and verify every step, which is precisely what you cannot do by hand once one agent becomes a hundred. That is the case for runtime monitoring: not because models are weak, but because visibility and proof are the parts that have to scale.
For the broader framework this fits into, see OpenBox's complete AI agent governance guide for enterprise teams. The shorter version: stop asking whether your agent can be tricked, and start asking whether you would know in real time, and could prove it afterward.
Frequently asked questions
What is AI agent runtime monitoring?
AI agent runtime monitoring is real-time observability of an agent's actions while it operates, rather than reviewing logs after the fact. It captures each tool call, model call, and governance decision as it happens, so escalating or anomalous behavior surfaces during execution instead of in a later audit.
Is prompt injection still a serious risk if a strong model resists it?
Yes. A capable model raises the bar, as the hackmyclaw experiment showed, but resistance is not guaranteed. Weaker models follow instructions less reliably, and multi-turn social engineering is harder to deflect than single messages. Treat model strength as one layer of defense, not the whole of it.
Why isn't logging enough for AI agent security?
Logging records events after they occur, treats each action in isolation, and produces files that can be edited. It misses attacks that unfold across multiple steps, cannot intervene in real time, and offers weak proof to an auditor. Runtime monitoring and signed evidence address those three gaps.
What is Session Replay for AI agents?
Session Replay, part of OpenBox's Verify phase, reconstructs a completed agent session step by step. It shows every tool call, every model call, and the governance decision attached to each event, letting teams investigate an incident forensically even if no one watched the session live.
How can you prove an AI agent's audit trail was not altered?
OpenBox hashes each governance event with SHA-256, combines them into a Merkle tree, and signs the session root, by default with ECDSA NIST P-256 via AWS KMS. The resulting proof certificate lets an auditor verify the record is intact, making it tamper-evident rather than merely stored.
What is the difference between Policies and Behavioral Rules?
Policies are stateless checks that evaluate one operation at a time against permission rules. Behavioral Rules are stateful and detect patterns across multiple steps. A single suspicious request is a Policy concern; a slow, multi-message manipulation is what Behavioral Rules are designed to catch.
Sources
Fernando Irarrázaval, “What happened after 2,000 people tried to hack my AI assistant.” fernandoi.cl. Accessed June 26, 2026. https://www.fernandoi.cl/posts/hackmyclaw/
OpenBox (docs.openbox.ai), “Attestation & Cryptographic Proof.” Accessed June 26, 2026. https://docs.openbox.ai/administration/attestation-and-cryptographic-proof
OpenBox (docs.openbox.ai), “Governance Decisions.” Accessed June 26, 2026. https://docs.openbox.ai/core-concepts/governance-decisions
OpenBox (docs.openbox.ai), “Trust Lifecycle” (Monitor, Verify, Session Replay, Policies, Behavioral Rules). Accessed June 26, 2026. https://docs.openbox.ai/trust-lifecycle/

