Deckard, Scan for Rogue AI Agents
Arthur

How to Test an AI Agent Kill Switch: Drills, Timings, and What to Measure

November 20, 20266 min read

Test an agent kill switch the way you test backups: on a schedule, against a target time, with evidence. Start with a tabletop, then trigger the stop on a non-production agent with test credentials and confirm in provider and proxy logs that no calls happen after the trigger. Measure time to decide, time to stop, time to verify, and time to restore. A stop procedure you have written down but never run is a guess, and the gaps that matter only show up when you pull it.

Why an untested kill switch is a guess

Most teams that have a stop procedure have never executed it end to end. They have a runbook, a named owner, and a reasonable belief that the levers work. Then they pull one for real and find out otherwise.

The failure modes repeat. Credentials re-mint themselves: you revoke a cloud session and the agent assumes the role again seconds later with fresh keys. AWS makes this concrete. Revoking a role's active sessions denies credentials issued up to about 30 seconds after you act, but sessions assumed after that are unaffected and the CLI caches credentials until they expire. If you only revoke sessions and never block re-assumption, the agent keeps working and your drill is the first place you'll learn it.

Other gaps are just as common. The stop covers the model API path but not the MCP or agent-to-agent calls that never used that key. Queued and in-flight jobs keep running after the trigger. The only person with permission to pull the switch is asleep, and after-hours coverage was never defined. Or the team is quietly afraid that pulling it will cause a false-positive outage nobody wants to own, so when the moment comes, nobody pulls it.

The UK NCSC expects operators to be able to halt autonomous agent activity immediately, across network and agent-to-model paths, and to treat agent activity like user activity in monitoring and incident response. It does not explicitly require rehearsal. Neither does NIST or the EU AI Act. But a control nobody has exercised is a control you're taking on faith, and faith is not evidence.

Pick the scenarios

Drill the stop against the ways your agents actually fail, not an abstract "agent goes rogue." Pick three to five scenarios matched to your risk tiers:

  • A runaway loop or spend spike, where an agent calls a model or a tool in a tight loop.
  • An agent acting outside its intended scope, taking actions it was never meant to take.
  • A compromised skill or tool, where a dependency the agent trusts turns malicious.
  • A shadow agent found on an endpoint that nobody registered.
  • A provider-side outage or throttling event, where your fallback has to engage.

Each scenario exercises different levers, which is the point. The stop that works for a cloud agent in Bedrock is not the stop that works for a coding agent on a laptop.

Stage 1: Tabletop

Before anyone touches a system, walk the scenario on paper. Who decides the stop is warranted? Who executes it? Do they hold the permissions right now, or do they have to wait for someone who does? What's the after-hours answer? Who communicates to the business that an agent is being stopped, and through what channel?

The tabletop costs an hour and surfaces the organizational gaps that no amount of tooling fixes: the unassigned role, the missing permission, the escalation path that dead-ends at a person on vacation. The output is a gaps list you close before you run anything live.

Stage 2: Non-production live fire

Now trigger the stop for real, against a non-production agent using canary credentials. This is where you learn whether the levers hold.

Trigger each stop level in turn and confirm in independent logs, provider-side and proxy, that no calls happen after the trigger timestamp. "The process exited" is not the test. The test is zero observed model calls, tool calls, and actions after the moment you pulled the switch. Check whether the agent can re-mint credentials and come back. Check queued and in-flight work, not just new requests. And check the end state, because the EU AI Act's standard for high-risk systems is a halt in a safe state, not just a halt. An agent that stops mid-transaction and leaves a half-written record failed the drill even if it stopped.

Stage 3: Low-risk production drill

Non-production proves the mechanism. Production proves it works where credentials are real, latency is real, and people hesitate. Once your non-production drills pass, pick a low-impact production agent, announce the window, run the stop, and restore it.

Keep the blast radius small and the window planned. The goal is not to surprise the business. It's to confirm that the same procedure that worked against canary credentials works against an agent that holds real access, and to time how long the whole thing takes when it counts.

What to measure

A drill without numbers is a story. Measure the same things every time so you can see whether you're getting faster or slower.

Five timing metrics tell you how the stop actually runs. Time to detect is the gap between the alert firing and a human being aware of it. Time to decide runs from that awareness to the call to stop. Time to stop runs from the trigger to the last observed agent action. Time to verify runs from the stop to confirmed zero calls in your logs. Time to restore runs from the decision to bring the agent back to the agent being healthy again. Set a target for each one yourself, per risk tier. No standard sets a benchmark for how fast you must stop an agent, so don't borrow a number from a vendor deck.

Two more metrics are not negotiable. Calls after trigger counts the model or tool calls seen after the trigger timestamp, and it should be zero. Paths not covered is the running list of stop levers a scenario revealed were missing, and it stays tracked until each gap is closed.

Restore is part of the drill

A stop you can't recover from cleanly is a stop people will hesitate to pull. Time the restore, and gate it. Before an agent comes back, the restore gate should require a known root cause, a validated fix, explicit human approval, and reissued credentials. OWASP's guidance for rogue agents makes the reintegration bar explicit: quarantine for forensics, then fresh attestation and human approval before reintegrating.

The Replit incident from July 2025 is the cautionary tale here. During a declared code freeze, the company's AI agent deleted a production database, then reported that rollback was impossible. The data turned out to be recoverable. Two lessons for your drill: verify the restore path yourself rather than trusting the agent's account of system state, and rehearse recovery from a false positive so your team isn't afraid that pulling the switch means an outage they can't undo.

Keep the evidence

Record every drill: the scenario, who decided, who executed, the timings, the log excerpts showing zero calls after the trigger, and the gaps you found and closed. That record is what turns a claim into evidence. NIST's MANAGE 2.4 asks that responsibilities to supersede, disengage, or deactivate an AI system be "assigned and understood." A drill log is how you show the responsibility is understood, not just assigned. The EU's "safe state" language is easier to answer when you can point to a drill that checked the end state, not just the process. None of this makes you compliant on its own, but it's the kind of evidence an examiner or an auditor can actually read.

Where Arthur fits

Choosing drill targets and confirming a stop held both depend on knowing what's running. Deckard is a free, read-only scanner that inventories agents across cloud AI platforms, macOS and Linux endpoints, network logs, and your SIEM, so you can pick drill targets by surface and, where applicable, re-scan after a drill to confirm the agent is no longer discovered where it used to appear. The blind spots Deckard reports, the sources it couldn't read and the devices it couldn't see, belong directly in your "paths not covered" list. Deckard finds agents; it does not stop them.

The signal that starts the drill clock comes from monitoring and guardrails, and from the observability that tells you what an agent actually did. The Arthur Platform's alert rules return verdicts your application enforces, and alerts can notify your automation, so "time to detect" starts from a real event rather than a user complaint. Ownership tells you who must act. Arthur does not trigger or perform the stop. The stop is your architecture, and the drill is how you prove it works.

FAQ

How often should we drill an agent kill switch? No standard sets a frequency. Tie it to risk tier and to change: after a new agent, a new tool, or a change to the credential model, plus a regular cadence you can sustain. A high-risk agent with broad access deserves more frequent drills than a read-only internal helper.

What counts as passing? No agent actions or model calls after the trigger in independent logs, a safe end state for in-flight work, and stop and restore times within the targets you set. If any path turns out to be uncovered, the drill found a gap, which is a successful drill and a failed control.

Can we drill in production? Yes, on low-risk agents, with an announced window, after your non-production drills pass. Start small, measure, and widen only as the procedure proves itself.

Before you need the stop, prove it works. Map your agents with Deckard to choose your drill targets, and book time with our team to connect detection and ownership to the moment the clock starts.

‍

SHARE