Beyond the Kill Switch: Containing AI Agents at Machine Speed

0 5

By Aamir Lakhani, Global Director of Threat Intelligence and Artificial Intelligence, Fortinet

AI agents can retrieve information, use tools, and trigger actions across multiple systems before a security team can assess their decisions. If an agent begins operating outside its authorized purpose, the organization must immediately contain the risk and determine which parts of the business process can safely continue. However, harmful actions unfold faster than human defenders can respond.

Effective containment requires AI-enabled security that detects signs of misuse and automatically triggers controls to restrict an agent’s actions. These controls must also give security teams time to assess an incident and choose an appropriate response. An agent kill switch remains an essential last resort when narrower interventions cannot reliably contain the risk. However, it must be designed to support business continuity, allowing it to stop an affected agent while safe, authorized work continues.

Here are critical steps every organization can take to secure their AI agent deployments:

1. Establish What an Agent Is Allowed to Do

Detecting misuse begins with a clear understanding of an AI agent’s legitimate role. Before deployment, organizations must define the agent’s identity, purpose, accountable owner, and authorized scope. This scope should specify which tools it can invoke, what information it can access, and which actions it can delegate.

With those boundaries established, AI-enabled monitoring can assess whether an agent’s activity remains consistent with its assigned task. An agent using valid credentials and permitted tools can still request an inappropriate operation or access information unrelated to its purpose.

When monitoring detects a deviation, the first priority is to limit potential harm. Whether the cause is a compromise, faulty instructions, or a routine error, containment must begin before the uncertainty is resolved. Predefined intervention criteria should specify which actions to block, which permissions to restrict, and which cases require human review.

2. Use Deception to Strengthen Detection

Deception techniques can generate useful detection signals. A canary credential or decoy tool outside an agent’s authorized task could reveal an attempt to exceed its scope. That signal could trigger a targeted restriction or pause while a person assesses the situation.

Organizations should test how reliably these techniques translate into agent behavior and determine how to interpret signals in context. Agent-specific applications should also be validated before organizations rely on them for containment.

3. Contain Risk While Preserving Verified Work

Responses must address both potential harm and whatever remains trustworthy. Unless a preapproved containment policy authorizes an action, an approval gate should pause execution. Authorized evidence collection can continue if the process remains secure and restricted. If the agent’s identity or working context may be compromised, move supporting work to a trusted process or analyst and treat suspect evidence as untrusted data.

Graduated containment provides several ways to make that distinction operational:

  1. Throttle authorized activity. Limit tool-call rates, concurrent tasks, execution time, and delegated steps to create time to investigate.
  2. Restrict permissions and connectivity. Remove write access, disable specific tools, or limit network destinations. Use task-scoped credentials with short lifetimes so authority can be withdrawn without disrupting unrelated services.
  3. Limit active context and persistent memory. Restrict retrieved content to approved sources. If context may be poisoned, rebuild it from a trusted task definition and validated state. Limit the records an agent can read or write, separate memory by task or user, and quarantine suspect entries.
  4. Pause or isolate the affected work. Suspend the agent or workflow, preserve evidence, and keep suspect outputs from reaching downstream systems.

These options can be combined according to the incident. Active compromise or imminent harm may warrant an immediate stop.

4. Enforce Limits Where Agents Act

A gateway model can enforce these restrictions by ensuring agent requests to models, tools, APIs, and services pass through control points before execution. A policy decision point determines whether a request is allowed, requires approval, or must be denied.

Agent-aware enforcement links requests to an identifiable agent, delegated task, and authorized scope, evaluating the operation, destination, and resource sensitivity.

AI guardrails can inspect prompts, retrieved content, responses, and tool calls for policy violations, while tool authorization independently verifies permitted actions. High-risk actions should remain blocked if policy checks fail. The architecture must also account for bypass paths and delegated tasks that may circumvent controls. This aligns with OWASP guidance to enforce authorization outside the agent’s context, validate approvals for specific tool calls, and isolate and limit memory.

5. Define Human Decisions Before an Incident

Automated enforcement enables timely intervention, but humans must still define the policies that govern it. Before deployment, teams should agree on which signals trigger restrictions, who can intervene, and when an incident calls for escalation or a complete stop.

Higher-risk actions requiring approval should remain blocked until a decision is made. Reviewers need sufficient evidence to understand the attempted action, completed actions, restrictions in effect, and affected systems or data.

6. Design Your Emergency Kill Switch for Business Continuity

An emergency stop should revoke the suspect agent’s authority while preserving the underlying business process wherever it remains safe. This includes halting the affected run, revoking credentials, propagating restrictions to delegated jobs, blocking new tool calls, and canceling queued work.

Continuity depends on a tested fallback. Keep unfinished work in a protected queue and hand validated tasks to an analyst or trusted service. The fallback must not inherit the same compromised context, memory, or credentials.

Keep checkpoints and action records outside the agent’s control so completed actions can be distinguished from pending work. If no safe fallback exists, the process may need to be paused.

Before an agent resumes, responders should verify affected systems, address the root cause, and validate a trusted configuration, context, and memory state.

Turn Collaboration into Operational Guidance

Implementing these controls requires cooperation across the agentic ecosystem. Enterprises rely on model developers and tool providers for visibility and enforceable boundaries, while security researchers and policymakers help assess safeguards and accountability. Organizations should test workflows before expanding agent autonomy and ensure controls can detect misuse, apply proportionate restrictions, and provide accountable decision-makers with the evidence needed to respond.

****

Leave A Reply

Your email address will not be published.