AI Security

AI agent security guides

Runtime controls, enforcement architectures, and operational guidance for production AI agents.

What these guides cover

AI agent security governs what an agent may do while a production workflow is running. It extends beyond model output filtering because an unsafe outcome can emerge from a valid tool call, a compromised data source, a dangerous action sequence, or authority that is technically valid but inappropriate for the current task. Runtime protection evaluates identity, tool arguments, target resources, prior steps, sensitive data, and accumulated cost at boundaries where the application can still block or restrict an operation. Architecture matters because proxies, AI gateways, in-code checks, and supervisory agents observe different parts of the workflow and fail in different ways.

Risks

  • Unauthorized tools and excessive agency
  • Direct, indirect, and stored prompt injection
  • Unsafe multi-step action sequences
  • Sensitive-data leakage and uncontrolled cost

Control priorities

  • Deterministic checks immediately before side effects
  • Trust labels for user, retrieved, and tool data
  • Sequence, budget, and approval policies
  • Layered controls with explicit failure behavior

Recommended reading order

Read the runtime security guide first for the risks and control model. Follow with the architecture comparison to decide which checks belong in application code, a proxy, an AI gateway, or a supervisory security agent.

Guides in this collection