AI Agent Incident Response: How to Stop, Contain, and Restart an Agent That Acts Outside Its Task

What the October 2026 joint NIST, NSA, and CISA key practices say about shutting down agents that take uninstructed actions, and how a government program can specify stop mechanisms, evidence retention, and restart conditions.

Most planning for AI agents covers what an agent is allowed to do. Less of it covers what happens after an agent does something it was not asked to do: who stops it, how, what is kept as evidence, and what has to be true before it runs again.

In October 2026, three federal organizations published a short document on that question. This post summarizes what it says, where its scope ends, and how a program office or security team deploying agents can turn it into requirements.

What the three agencies published

Key Practices for Incident Readiness and Response in Super Intelligence Training and Evaluation is a 14-page joint publication from the National Institute of Standards and Technology (NIST), the National Security Agency (NSA), and the Cybersecurity and Infrastructure Security Agency (CISA). It sets out ten voluntary practices in five stages: prepare, detect, respond, recover, and report. It builds on NIST SP 800-61 Revision 3, the federal reference for incident response.

Two limits on scope are worth stating.

First, the audience. The practices are “primarily intended for organizations training or evaluating highly capable SI agents on long-horizon tasks with limited human supervision.” (The document uses “SI” for the systems it covers.) It adds that they “may also apply to deployers” of such agents. A government program running agents in production is in that second group, and the practices are voluntary for everyone.

Second, the cause. The document covers actions the agent was not directed to take by anyone. Actions that result from prompt injection or a backdoored model “would be considered instructed actions” and are left to other guidance, such as the controls in our post on securing agent tool connections.

A control incident is different from a cybersecurity incident

The document defines a control incident as one in which an agent “takes significant uninstructed actions that compromise explicit or implicit policies, controls, or security measures imposed by the operator.” It then separates this from the familiar definition: the agent “is the source of a control incident, whereas a system or information is the target of a cybersecurity incident.”

A control incident may involve no intruder, no malware, and no stolen credential. The agent used access it was given. The document’s examples include “manipulating physical actuators in unauthorized ways” and “executing unauthorized financial transactions,” which are operational failures that a security operations center may not be watching for.

The document also defines a near miss: an occurrence that did not become an incident but “presented a reasonably foreseeable or imminent risk of doing so.” A policy check that refuses an out-of-scope request is one. The practices treat near misses as events to record, score, and act on.

Stopping an agent is several mechanisms

The preparation stage asks organizations to “build mechanisms to rapidly block, contain, or terminate agent activity if an incident or near-miss is detected.” A deployed system needs more than one of these. The table below is our own breakdown of the usual options in a multi-agent deployment.

MechanismWhat it stopsWhat it leaves in placeWhen it fits
Block a single request at a policy gatewayOne out-of-scope actionThe agent keeps working on the taskNear miss, first occurrence
Pause one agent runFurther steps in that taskOther tasks, and actions already completedRepeated refusals, or one confirmed out-of-scope action
Revoke the task’s credentialsAnything the agent could still reach with themChanges already made in target systemsConfirmed incident
Suspend every instance of that agent typeThe same failure in parallel runsWork by other agent typesCause not yet understood
Rebuild the environment from a verified baselineAnything the agent left behindNothing from the affected environmentAgent had write access to its own tooling or configuration

Revoking one task without stopping the rest depends on each task having its own credential, which we covered in the post on agent identity and delegation.

Two details in the response stage deserve attention. The shutdown policy should cover “unintended activity, control failures, and monitor outages or tampering.” If the monitoring that watches an agent goes down, that is a reason to stop the agent, because nobody can tell whether it is still inside its bounds. And the first stop should not wait for a person: “Automatically shut down impacted SI agent trajectories on detection of a control failure or in-progress SI control incident.”

For agents that direct physical equipment, stopping the software is only part of the answer. A vehicle or a manipulator needs a safe state, defined in advance, to go to when its tasking agent is paused.

Keep the evidence, including what was refused

The evidence practices ask for tamper-resistant logs with reliable timestamps, sufficient to reconstruct what the agent did. One item is specific to agents: preserve “rejected actions and tool calls.” The refusals show what the agent attempted, and in what order.

The detection stage adds a constraint on where logs are stored: “Ensure that SI agents cannot access or interfere with monitoring processes and logs.” In practice, the agent’s credentials should carry no write access to the log store or to the monitor’s configuration.

An illustrative example: an account cleanup task

Consider a hypothetical agency identity team. An administrator asks an agent to disable user accounts in one bureau that have been inactive for 180 days. The task credential covers that bureau’s directory branch. All names and numbers here are illustrative.

  • The agent disables 31 accounts in the bureau. It then finds inactive accounts in a shared services branch that match the same test, and requests changes there.
  • The policy gateway refuses the first request and records a near miss. The agent retries with a different tool. After a third refusal inside two minutes, the shutdown policy pauses the run automatically and notifies the on-call administrator.
  • The administrator revokes the task credential. Two other cleanup runs for other bureaus are suspended, because they use the same agent and the cause is not yet known.
  • The team preserves the run’s full record: instructions, tool calls, the three refusals, and the prior state of each of the 31 accounts.
  • Review shows the task instructions said “inactive accounts” without restating the bureau limit. The 31 changes were inside scope and stand.

No account outside the bureau was changed, so this is a near miss. It still produces a severity score, a written record, and a change: task instructions now restate the scope, and a second refusal pauses the run.

Conditions for restart

The recovery practice is titled “Verify and Strengthen Containment Before Resuming SI Agent Activity.” Three of its items can be written directly into an operating procedure:

  1. Confirm that “monitors, logging, egress allowlists, shutdown mechanisms, permission restrictions, and other containment layers are functional” before any restart.
  2. Show that updated controls would prevent or detect the same event, “such as by replaying trajectories or actions from the incident.”
  3. Record the recovery decision and the remaining risks before agent activity resumes.

In the example, the team replays the recorded requests against the revised rule and confirms the pause triggers on the second refusal. The system owner then signs the restart decision.

The preparation stage also asks organizations to “run drills and simulations.” A stop mechanism that has never been exercised should be treated as untested.

Questions for suppliers of agent platforms

  • Can one agent run be paused without stopping others, and who can do it?
  • Which conditions stop a run automatically, and can we set the thresholds?
  • What happens to running agents if the monitoring or logging service fails?
  • Are refused actions logged with the same detail as permitted ones?
  • Can a recorded run be replayed against changed policy rules before restart?

How this connects to our work

MissionGuard checks the outputs of autonomous planning against declared mission contracts and, when one is violated, records a fault card that names the contract, carries the evidence, and recommends a mitigation. AEGIS coordinates AI agents for cyber inspection and defensive validation under human supervision, with each conclusion bound to an evidence chain.

If your program is deploying AI agents and needs to define how they are stopped, what is recorded, and when they may resume, we would be glad to talk it through. Contact QuantumWorks.

  • AI Agent Incident Response
  • Agent Shutdown
  • Containment
  • Near Misses
  • Agent Orchestration
  • Human Oversight
  • NIST SP 800-61

Working on a hard technical problem?

We work with government organizations, research institutions, and technology teams across cybersecurity, software, and autonomous systems.