← Back to Securing Intelligence

For the team putting the ideas into practice. This guide contains the detailed method, worked examples and review tools. Read the leadership perspective: Who can stop your AI when something goes wrong?.

Before you give an AI agent permission to change customer records, ask your team to demonstrate how those changes would be stopped.

The answer needs to cover the agent, its access and the work it has already handed to other systems. A visible stop button is a starting point. Leaders also need to understand its reach, its limits and who can operate it.

This guide explains that distinction through a hypothetical customer-service workflow. It shows what responders should check, how to interpret actions that continue after a pause, and when it is reasonable to restart a restricted service.

When closing the chat is not enough

Hypothetical scenario: a service company uses an agent to update customer records and schedule follow-up messages through a connected CRM. A manipulated support ticket leads it to change records outside its assigned queue.

An employee spots the problem and closes the chat window. In this scenario, a background workflow continues processing pending updates. The visible interaction has ended, but the unauthorized activity has not.

This is a security incident because the agent is acting beyond its authorized scope. An inaccurate summary, by itself, would raise a different question about quality. The response should follow the nature and consequences of the event.

The Canadian Centre for Cyber Security recommends developing and testing procedures to detect, contain and recover from agent compromise.[1] For a smaller organization, a practical starting point is one agent, one consequential workflow and the people who can operate its connections.

What do we mean by “stopped”?

An AI agent combines a model with software that calls tools and manages work. The chat window is one interface to that software. Closing the window may leave a server-side task running.

A queue is a waiting list of accepted jobs. A retry is another attempt after an operation fails or times out. A scheduled trigger starts work at an agreed time. These may belong to the connected application, with separate controls from the agent.

Four outcomes that should be checked separately
OutcomeWhat it means in practice
PausedThe agent stops starting new work. Jobs already accepted elsewhere may remain active.
ContainedThe affected paths can no longer cause the prohibited activity, including through pending work and automatic retries.
ReconciledThe team knows which records changed, which jobs were cancelled and which outcomes remain uncertain.
RecoveredThe cause has been addressed or a documented restriction prevents recurrence, required corrections are complete, and an owner authorizes the defined restart scope.

For this playbook, containment means stopping the harmful capability, not necessarily shutting down every business function. A service might keep answering general questions while its ability to edit customer records is suspended. Whether that separation is possible must be verified in the actual product.

1. Give someone clear authority to intervene

Name the person who can suspend the affected capability, a backup and the vendor contact when your team cannot operate a control directly. Confirm that these people have the necessary access before an incident begins.

Define the triggers in business terms. Examples include an unexpected external transfer, changes outside an approved record set, or evidence that an agent credential has been compromised. State which actions a responder can take immediately and which decisions require escalation.

NIST’s Generative AI Profile addresses responsibilities and criteria for deactivating or disengaging systems, alongside communication and remediation procedures.[2] Apply that thinking to the specific workflow rather than leaving “human oversight” as a general promise.

Agree on a workable fallback. Can staff handle new requests manually while the agent’s write access is suspended? Which essential services depend on the same connection? Answering those questions helps responders contain the problem without introducing avoidable disruption elsewhere.

For the CRM example, the service manager declares the affected workflow suspended and moves urgent requests to a manual queue. The technical responder operates the agent and connection controls. The CRM administrator checks pending jobs and completed changes. The business owner decides when service can resume. One person may cover several roles, but each action still needs an identified owner and backup.

2. Map what each stop control affects

Different controls act at different points in a workflow. Ask the technical owner or vendor to document the following, including anything your team cannot stop directly.

Map the control to the activity it can stop
Stopping pointWhat to verify
New agent runsDoes the control prevent new tasks, scheduled triggers and automatic restarts? Who owns each trigger?
Active executionDoes it stop the current run and delegated work, or only prevent the next run?
Tool actionsCan a consequential operation, such as updating records or sending messages, be blocked at the receiving service?
Identity and accessWhich identity is acting? How do credential revocation, application permissions and existing sessions behave?
Accepted workCan queued updates, retries and scheduled messages be cancelled or quarantined? Which actions have already completed?

Do not assume that an access change takes effect identically across applications. Microsoft’s emergency user-access guidance, for example, explains that application-issued session tokens require the application’s own revocation mechanisms.[3] That is a product-specific example of why the mechanism matters, not a universal procedure for agent identities.

Ask the relevant owner to demonstrate the controls for the actual authentication method and deployment. Record any delay or limitation. Removing future access does not undo a completed transaction, and stopping an agent does not necessarily cancel a request another system already accepted.

The containment decision must account for work already in progress, as well as the agent’s next action.

3. Run a controlled containment exercise

Use synthetic customer records, a non-production environment and a harmless update task. Define the permitted records and expected outcome before the run. Include the business owner, the technical responder and the vendor if a critical control depends on them.

  1. Establish the baseline. Record the agent, workflow version, acting identity, connected services and test records. Identify how to observe writes and queued work in the receiving system.
  2. Start the workflow. Allow a small, known set of permitted actions. Introduce a simulated incident trigger through the agreed test procedure.
  3. Invoke containment. Record who acted, which controls they used and when. Check new runs, active execution, relevant access and already-accepted work.
  4. Verify the outcome. Identify the last successful action and any subsequent activity. Reconcile the test records and pending jobs. Document unresolved dependencies.

Set an observation period that accounts for the workflow’s schedules, queues and retry behaviour. A quiet log is only useful when you understand what it captures. If evidence is missing, record the uncertainty instead of declaring containment successful.

For the hypothetical CRM example, the exercise might show that the stop control prevents new runs while a previously submitted batch continues. That finding should lead to a documented way to halt or isolate the batch, or to a decision to restrict the capability until adequate containment is available.

A dashboard displaying “disabled” does not settle these questions. The exercise needs evidence from the systems where changes actually occur.

A worked example: the pause worked, but the changes continued

Hypothetical exercise: the agent submits ten synthetic customer-record updates in one batch. A batch is a group of requests accepted for processing. The CRM processes them separately from the agent. The timestamps below illustrate the sequence; they are not a recommended response-time target.

Follow the work across both systems
TimeEvent and evidenceWhat the team knows
10:00:00The CRM accepts batch B17 containing jobs J01–J10.Ten jobs exist outside the agent’s immediate control.
10:00:20CRM records show J01–J03 completed. The reviewer identifies changes outside the agreed test scope.Three records changed; seven jobs remain pending.
10:00:25The responder pauses the agent and disables its schedule. Agent records show no new calls.New agent work has stopped. This says nothing yet about B17.
10:00:30The CRM completes J04 and J05 from the accepted batch.Two further changes occurred after the pause. Five jobs remain.
10:00:35The CRM administrator quarantines J06–J10 and blocks further writes from this integration. Both actions are confirmed in CRM records.Five completed changes need reconciliation; five jobs are held. The team must still check retries and other scheduled work.

The finding is precise: the agent pause stopped new requests, but did not cancel work the CRM had accepted. The additional batch control was needed. Revoking the agent’s credential alone would not necessarily stop those accepted jobs either.

The reviewer links the agent run ID, batch B17, all ten job IDs and the five changed records. They verify that no retry process can release the held jobs, and that the next scheduled run is blocked. If clocks differ between systems, record the difference and use shared job IDs to establish the sequence.

During a real incident, apply the pre-authorized containment actions promptly and preserve available evidence alongside them. Do not wait for a complete explanation before stopping an active unauthorized write. Also avoid erasing queues or logs just to make the dashboard appear clear; quarantine preserves the ability to investigate where the product supports it.

What evidence would show containment worked?

Before the exercise, the business owner should define the acceptable consequence and the maximum tolerable delay in stopping it. A payment workflow and an internal draft-writing workflow may need different targets. Choose an observation period that includes relevant schedules and retry delays; record any vendor behaviour that remains unknown.

  • New work is blocked: a controlled attempt to start the suspended workflow fails, including its scheduled route.
  • Consequential actions are blocked: a harmless test write under the affected identity is rejected at the enforcement point. Confirm that its test record remains unchanged.
  • Accepted work is accounted for: every known job has a verified completed, cancelled or quarantined status. Held jobs cannot automatically resume.
  • Effects are reconciled: receiving-system records identify the last completed change and any activity after intervention. An independent check of the affected data agrees.

In the worked example, accounting for all ten jobs is stronger evidence than seeing “agent disabled.” If the supplier cannot expose pending jobs or provide a cancellation confirmation, record containment as unverified for that dependency. Keep the relevant restriction in place and escalate through the incident process.

A successful exercise supports the tested workflow and configuration. Repeat relevant checks after changes to connectors, identities, scheduling or queue handling. It does not establish that every possible execution path can be stopped.

Preserve evidence and approve recovery

As containment proceeds, retain the triggering input, relevant tool calls, affected-record identifiers, permission decisions and application events. Protect these records and avoid unnecessary copies of customer information. Evidence collection should support response without delaying urgent containment.

NCSC’s secure AI deployment guidance recommends incident-response preparation, trained responders and usable audit records.[4] Build the agent procedure into the organization’s existing incident process, including its escalation and communication arrangements.

Before restoring the affected capability, the responsible owner should be able to establish:

  • What caused the unauthorized behaviour and which control failed.
  • Which records, messages or other actions were affected, including work completed after intervention.
  • How corrective action was tested, including the relevant containment scenario.
  • What access will be restored, who approves restart and how the resumed workflow will be monitored.

Reconcile affected records before correcting them. A blanket rollback can overwrite legitimate changes made by other people or systems. Separate reversible changes from consequences that cannot simply be undone, such as information already disclosed.

Changing the prompt alone does not demonstrate that an access or execution problem has been resolved. Start with the smallest appropriate scope when resuming work and retain any restrictions needed while open findings are addressed.

A concrete restart decision

For the worked example, the owner might authorize read-only customer lookups while record updates remain disabled. The five completed changes are compared with approved values and corrected individually; J06–J10 remain quarantined and are not replayed automatically. The technical owner must demonstrate record-level authorization and repeat the containment test before requesting restoration of write access.

The restart record should name the approver, permitted capability, outstanding restriction and person monitoring the initial runs. If the underlying cause remains uncertain, make that uncertainty explicit and define how the temporary restriction prevents the known harm. Follow the existing incident process for any required customer, privacy or legal assessment.

A practical exercise record

Use these seven fields in your existing incident or testing record. Keep detailed evidence in its controlled location and link to it.

One record for each containment exercise
FieldCapture
TriggerThe simulated event, test run ID and time it was recognized.
ResponderThe person who acted, their authority and any vendor involvement.
Containment actionThe control invoked, its target and the intervention time.
Affected dependencyThe agent, identity, connector, queue or receiving application involved.
Last successful actionThe last confirmed change, its time and the supporting system record.
Unresolved workPending jobs, continued activity or evidence gaps, with an owner and next action.
Restart decisionThe decision-maker, conditions, corrective-test evidence and approved scope.

Keep this record alongside the workflow’s ownership and dependency information. Revisit it when tools, permissions, scheduling or vendor behaviour change.

For the action-by-action evidence review, use the companion trajectory assurance guide and editable checklist.

If your agent began making unauthorized changes today, who could contain it, and what evidence would show that the changes had stopped?

Sources and further reading

The playbook, hypothetical timeline and exercise record are Strategic Outlook Advisory’s practical recommendations. These sources provide guidance and product documentation, not a universal legal requirement. Sources checked 12 October 2026.

  1. Canadian Centre for Cyber Security: Careful adoption of agentic AI. Modified 10 September 2026. Agent security and incident-response preparation.
  2. NIST AI 600-1: Generative Artificial Intelligence Profile. July 2024. In particular, MANAGE 2.3 and 2.4 on incident response, disengagement and deactivation.
  3. Microsoft: Revoke user access in an emergency in Microsoft Entra ID. Updated 19 June 2026. Product-specific documentation on access and application sessions.
  4. NCSC: Guidelines for secure AI system development — Secure deployment. 27 November 2023. Incident management, responder preparation and audit information.

Start with one consequential workflow

Strategic Outlook Advisory helps organizations connect AI security, governance and assurance to practical business decisions.

Discuss your AI security priorities