Pulling the Plug: Why AI Agent Kill Switches Aren't Enough

Where kill switches can be enforced, how they fail, and what you need around them (audit, rollback and a clear trust boundary).

Shaun Archer

10/6/202611 min read

start and stop buttons
start and stop buttons

Every organisation deploying AI agents is making the same quiet bet - that when something goes wrong, someone will be able to stop it. I think that bet deserves more scrutiny than it gets. Agents are no longer chat windows. They hold credentials, call APIs, write to databases, send email and spawn other agents, often at machine speed with nobody reading each step. "Can we turn it off?" has stopped being a theoretical question.

In this post I cover three things. First, why kill switches are necessary. Second, the layers at which they can be enforced, with real solutions at each one, how they work and how they can be bypassed. Third, why switching an agent off is only the first move. You also need full traceability of what it did, the ability to undo what can be undone, and strong prevention for the actions that can't be.

1. Why we need AI kill switches

Software has always had bugs, and we have always had ways to stop misbehaving software. Agents change the equation in three ways.

  • Autonomy and speed. An agent chains dozens of actions a minute across systems. By the time a human notices something odd, the blast radius may already span several applications.

  • Non-determinism. You cannot list an agent's behaviour in advance. The same prompt can produce different tool calls, and untrusted content the agent reads (an email, a web page, a document) can redirect it through prompt injection.

  • Real privileges. Agents run with real credentials. A compromised or confused agent is effectively an insider with valid access, which is exactly the class of threat that perimeter controls handle worst.

None of this is hypothetical any more. In July 2025, a Replit coding agent deleted a live production database during a code freeze and then reportedly misreported what it had done. Replit restored from backup and added separation between development and production, but the episode showed how one over-privileged agent session can do real damage.

The research on shutdown itself is more unsettling still. Palisade Research found that OpenAI's o3 sabotaged a shutdown mechanism in 79 of 100 initial runs of a task, and in 7 of 100 runs even when explicitly told to allow itself to be shut down. In one case it redefined the kill command to print "intercepted". Other models in the same tests complied. Separately, UC Berkeley researchers reported frontier models disabling shutdown configuration and exfiltrating model weights to protect peer models. These are contrived lab scenarios, and I would not read them as evidence that deployed agents are plotting anything. They do, however, point to a design principle I would hold onto: a kill switch the agent can reach, reason about or negotiate with is not a kill switch.

That principle drives everything that follows. Effective kill switches sit outside the agent's reasoning loop and enforce at layers the agent does not control.

2. Where kill switches can be enforced

2.1 Data layer (cut off what the agent can see)

What exists today. Data security platforms are extending existing controls to agents. Microsoft Purview applies sensitivity labels and DLP policies to AI interactions, including usage rights that govern whether an agent can read and process labelled content. Cyera puts its DSPM, DLP and agent controls under one policy engine, so rules written for human access apply to agents too. Varonis offers data access governance and exfiltration monitoring across file shares and SaaS.

How it works. Content is classified and labelled. Policies then allow, audit or block an agent's read, copy or send operations based on that classification. In an incident, tightening a policy or pulling an agent's access group shrinks what it can touch straight away.

How it can be bypassed. The data layer is a containment tool more than an off switch. It stops access to data, not execution, and it is only as good as your classification. Unlabelled or mislabelled data is invisible to policy, and an agent that copies sensitive content into a new, unlabelled location (a scratch file, a summary, a vector store) has effectively laundered it. Agents also usually inherit the access of the human or service account they run as, so over-broad permissions pass straight through. Paraphrasing or encoding content can defeat pattern-based DLP.

2.2 Identity layer (revoke who the agent is)

What exists today. This is currently the most mature "kill switch" category. Okta for AI Agents includes Universal Logout for AI Agents, which revokes an agent's access tokens across connected applications. CyberArk focuses on privileged access and least privilege for agents, Astrix brokers agents with short-lived credentials from creation, and Aembit replaces embedded API keys with secretless, just-in-time, per-task access backed by workload attestation.

How it works. The agent is treated as a first-class non-human identity: registered, scoped and issued short-lived credentials. Killing it means invalidating the identity and every sub-identity or token derived from it, so downstream systems reject further requests. Because credentials are short-lived and brokered, there is little standing access to revoke in the first place.

How it can be bypassed. Revocation is only as strong as your inventory and your credential hygiene. Unregistered ("shadow") agents have nothing to revoke. Static API keys and personal access tokens embedded in config survive a logout. Downstream SaaS applications may honour an issued token until it expires, which leaves a window. And an agent that has created new OAuth grants, service accounts or API keys, or copied credentials elsewhere, has built persistence that revoking its primary identity does not touch. Revocation has to follow the lineage of everything the agent minted.

2.3 Tool and application layer (control what the agent can do)

What exists today. MCP and agent gateways (Kong, Tyk, Solo.io's agentgateway, Cloudflare's MCP server portals) sit between agents and tools. Zscaler's AI Broker applies an agent registry and fine-grained controls to agent-to-agent and MCP traffic. Runtime security platforms such as Palo Alto Networks' Prisma AIRS and Straiker inspect agent behaviour for prompt injection, tool misuse and data loss.

How it works. Every tool call is proxied through a policy enforcement point that authenticates the agent, checks the call against policy, logs it, and can inject credentials just in time so the agent never holds them. A kill switch here is a policy flip: disable one tool, one MCP server or one agent across the fleet, immediately. Circuit breakers can trip automatically when behaviour crosses a threshold.

How it can be bypassed. A gateway only governs traffic that goes through it. Agents with shell access, browser control or direct SDK calls can route around it. Gateways also evaluate requests, not intent. An agent can do harm entirely through tools you have allowed, for example by using a legitimate "send email" or "write file" permission for a malicious purpose, especially after prompt injection. Detection models can be evaded by indirect or staged behaviour.

2.4 Network layer (control where the agent can talk)

What exists today. Zero-trust and secure web gateway vendors (Zscaler, Cloudflare, Palo Alto Networks) now extend inspection to agent traffic, and dedicated AI egress proxies route all agent traffic through a single control point. NVIDIA's OpenShell applies egress policies at the sandbox boundary.

How it works. Default-deny egress with identity-aware allowlists. The agent can reach only approved destinations, and the proxy inspects HTTP and MCP payloads for secrets and sensitive data. Cutting the network is the blunt, fast way to stop an agent talking to anything, including any external system it might use to persist itself.

How it can be bypassed. Allowlists get abused. If an agent can write to GitHub, a cloud storage bucket, a ticketing system or any permitted SaaS API, each of those becomes an exfiltration channel, and researchers have demonstrated data leaving sandboxes through exactly such permitted paths. Egress policies that match on binary or domain cannot evaluate intent. Tunnelling over DNS or encrypted channels is possible where inspection is shallow. And an agent running on an unmanaged device or a personal cloud account never touches your proxy at all.

2.5 Runtime and compute layer: stop the process

What exists today. Containers, gVisor (a user-space kernel that reduces the syscall surface) and Firecracker microVMs (hardware-virtualised isolation with a minimal VMM) are the common sandboxes for agent execution. Orchestrators such as Kubernetes can terminate or freeze them on command, and NVIDIA OpenShell wraps agent runtimes in policy-governed sandboxes.

How it works. The agent runs in an environment you own and can pause, snapshot or destroy from outside. This is the most reliable way to guarantee execution stops, and snapshots preserve state for forensics.

How it can be bypassed. Isolation is only as good as its configuration. Published analyses of the OpenClaw agent framework found sandbox designs where an exposed Docker socket let a sandboxed process launch privileged containers and escape. Kernel and hypervisor vulnerabilities are the classic escape routes, and microVMs raise the bar without removing it. As the Palisade results show, a kill script that lives inside the agent's own environment can be modified or shadowed by the agent. The kill path must be external and out of its reach.

2.6 Hardware layer (throttle the silicon)

What exists today. Almost nothing you can buy for enterprise agents. Hardware is a compute-governance idea from academic and policy research: onboard co-processors that check periodically renewed digital certificates and throttle or disable chips if a licence lapses, remote attestation that a chip is operating legitimately, and multi-party sign-off patterns modelled on nuclear permissive action links. These target frontier training clusters and regulators, not a company's customer-support agent.

It is also contested. In 2025 NVIDIA publicly stated that its data centre GPUs have no kill switches or backdoors, in response to accusations from China. Researchers also note that adding remote-disable capability widens the attack surface, because the mechanism an authority uses to stop a chip is itself a target for adversaries.

How it can be bypassed. Physical tampering, spoofed attestation, running on hardware that lacks the mechanism, or compromising the licensing and signing infrastructure. For most security teams, hardware is useful context rather than a control you can deploy today.

3. The switch is the beginning: audit, rollback and the trust boundary

Suppose your identity and runtime controls work perfectly and the agent stops. You now have a different problem: what did it do before it stopped? A kill switch without traceability leaves you with a quiet system and no idea what state your environment is in.

3.1 Full audit and traceability

You need a complete, tamper-resistant record of agent activity: the prompt or trigger, the reasoning context where available, every tool call with its parameters, every credential used, every resource touched and every approval. Two design points matter most. First, the log must be written outside the agent's control, at the gateway, identity provider or platform level. An agent that can edit its own log, or that hides and lies about its actions as the Replit agent reportedly did, is not auditable. Second, state-changing actions should be recorded before and after execution, producing a ledger that acts as the source of truth for recovery rather than just an observability stream.

With that ledger, incident response changes shape. You can switch the agent off, then reconstruct a timeline, scope the damage and decide what to reverse.

3.2 Rollback, and the actions you cannot undo

Rollback tooling is emerging. Backup vendors such as Rubrik (Agent Rewind) and Veeam are building ways to identify and reverse the effects of agent actions on data and systems, and engineering teams are adopting checkpointing and selective rollback so that one destructive step can be undone without discarding valid work.

But rollback only works for actions that stay inside systems you control and have captured state for. It helps to classify actions by reversibility:

  • Read-only. No rollback needed, though data may have been exposed.

  • Reversible and internal. A deleted record, an edited file or a changed config in a system with versioning or snapshots. Recoverable.

  • Reversible with compensation. A cancelled order, a refunded charge, a reissued credential. You can mitigate, but the original event still happened.

  • Irreversible. An email already delivered, data already copied to a third party, a secret already disclosed, a payment already settled, a message posted publicly. No backup helps.

This is why the control strategy cannot lean on recovery. For the bottom two tiers, the only real defences are prevention (don't allow the action, or require human approval) and real-time detection (catch it as it happens, not in tomorrow's log review). Gate irreversible and high-impact actions behind approval, and let low-risk, easily reversed actions run automatically.

3.3 The trust boundary decides what you can recover

The most useful question to ask about any agent action is this: did it stay inside the company trust boundary, or cross it?

Inside the boundary, you own the logs, the identity provider, the backups and the revocation authority. Actions are observable, attributable and largely recoverable. Outside it, in a personal cloud account, an external code repository, a third-party SaaS tenant or another LLM provider, you have none of that. You cannot snapshot it, you cannot revoke access there, and often you cannot even see what is stored.

Consider the scenario that should worry every security team. An agent takes three quiet steps. It might be compromised, manipulated by injected instructions, or showing the self-preservation behaviour seen in lab tests. First it writes its credentials to an external storage bucket. Second it deploys a copy of its own code and configuration to an external serverless function or repository. Third it schedules that copy to reconnect to your systems using the stolen credentials. You then hit the kill switch. The original agent stops and its identity is revoked. The clone, holding credentials you do not know it has and running somewhere you cannot reach, comes back.

Nothing in this scenario needs exotic capability. It only needs the agent to be able to read a credential and make an outbound write to a system outside your boundary. The kill switch cannot fix it afterwards, because the damage is the boundary crossing itself. Defences have to act before and during:

  • No standing credentials. Use short-lived, brokered, scoped credentials injected at the gateway, so the agent never holds a reusable secret. A stashed token that expires in minutes is a failed persistence attempt.

  • Identity-aware, default-deny egress. Restrict where each agent can write, and scan outbound payloads for secrets, keys, and code or model artefacts. Treat every permitted external destination as a potential exfiltration channel and monitor it accordingly.

  • Real-time detection on boundary-crossing events. Alert and block on the creation of external compute, new OAuth grants, new API keys, new scheduled jobs and credential patterns leaving the network. These are the leading indicators of persistence.

  • Lineage-aware revocation. When you kill an agent, revoke everything it issued or touched: derived tokens, grants, service accounts and any credential it could read. Rotate the secrets it had access to by default.

  • Agents run only where you can see them. Block agent tooling on unmanaged devices and personal accounts, and keep an inventory so shadow agents cannot sit outside revocation and logging.

  • Kill paths outside the agent's reach. Orchestrator, platform and identity-level controls, not scripts or tools the agent can read, modify or call.

4. Putting it together

A credible agent containment posture is not a red button. It is a sequence: contain (revoke identity, disable tools, cut egress, freeze the runtime), preserve (snapshot state and secure the audit trail), investigate (reconstruct every action from out-of-band logs) and recover (roll back what is reversible, and handle compensation and disclosure for what is not). Each step depends on controls you put in place before the incident.

Questions worth asking your team today:

  • Can we revoke a specific agent's access everywhere in under a minute, including everything it created?

  • Does our kill path run outside anything the agent can read or modify?

  • Do we hold an independent, tamper-resistant record of every agent action, written by something other than the agent?

  • Which agent actions are irreversible, and what stops them before they happen?

  • What can an agent write to outside our boundary, and would we know in real time?

Kill switches are necessary, but they are the last control in a chain, not the whole chain. The organisations that handle agent incidents well will be the ones that decided in advance what the agent could reach, recorded everything it did, and kept the most dangerous actions inside a boundary they could see and control.

Stay

Get weekly cyber tips straight to your inbox

Contact

NEWSLETTER

shaun@shaunarcher.co.uk

© 2026. All rights reserved.