// Learn · Pillar guide

AI agent security: risks, architecture and runtime controls

A system-level view of the attack surface created when AI moves from generating content to planning and acting across tools and environments.

  1. Prompt
  2. Model
  3. Orchestration
  4. Tools and MCP
  5. Commands
  6. Execution

The agentic attack surface

AI agent security covers the model and every component that turns its output into an outcome: prompts, retrieved context, memory, orchestration, tools, MCP connections, credentials, commands and execution environments.

Prompts, external context and models

Instructions may come from users, documents, websites, repositories and tool output. Untrusted content can influence planning or tool selection. Model controls, content boundaries and careful context handling reduce risk, but no single input control can prove the safety of every later action.

Planning and multi-step behaviour

Agent behaviour unfolds over a sequence. Each intermediate observation can change the next decision, and individually reasonable steps can combine into an unsafe outcome. Traceability should preserve the relationship between plan, selected capability, proposed action and result.

Tools, MCP and external services

Tools convert generated intent into operations against local or remote systems. Strong authentication, least privilege, allowlisted capabilities, parameter validation and server trust remain foundational. See MCP security for the connection and tool boundary.

Commands, packages and local execution

Coding agents and local assistants may create shell commands, modify files, install packages or start processes. These actions can be evaluated as structured security objects, including action type, target, applicable policy and decision before execution, where enforcement is supported.

Secrets and sensitive resources

Agents often operate near credentials, proprietary code and customer data. Security architecture should minimise available secrets, separate duties, constrain destinations and avoid including unnecessary sensitive values in prompts or telemetry.

Runtime controls and layered security

Identity answers who the agent is. Authorisation constrains accessible capabilities. Model and prompt defences reduce unsafe generation. Runtime controls address the concrete action approaching execution. Together, these controls give stronger coverage than treating the model as the only boundary.

Explore runtime security foundations and the dedicated guide to AI agent runtime security.

// Request a demo

See Aegis decide on your agents.

We'll walk through supported agents, policies and decision records in the console, shaped around the agents your teams use.

See Aegis in action

Watch Aegis see what your AI agents do, apply your policy, and keep the record behind each decision.

Get a demo now