SecurityTechInsider AI security & governance
EN/ NL
Risk

Secure AI agents: detection and external containment

AI agents turn one request into chains of actions. Regulators and researchers show why detection, external containment and rehearsed emergency stops are needed.

1 December 2026 4 min
Illustration for this article: detection and external containment. A steel cable under visible tension, strands separating where it passes over an edge.
Organisations must detect agent behaviour at runtime and enforce containment outside the agent itself to prevent intermediate actions from causing harm. Image: SecurityTechInsider — original editorial illustration

You must establish runtime detection and external containment for AI agents before they reach production, link every behavioural signal to an enforced response outside the agent itself, and maintain rehearsed, human-authorised procedures to stop and recover the system.

The prompt is an analysis of 1 December 2026 of runtime detection and external containment for AI agents, which argues that enterprise security of AI agents is shifting from model-centred detection towards runtime visibility, control and accountability. The core problem is that a single request to an agent can trigger a chain of actions across internal files, CRM systems, email, productivity tools, identities and permissions. In our assessment, this means the risk arises in intermediate steps, not only in the final output—checking only the closing sentence is insufficient.

Why checking the final output alone leaves you exposed

The harmful action usually takes place before the visible output appears. A peer-reviewed case study concluded that shortcomings lay across several layers: egress containment, separation of execution runs, access control and monitoring. The researchers identified continuous behavioural monitoring of agent trajectories, tool calls and inter-process communication as a first-class control, precisely in systems where model restrictions have been reduced. In our assessment, a defective security layer does not rule out other attack paths, so detection must look at the whole chain, not the final step.

What failure modes must your detection system address

  • Unmonitored tool calls — actions executed through APIs and integrations without visibility into what data they access or modify.
  • Identity and permission escalation — an agent gaining elevated access or changing permissions during execution without detection.
  • Egress leakage — data leaving your network through outgoing traffic that bypasses inspection.
  • Execution isolation failure — one agent run contaminating or influencing another through shared state or memory.
  • Forensic evidence loss — logs altered or deleted by an attacking agent before investigation can begin.

How to structure detection as a runtime system

Detection here means correlating several behavioural signals and linking each signal to a response enforced outside the agent. The Canadian AI Safety Institute guidelines stress that alignment and sandboxing individually do not provide complete security guarantees and recommend a layered architecture. CISA guidance on malicious use of agentic offensive frameworks advises storing logs centrally and out of reach of an attacking agent, improving detection of large automated activity spikes, monitoring anomalous outgoing traffic, designating containment actions in advance and testing them, and preserving forensic evidence quickly. The Bank of England, PRA and FCA advised financial firms to correlate logs from LLM APIs, tool executions and chats and to keep AI-specific incident response playbooks ready with recorded escalation thresholds and isolation powers.

Which concrete controls must you be able to demonstrate

  1. Record the agent's permitted powers and egress — document per agent which actions it may carry out autonomously, which require authorisation, and which network destinations it may reach.
  2. Place critical logging outside the agent's control — store logs centrally, make them tamper-evident, and ensure an attacking agent cannot alter or delete them.
  3. Define and test an emergency stop procedure — assign a named owner, rehearse the stop and recovery process, and record the time between anomaly detection, isolation and recovery as auditable evidence.
  4. Embed escalation thresholds in contracts — include authorisation levels, liability allocation, evidence-preservation rights and isolation powers in service and vendor agreements.
  5. Treat no single control as sufficient — measure and retain the time between anomaly, detection, isolation and recovery; one defective layer can leave other attack paths open.

How to grade containment without smothering functionality

Place containment outside the agent and link it to risk levels, not to every action. Low-risk actions can run autonomously; high-risk actions require authorisation before execution. This approach lets you maintain agent utility while enforcing oversight where the stakes are highest. In our assessment, the responsible person within the organisation must make the final judgement on which actions an agent may carry out without human approval.

Tooling can automate the collection and correlation of behavioural signals, the logging of decisions and the triggering of containment responses. What remains your own professional judgement is the threshold at which an action becomes high-risk, the design of your escalation path, and the allocation of authority to stop the agent. No platform can substitute for that decision.

Sources: This article draws on reporting and guidance from MIT Technology Review Insights, Cybersecurity and Infrastructure Security Agency (CISA), Bank of England, Prudential Regulation Authority and Financial Conduct Authority, Canadian Artificial Intelligence Safety Institute and Computers journal, MDPI.

Tobias Lindqvist

Written by

Tobias Lindqvist

Adversarial machine learning and the security properties of retrieval systems.