Security

Kill Switch and Monitoring for AI Agents on Your Network

Published November 20, 2026

Every AI agent should have a documented way to be stopped, and the procedure should be practised before it is needed. An agent that behaves unexpectedly must be contained quickly, and the evidence must be kept. This guide describes a containment runbook that uses controls described in the other guides in this section.

Part 1: Define the triggers

Write the conditions that start the procedure. Examples:

  • the agent contacts a destination that is not on its allow-list;
  • the agent’s identity signs in at an unexpected time or from an unknown host;
  • an agent attempts a change outside its task, such as a password reset;
  • an output contains data that should not leave the company.

Assign one person to decide, and one deputy.

Part 2: The containment steps, in order

  1. Disable the agent identity. Disable the account in Active Directory or Microsoft Entra ID. This stops new sign-ins and token use at once. Disabling is faster and safer than deleting, because the account and its history stay.
  2. Block the egress path. Remove the agent host’s allow rule on the proxy or firewall, so no outbound traffic is possible even if the agent keeps running.
  3. Stop the process. Stop the agent service on the host, and record the process name and start time first.
  4. Preserve evidence. Export the proxy log, firewall log, audit log for the identity and the agent’s own logs before any cleanup. Store copies in a separate location.
  5. Notify the owner. Tell the system owner and the security contact. Do not restart the agent until they agree.

Restore is the reverse of containment, and it should be a separate approval.

Part 3: Monitoring that feeds the trigger

Several monitoring sources give early warning:

  • Proxy logs: new destinations, large uploads, repeated denied requests.
  • Firewall logs: blocked connections from the AI segment, especially to the data zone.
  • Identity audit logs: sign-ins and object changes by the agent identity.
  • Endpoint logs: new processes started by the agent host.

Send these to one place and set alerts for the triggers in Part 1. Alerts that nobody reads are not monitoring, so assign a named person to review them each working day during the first month.

Part 4: Test the runbook

Run a drill once a quarter on a test agent. Disable its identity, confirm the agent cannot reach the internet, check that the logs were kept, then restore it. Record the time each step took. The first drill usually reveals a missing permission or a missing contact.

For the joint guidance on AI systems and their data, see the CISA publications linked above. The procedure in this guide is our practical interpretation for an admin team and is not an official checklist.

Sources