AI Security reference architecture
AI security architecture
A security layer between applications and models covering prompts, data, agents, MCP and policy.
Design principles
- Treat model input and output as untrusted
- Enforce policy outside the model
- Least privilege for every agent and tool
- Log every AI interaction
Components
| Component | Role |
|---|---|
| AI gateway | Routing, keys, quotas, logging |
| Prompt security | Injection and jailbreak detection |
| Data protection | Classification and redaction |
| Policy engine | Central allow and deny decisions |
More AI Security architectures
MCP security
Identity, authorization, inspection and audit for agents calling tools through Model Context Protocol servers.
View architectureAI agent security
Scoped permissions, approvals and monitoring for autonomous and semi-autonomous agents.
View architectureLLM governance
Inventory, risk tiers, approved providers and review gates for enterprise use of language models.
View architectureAdapt this to your environment
We'll help you apply this pattern to your constraints and existing estate.

