AI security has stopped being a filter purchase and became an architecture discipline. The enterprises winning it in 2026 don't ask "which guardrail should we add?" — they ask which layer owns which attack class, how every layer is measured, and what structurally blocks a release when risk is unacceptable. This page is the working reference: the six architecture patterns compared, the six-layer model that survived 200+ enterprise red team engagements, the standards mapping your board will ask for, and the 90-day route to a live, self-measuring architecture.
Every enterprise AI security posture is one of six shapes. Five of them fail the same way: they measure a moment, not the system.
| Pattern | What it is | Where it breaks | Residual risk |
|---|---|---|---|
| Single guardrail | One LLM or rule filter on the output path | One bypass = total bypass; 18–34% end-to-end evasion on modern attack catalogs | Not measured |
| Stacked filters | 3–5 serial filters, each catching its niche | Filters fail in correlation (same model family, same blind spot); the stack is nearly as weak as its weakest filter | Not measured |
| Periodic red team | Quarterly jailbreak sessions, ad hoc | Catalog ages in weeks; what you tested in Q1 is not what Q3 attackers run | Point-in-time only |
| Annual pentest | Big external test, report delivered | 40%+ drift between tests; the report is a photo, not a control | Point-in-time only |
| Zero-trust agentic | Tool gating, least-privilege grants on the MCP/agent plane | Covers the action plane, leaves the context/retrieval plane wide open | Plane-level only |
| Continuous multiplicative | Six independent layers, each measured; residual risk = ∏ P(miss); release gate with a hard cap | Weak bands are surfaced, mutated monthly, and gated — the math cannot be overridden by a checkbox | Measured, trended, capped at 1% |
The last row is the architecture pattern this page is built around. The other five are not "wrong" — they are partial. The difference is epistemic: they produce opinions about safety; it produces a number with a trend line.
The governing law is one line:
| Layer | Plane | Owns these attack classes |
|---|---|---|
| L1 | Perimeter — normalize, decode-then-filter, control-token scrub, directive detection | Direct jailbreaks, multi-turn prompt manipulation, encoding smuggling |
| L2 | Context & system-prompt isolation — trust-tiered retrieval, cryptographic separation | Indirect injection: RAG, tools, web, email, multimodal payloads |
| L3 | Tool-call authorization — signed manifests, capability-union grants, JSON-RPC gating, kill-switch | Agentic escalation, MCP supply chain, sandbox escape, replay |
| L4 | Vector & memory integrity — cosine-poisoning detection, provenance attestation | Vector poisoning, persistent memory backdoors, cross-tenant retrieval bleed |
| L5 | Output & action gating — secret-free prompts, PII/secret redaction, egress allowlists, budgets | Exfiltration, downstream-action abuse, economic DoS |
| L6 | Adversarial meta-loop + release gate — 100-attack catalog, monthly mutation, G1–G8 checks | Eval-gaming, governance drift, supply-chain update backdoors, the meta-game itself |
Three rules keep the model honest. Independence is the unit of value — layers that fail in correlation nullify the product. Measured catch rates, not brochure claims — every layer's miss probability is measured on a versioned, integrity-checked attack corpus (a 100-attack endgame catalog, every attack with exactly one owner layer). Structural gating — the release check fails automatically if any layer's maturity drops or residual risk crosses the cap. No committee, no checkbox.
At a 42% per-layer miss the product is ~0.55% end-to-end; at 10% it's one-in-a-million. That is the entire argument for architecture over guardrails: the product term is the only math that punishes correlation, and it's the only number a board can hold you to.
| Standard | Role in the architecture |
|---|---|
| NIST AI RMF + Generative AI Profile (AI 600-1) | Governance spine: MAP-MEASURE-MANAGE-TRACE mapped to the six layers |
| OWASP LLM Top 10 (LLM01–LLM10) | Board reporting vocabulary — every layer output is translated into LLM01–LLM10 terms |
| MITRE ATLAS | Technique taxonomy: catalog rows carry ATLAS technique IDs, so detections are citable and comparable |
| ISO/IEC 42001 | The AI management system the architecture plugs into for audit |
| EU AI Act Article 15 | Adversarial robustness documentation requirement — the measured catch rates satisfy it natively |
Build the telemetry and the gate — they're your IP. Buy the commodity detectors — nobody wins on filter quality alone. Engage the adversarial craft: multi-turn injection, tool-chain escalation, vector poisoning, and eval-gaming are specialist skills that in-house teams rarely own end-to-end. The right principal delivers the gate as code, measured catch rates with corpus versions stamped in every report, and no report-only scope. If the quote you're evaluating says "deliverable: PDF," it's the photo, not the system.
Dr. Deepanjan Saha · Chief AI Security Red Team Principal & Chief Cybersecurity Architect (CAISO). 15+ years · 47+ CVEs · 200+ pentests · 12 patents. Deliverable: six instrumented layers, a residual-risk number with a trend line, and the release gate wired into your CI.
The structural design of defenses around an enterprise AI stack — model, data, tools, outputs, and release process — where each defense layer owns specific attack classes, is continuously measured, and feeds a release gate. It replaces "which guardrail?" with "which layer owns this, and what's the measured miss probability?"
Four is the floor; six covers it: perimeter, context isolation, tool authorization, vector/memory integrity, output gating, and the adversarial meta-loop with the release gate. Fewer than four leaves a whole plane unowned — the multiplication law means one missing layer caps your residual risk at that layer's miss rate.
The end-to-end probability that an attack reaches a harmful outcome despite all defenses. Computed as the product of each layer's measured miss probability: 0.42⁶ ≈ 0.55% at a 42% per-layer miss. It's only meaningful when every miss rate is measured on the same versioned attack corpus — which is why the release gate stamps corpus versions in every report.
Same doctrine, different failure mode. Networks degrade gracefully; AI systems fail in correlation — two filters built on the same model family share blind spots, so correlated failures are the norm, not the exception. The architecture fix is independence: each layer must own a distinct failure surface, and G8 structurally fails the release if maturity or residual risk breaches the cap.
Monthly minimum. The meta-loop mutates the catalog — new encodings, new tool surfaces, new model generations shift what bypasses what. A catalog older than one quarter is measuring last season's threat; that's exactly the failure mode periodic red teaming and annual pentests have.
The release check lives in your CI: it fails a build when instrumentation is broken, a layer's measurement is missing, the kill-switch hasn't been test-executed, or residual risk exceeds the cap. Consequence: security posture becomes a build property, not a meeting outcome. You stop asking "is the new model safe?" and start reading a number.