Skip to content
IOmergent

AI Security Reference Architectures

How AI reaches a model, takes action and ships to your customers, in eleven diagrammed models from a single API key to an enterprise control plane.

Most companies already run more AI than they govern. In Verizon's 2026 Data Breach Investigations Report, 45% of employees regularly use AI on their corporate devices, up from 15%, and 67% of users reach it through non-corporate accounts.

TRACK AModel accessTRACK BAgent runtimesTRACK CAI you shipA1 Direct to Provider: One API key, straight to the vendor.A1Directone key, no visibilityA2 Workforce AI Apps: Employees using AI chat apps and the AI inside their SaaS.A2Workforce AIchat apps and SaaS AIA3 Gateway and Router: One choke point for keys, cost, routing and inspection.A3Gateway & Routerone choke pointA4 In-Boundary Inference: Inference stays inside your cloud or cluster.A4In-Boundaryinference in your cloudB1 Employee AI Agents: Agents that act with one employee's access, inside your AI tenant or outside it.B1Employee Agentsan employee's accessB2 Vendor-Run Agents: Agents a vendor runs with its own access to your data and systems.B2Vendor-RunAI SOC and SRE agentsB3 Agents You Build: Agents and AI workflows you run, with governed tool access.B3Agents You Buildworkflows and custom agentsB4 Developer AI: AI that writes, reviews and ships code.B4Developer AIcoding agents and CIMODELSModel providersfrontier, cloud, self-hostedTOOLSTools & dataSaaS, APIs, cloudC1 Customer Agents on Your API: Your customers' AI agents calling your product.C1Customer agentsagents on your APIC2 AI Features in Your Product: AI your customers use inside your product.C2Product AIAI in your productCUSTOMERSYour customerstheir users and agentsT Enterprise Reference: Every track under one control plane, from vendor tenants to the AI you ship.T · TARGET STATEEnterprise Reference: every track under one control plane, from vendor tenants to the AI you shipCOMBINEDTarget stateLESS CONTROLMORE CONTROL
FlowsPrompt / responseTool callIdentity / credentialTelemetryUnsafe pathBlocked
BoundariesYour boundaryThird party

Start here

Most companies need two or three of these models, not all eleven. Find the rows that describe you and open those models first. Setup times assume a team of two to four with executive cover.

Never skip, even for speed

  • No long-lived prod credentials where an agent can read them
  • No long-lived personal access tokens to source code or sensitive SaaS
  • Human review before code ships to production or any irreversible action
  • Scoped, short-lived tokens for tool and repo access
  • Spend limits on every model project or workspace
  • Some form of logging, even if it is just a bucket

Track A: Model access

How prompts reach a model. Ordered from least to most control.

One API key, straight to the vendor.

Control: LowHours to 2 wks

Fits: Seed or Series A teams moving fast.

Top risks

  • Keys copied across projects and laptops
  • No inspection of what data leaves
  • Shared keys hide who spent what
Diagram, data flow and rollout

Employees using AI chat apps and the AI inside their SaaS.

Control: Low to MedDays to 3 mos

Fits: Every company.

Top risks

  • Sensitive data pasted into personal accounts
  • Shadow AI tools with unknown data terms
  • AI features switched on by default in existing SaaS

2 variants: Chat apps · AI inside your SaaS

Diagram, data flow and rollout

One choke point for keys, cost, routing and inspection.

Control: Med to Med-HighDays to 6 wks

Fits: Series B to mid-market with several teams using AI.

Top risks

  • Gateway outage stops all AI traffic
  • Gateway logs hold sensitive prompts
  • Bypass if teams keep direct keys

2 variants: Self-hosted · Managed or aggregator

Diagram, data flow and rollout

Inference stays inside your cloud or cluster.

Control: High to Highest2 wks to 4 mos

Fits: Regulated, residency-bound or IP-sensitive orgs.

Top risks

  • Model catalogs differ by cloud
  • Invocation logging off by default, with gaps on newer endpoints
  • Malicious or backdoored open weights

2 variants: Managed cloud AI · Self-hosted open weights

Diagram, data flow and rollout

Track B: Agent runtimes

How AI takes action. Ordered from least to most control.

Agents that act with one employee's access, inside your AI tenant or outside it.

Control: Low to MedDays to 8 wks

Fits: Every company.

Top risks

  • Instructions hidden in email, invites or web pages steer the agent
  • The agent sends, shares or deletes as the user
  • Broad OAuth scopes granted to third-party apps

2 variants: In your AI tenant · Outside your tenant

Diagram, data flow and rollout

Agents a vendor runs with its own access to your data and systems.

Control: Med1 to 6 wks

Fits: Companies that buy an AI SOC analyst or an AI SRE or on-call agent.

Top risks

  • Stolen vendor tokens reach every connected system
  • Write scopes granted for read-only work
  • Attacker-written log data steers the analyst
Diagram, data flow and rollout

Agents and AI workflows you run, with governed tool access.

Control: Med to HighDays to 6 mos

Fits: Companies building agents or AI workflows that take actions, from an ops team's n8n flows to product engineering's custom agents.

Top risks

  • One credential store holding tokens for everything
  • Internet-exposed, under-patched workflow editors
  • Excessive agency from broad tool scopes

2 variants: Low-code workflow · Custom agents

Diagram, data flow and rollout

AI that writes, reviews and ships code.

Control: Med to HighDays to 4 mos

Fits: Engineering teams using AI across the SDLC.

Top risks

  • Injection via issues, READMEs and dependencies
  • Malicious MCP servers, extensions, skills and rules files
  • Secrets exposed to fork or untrusted CI runs

2 variants: Attended and CI · Autonomous fleet

Diagram, data flow and rollout

Track C: AI you ship

AI your customers use: their agents calling your product, and AI features inside it. Ordered from least to most control. Both call a Track A model and reuse the same gateways and toolshed.

Your customers' AI agents calling your product.

Control: Med to High2 to 12 wks

Fits: B2B SaaS whose customers connect AI agents to your API or an MCP server you publish.

Top risks

  • Long-lived API keys pasted into agent configs
  • Prompt-injected agents calling your tools
  • Over-broad scopes across tenants
Diagram, data flow and rollout

AI your customers use inside your product.

Control: High4 to 12 wks

Fits: SaaS companies shipping chat, search, summaries or agents to customers.

Top risks

  • One customer's data in another customer's answer
  • Prompt injection from customer-uploaded content
  • Customer data used for training without consent
Diagram, data flow and rollout

Target state

Every track under one control plane.

Every track under one control plane, from vendor tenants to the AI you ship.

Control: Highest6 to 12 mos

Fits: Companies of about 200 or more with dedicated security or platform staff.

Top risks

  • Complexity slows adoption and drives shadow AI
  • Misclassified data routed to the wrong tier
  • Developer tooling outside the control plane
Diagram, data flow and rollout

Reference

Comparison, the fast path guide, other frameworks and vendors by category.

Compare the models

Sorted by control, across all three tracks. The dots are the nine building blocks that recur across the models: build or buy each one once and every runtime reuses it.

IDModelControlGatewayToolshedIdentitySecretsSandboxTelemetryApprovalInventoryEndpoint
A1Direct to ProviderLowAI gateway: not usedToolshed / MCP gateway: not usedIdentity (SSO, workload, agent ID, OBO): recommendedSecrets manager: recommendedSandboxed execution: not usedTelemetry to SIEM: recommendedHuman approval gate: not usedAI inventory and posture: not usedEndpoints (MDM + EDR): recommended
A2Workforce AI AppsChat apps · AI inside your SaaSLow to MedAI gateway: not usedToolshed / MCP gateway: not usedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: not usedSandboxed execution: not usedTelemetry to SIEM: recommendedHuman approval gate: not usedAI inventory and posture: coreEndpoints (MDM + EDR): core
B1Employee AI AgentsIn your AI tenant · Outside your tenantLow to MedAI gateway: not usedToolshed / MCP gateway: recommendedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: recommendedSandboxed execution: recommendedTelemetry to SIEM: coreHuman approval gate: provided by the vendorAI inventory and posture: coreEndpoints (MDM + EDR): core
A3Gateway and RouterSelf-hosted · Managed or aggregatorMed to Med-HighAI gateway: coreToolshed / MCP gateway: not usedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: not usedTelemetry to SIEM: coreHuman approval gate: not usedAI inventory and posture: recommendedEndpoints (MDM + EDR): not used
B2Vendor-Run AgentsMedAI gateway: not usedToolshed / MCP gateway: not usedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: not usedTelemetry to SIEM: coreHuman approval gate: coreAI inventory and posture: coreEndpoints (MDM + EDR): not used
C1Customer Agents on Your APIMed to HighAI gateway: not usedToolshed / MCP gateway: recommendedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: not usedTelemetry to SIEM: coreHuman approval gate: recommendedAI inventory and posture: recommendedEndpoints (MDM + EDR): not used
B3Agents You BuildLow-code workflow · Custom agentsMed to HighAI gateway: coreToolshed / MCP gateway: coreIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: coreTelemetry to SIEM: coreHuman approval gate: coreAI inventory and posture: coreEndpoints (MDM + EDR): not used
B4Developer AIAttended and CI · Autonomous fleetMed to HighAI gateway: coreToolshed / MCP gateway: coreIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: coreTelemetry to SIEM: coreHuman approval gate: coreAI inventory and posture: coreEndpoints (MDM + EDR): core
C2AI Features in Your ProductHighAI gateway: coreToolshed / MCP gateway: recommendedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: recommendedTelemetry to SIEM: coreHuman approval gate: recommendedAI inventory and posture: recommendedEndpoints (MDM + EDR): not used
A4In-Boundary InferenceManaged cloud AI · Self-hosted open weightsHigh to HighestAI gateway: recommendedToolshed / MCP gateway: not usedIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: recommendedSandboxed execution: not usedTelemetry to SIEM: coreHuman approval gate: not usedAI inventory and posture: recommendedEndpoints (MDM + EDR): not used
TEnterprise ReferenceHighestAI gateway: coreToolshed / MCP gateway: coreIdentity (SSO, workload, agent ID, OBO): coreSecrets manager: coreSandboxed execution: coreTelemetry to SIEM: coreHuman approval gate: coreAI inventory and posture: coreEndpoints (MDM + EDR): core
Core to the modelRecommendedProvided by the vendor

Fast path for risk takers

Five places a team can cut corners and still defend the decision. On each model's page, the fast path overlay marks which components in the diagram are safe to defer, which can be simplified, and which are load bearing. The never skip list above still applies.

  1. Use a managed gateway instead of self-hosting.Cloudflare AI Gateway, Prisma AIRS AI Gateway, or provider project keys with spend caps get most of A3 in a day.You lose: one more vendor in the data path.
  2. Defer prompt DLP and guardrails.Rely on zero-data-retention or enterprise terms, plus a written "what data can go in" policy.You lose: catching accidental PII or secrets in prompts.
  3. Use a static tool allowlist before a policy engine.Hardcode which tools each agent can call and start read-only. Add OPA or Cedar past a handful of agents.You lose: fine-grained, context-aware decisions.
  4. Send logs to a bucket, not the SIEM.Immutable storage with retention now, detections later.You lose: real-time alerting. You keep forensics.
  5. Use persistent dev containers instead of ephemeral sandboxes.Only with no prod credentials inside and an egress allowlist.You lose: a clean slate after a compromised session.
KEEPload bearing SIMPLIFYlighter option is fine DEFERadd later

How these models map to other frameworks

Where each model sits on the AWS scoping matrices and the OWASP LLM and Agentic Top 10.

Show the AWS and OWASP mapping

The AWS Generative AI Security Scoping Matrix runs from scope 1 (consumer apps) to scope 5 (models you train yourself), which none of these models cover. The AWS Agentic AI Security Scoping Matrix runs from no agency to full agency, which none of these models recommend. The OWASP column lists the top risks from the LLM Top 10 (2026) and the Agentic Top 10 that each model's controls address.

IDModelAWS GenAI scopeAWS agentic scopeMain OWASP risks
A1Direct to Provider3No agencyLLM02 LLM06
A2Workforce AI Apps1 and 2No agency to supervised (AI browsers, suite agents)LLM01 LLM02 ASI02
A3Gateway and Router3No agencyLLM01 LLM02 LLM04 LLM06
A4In-Boundary Inference3 and 4No agencyLLM02 LLM04 LLM05
B1Employee AI Agents1 and 2Prescribed (user approves) to supervised; on unmanaged devices only consent and token policy applyASI01 ASI03 ASI04 ASI06 ASI09
B2Vendor-Run Agents2Prescribed (analyst approves actions) to supervisedASI01 ASI03 ASI04
B3Agents You Build3Prescribed to supervisedASI01 ASI02 ASI03
B4Developer AI2 and 3Prescribed (attended) to supervised (fleet)ASI01 ASI04 ASI05
C1Customer Agents on Your API3Prescribed (out-of-band confirm)ASI02 ASI03 ASI09
C2AI Features in Your Product3 and 4No agency to prescribedLLM01 LLM02 LLM09
TEnterprise Reference1 to 4Prescribed to supervisedLLM01 LLM02 ASI01 ASI02 ASI03

ASI01 Agent Goal HijackASI02 Tool Misuse and ExploitationASI03 Identity and Privilege AbuseASI04 Agentic Supply Chain VulnerabilitiesASI05 Unexpected Code ExecutionASI06 Memory and Context PoisoningASI09 Human-Agent Trust ExploitationLLM01 Prompt InjectionLLM02 Sensitive Information DisclosureLLM04 Supply ChainLLM05 Data and Model PoisoningLLM06 Unbounded ConsumptionLLM09 Vector and Embedding Weaknesses

Above all eleven sits the governance layer: the NIST AI RMF for structure, ISO 42001 for certification, and MITRE ATLAS for red teaming. Our AI governance cheatsheet covers those, plus the AI laws and their dates.

Find your target AI architecture in one call

Bring the AI tools your teams use today and the data they touch. In a 30-minute call a CISO maps you to these models and names the controls to add first. No sales pitch.

Talk to a CISO