In 2025, most organisations secured AI agents one at a time: each team chose its framework, wired its own tools, managed its own credentials and logged (or did not log) in its own way. That worked for a handful of pilots. It does not work when there are dozens or hundreds of agents across the business, built by different teams on different stacks.
The answer is the same one we reached for microservices and cloud: a shared security architecture that every agent inherits. Here is a reference architecture built on five pillars.
Pillar 1: agent identity
Every agent is a registered, non-human identity with an owner, a purpose and a maximum scope.
- An agent registry records agents, versions, owners, allowed tools, data classifications and approval requirements.
- Agents obtain short-lived, delegated credentials at run time, carrying both the agent and the user or team they act for.
- Downstream systems see and log both identities, and enforce the intersection of their permissions.
- Agent-to-agent communication is mutually authenticated, and requests between agents are authorised like any other.
Pillar 2: governed tools
Tools, increasingly exposed through MCP servers, are how agents act. Govern them centrally:
- a tool and MCP server catalogue with owners, versions, risk classifications and approved scopes,
- an MCP gateway that enforces the allow-list, brokers authentication and logs every call, and
- change control for tool definitions, since a changed description or schema changes agent behaviour.
Pillar 3: policy enforcement
Decisions about what an agent may do should be made by a policy engine, not by prompts and not separately in every agent:
- per-action authorisation based on agent, user, resource, data classification and context,
- data-flow rules (for example, no restricted data to external destinations),
- approval requirements for high-impact actions, and
- budgets and rate limits.
Policies are versioned, tested and audited like code, and every decision is logged.
Pillar 4: isolated runtime
Agents that run code, browse or handle untrusted files execute in isolated runtimes:
- sandboxes (containers or microVMs) with no ambient credentials,
- egress restricted to approved destinations,
- per-tenant and per-user isolation of memory and state, and
- disposable environments that do not accumulate state between tasks.
Pillar 5: observability and the SOC
Every agent run produces structured traces: inputs, context references, model calls, proposed actions, policy decisions, approvals, tool calls and outcomes. These flow into:
- engineering dashboards for quality and cost,
- evaluation pipelines for regression testing, and
- the SOC, with detections for anomalous agent behaviour and a response playbook.
Putting it together
flowchart TB
subgraph Agents["Agents (any framework, any team)"]
A1[Support agent]
A2[Coding agent]
A3[Finance agent]
end
Agents --> ID[Identity service<br/>registry, delegated tokens]
Agents --> RT[Isolated runtimes<br/>sandboxes, egress control]
Agents --> GW[AI gateway<br/>model access, data policy]
Agents --> MCPG[MCP gateway<br/>tool catalogue, auth, logging]
MCPG --> PE{Policy engine<br/>per-action decisions}
PE --> Sys[Business systems & data]
ID -.-> PE
GW --> Models[Model providers & self-hosted models]
Agents --> OBS[(Tracing & audit)]
MCPG --> OBS
PE --> OBS
OBS --> SOC[SOC detections & response]The key design choice is centralised enforcement points: identity service, AI gateway, MCP gateway, policy engine and runtime platform. Individual agent teams keep freedom to build; they cannot opt out of the controls, because every path to models, tools and data runs through them.
Designing for response
When something goes wrong, the architecture should make it fast to:
- pause any agent or class of agents,
- revoke its tokens and tool access,
- block a specific tool, MCP server or destination,
- reconstruct what happened from traces, and
- purge poisoned memory or retrieval content.
Rehearse these actions before you need them.
Adoption path
- Inventory existing agents, tools and credentials.
- Introduce the AI and MCP gateways and move agents behind them. This gives immediate visibility.
- Register agents and switch them to delegated, short-lived credentials.
- Add the policy engine in audit mode, then enforce for high-risk actions.
- Standardise runtimes for code-executing and browsing agents.
- Connect traces to the SOC with a first set of detections and a playbook.
The bottom line
The AI-native enterprise needs an AI-native security architecture: agent identity, governed tools, central policy, isolated runtimes and end-to-end observability, delivered as a shared platform that every agent inherits. It lets the organisation scale agents quickly without scaling risk at the same rate.
Our agentic AI security team designs agent platforms on this architecture, and our CISO as a Service team helps organisations plan the transition.