Category Deep-Dive · AI Security Architecture · Dr. Deepanjan Saha, CAISO

AI Security Architecture:
The Complete Enterprise Blueprint

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.

01The Six Architecture Patterns (Compared)

Every enterprise AI security posture is one of six shapes. Five of them fail the same way: they measure a moment, not the system.

PatternWhat it isWhere it breaksResidual risk
Single guardrailOne LLM or rule filter on the output pathOne bypass = total bypass; 18–34% end-to-end evasion on modern attack catalogsNot measured
Stacked filters3–5 serial filters, each catching its nicheFilters fail in correlation (same model family, same blind spot); the stack is nearly as weak as its weakest filterNot measured
Periodic red teamQuarterly jailbreak sessions, ad hocCatalog ages in weeks; what you tested in Q1 is not what Q3 attackers runPoint-in-time only
Annual pentestBig external test, report delivered40%+ drift between tests; the report is a photo, not a controlPoint-in-time only
Zero-trust agenticTool gating, least-privilege grants on the MCP/agent planeCovers the action plane, leaves the context/retrieval plane wide openPlane-level only
Continuous multiplicativeSix independent layers, each measured; residual risk = ∏ P(miss); release gate with a hard capWeak bands are surfaced, mutated monthly, and gated — the math cannot be overridden by a checkboxMeasured, 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.

02The Six-Layer Model

The governing law is one line:

Residual Risk = P(L1 miss) × P(L2 miss) × P(L3 miss) × P(L4 miss) × P(L5 miss) × P(L6 miss)
LayerPlaneOwns these attack classes
L1Perimeter — normalize, decode-then-filter, control-token scrub, directive detectionDirect jailbreaks, multi-turn prompt manipulation, encoding smuggling
L2Context & system-prompt isolation — trust-tiered retrieval, cryptographic separationIndirect injection: RAG, tools, web, email, multimodal payloads
L3Tool-call authorization — signed manifests, capability-union grants, JSON-RPC gating, kill-switchAgentic escalation, MCP supply chain, sandbox escape, replay
L4Vector & memory integrity — cosine-poisoning detection, provenance attestationVector poisoning, persistent memory backdoors, cross-tenant retrieval bleed
L5Output & action gating — secret-free prompts, PII/secret redaction, egress allowlists, budgetsExfiltration, downstream-action abuse, economic DoS
L6Adversarial meta-loop + release gate — 100-attack catalog, monthly mutation, G1–G8 checksEval-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.

03The Standards Your Board Will Ask For

StandardRole 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 ATLASTechnique taxonomy: catalog rows carry ATLAS technique IDs, so detections are citable and comparable
ISO/IEC 42001The AI management system the architecture plugs into for audit
EU AI Act Article 15Adversarial robustness documentation requirement — the measured catch rates satisfy it natively

04The 90-Day Roadmap (Map → Instrument → Gate → Mastery)

  1. Weeks 0–2 · Map. Inventory every model, retrieval path, tool grant, memory store, and release boundary. The map is the attack-surface census; anything unlisted is assumed hostile by construction.
  2. Weeks 2–6 · Instrument. Stand up the six layers; wire a versioned 100-attack catalog into CI; per-layer catch rates become standing telemetry from day one.
  3. Week 6 · Gate. G1–G8 live: the release pipeline fails on instrumentation error, missing measurement, untested kill-switch, or residual risk above cap. Structural — a bad release cannot merge.
  4. Continuous · Mastery. The meta-loop mutates the catalog monthly; the weakest band is always visible and always gets the next sprint. Residual risk is reported to the board as a number with a trend line, quarterly.

05Build, Buy, or Engage?

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.

Chief architect engagement — AI security architecture, end to end

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.

06FAQ

What is AI security architecture?

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?"

How many layers should an AI security architecture have?

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.

What is residual risk in AI security, and how is it computed?

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.

Is defense-in-depth for AI the same as network defense-in-depth?

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.

How often should an AI attack catalog be updated?

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.

What does "the gate as code" mean in practice?

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.

DR. DEEPANJAN SAHA · CHIEF AI SECURITY RED TEAM PRINCIPAL & CHIEF CYBERSECURITY ARCHITECT · EST. 2010 · 47+ CVEs · 200+ PENTESTS · 12 PATENTS