AI Security & Governance Guide
A companion guide · v1.1 · 2026

The Agentic AI Security
& Governance Guide

Ten disciplines for taking an agentic or AI-native product from "it works in the demo" to "it can be trusted with autonomy, data, and money." Threat modeling, zero trust architecture, non-human identity, guardrails, data protection, supply chain integrity, governance operating models, regulatory mapping, adversarial testing, and audit, written for the person who owns the system, not just the person who implements it.

10
Security & governance pillars
8
Core design principles
1
Reference architecture
11
Frameworks mapped
v1.1
August 2026

Contents

Why this exists

Autonomy is a new trust boundary

Security for AI is not application security with an LLM bolted on. Governance for AI is not a compliance checklist attached after launch.

Every prior generation of software had a fixed boundary between "what the system can do" and "what a human decided it should do." Agentic AI collapses that boundary: the system itself decides which tool to call, which data to retrieve, which action to take next, and it does so based on natural-language reasoning that is probabilistic, not deterministic. That single shift is why traditional AppSec, IAM, and compliance programs, built for code that does exactly what it was told, are necessary but not sufficient.

This guide treats security, zero trust, guardrails, and governance as one connected system rather than four separate checklists. A guardrail that isn't backed by an identity boundary is theater. A governance policy that isn't enforced by a runtime control is a document. A compliance mapping that doesn't trace to an actual control is an audit finding waiting to happen. The ten pillars below are ordered the way a system actually needs to be built: understand the threat, establish the trust architecture, give every actor an identity, enforce behavior at runtime, protect the data, secure what you depend on, govern the whole thing operationally, prove it to regulators, test it like an attacker, and keep proving it continuously.

💡 The framing that matters

Treat an AI agent the way you would treat a new employee with root access and no judgment calibration yet: give it the narrowest possible scope, watch everything it does, require approval for anything irreversible, and assume it will occasionally be tricked by a convincing stranger. Every control in this guide is a formalization of that instinct.

First principles

Core Design Principles

Eight tenets that every control in this guide is a specific instance of, use them to judge a control you haven't seen yet

Frameworks and control lists change as the technology and the regulatory landscape evolve. The principles underneath them do not. Any team facing a novel agentic AI design decision not explicitly covered by one of the ten pillars can derive the right answer by applying these eight tenets directly.

1

Zero standing trust

No actor, model output, tool response, delegated identity, or another agent, is trusted by default. Every action is authorized at the moment it happens, against the specific action, not a standing grant.

2

Least privilege by default

Every credential, tool grant, and data scope starts at the narrowest permission that unblocks the task and is widened only with an explicit, logged justification, never provisioned broad "to be safe."

3

Defense in depth

No single control is assumed sufficient on its own. Guardrails, identity scoping, and monitoring overlap deliberately, so one control's failure degrades the system rather than breaching it.

4

Reversibility gates autonomy

The more irreversible an action, the more oversight it requires before it executes. Reversible, low-consequence actions earn more autonomy; irreversible ones never run unsupervised by default.

5

Deterministic enforcement around probabilistic reasoning

Authorization and safety decisions live in code the model cannot argue with, not in prompt instructions the model could be talked out of. The model reasons; a separate, testable layer decides.

6

Evidence over assertion

A control is only as real as the queryable log proving it ran. "We have guardrails" is a claim; a per-session record of every check and its result is evidence, build for the second, always.

7

Assume compromise, design for blast radius

Architecture is built around what happens when a component is fooled, not if. The question for every credential and tool grant is: what is the worst outcome if this exact grant is misused right now.

8

Governance scales with consequence

The amount of process a feature carries is proportional to what it can actually do, not applied uniformly. Heavy governance on trivial features trains teams to route around it; that erodes the whole program.

💡 The decision framing

When a new tool, provider, or regulatory question doesn't map cleanly onto one of the ten pillars, run it through these eight principles instead of guessing. A design that violates zero standing trust or deterministic enforcement is wrong regardless of what any specific checklist says, the checklist just hasn't caught up yet.

System design

Reference Architecture

How the ten pillars fit together as one system, not ten independent checklists

The architecture below is deliberately generic, it applies to a single agent or a multi-agent orchestration, a chatbot or an autonomous workflow. What stays constant is the shape: untrusted content enters through a guardrail before it ever reaches the reasoning core, every action the core wants to take is authorized by a policy engine that sits outside the model's influence, identity and tool execution are scoped and sandboxed, and governance and audit wrap the entire pipeline rather than sitting at either end of it.

GOVERNANCE · risk tiering · policy lifecycle · model inventory (Pillar 07) AUDIT & OBSERVABILITY TRAIL · every box below logs every decision here (Pillar 10) SUPPLY CHAIN INTEGRITY (Pillar 06) RED TEAM & DETECTION FEEDBACK (Pillar 09) User prompts direct instruction channel Retrieved content RAG · web · email indirect channel Tool & agent output peer / subagent responses INPUT GUARDRAILS injection classification · structural separation of data from instructions (Pillar 04) AGENT REASONING CORE the LLM: probabilistic, never the final authority ZERO TRUST POLICY ENGINE authorizes every tool call · PDP/PEP (Pillar 02) Non-Human Identity ephemeral scoped credentials (Pillar 03) Tool Execution sandboxed · network scoped (Pillar 04/06) Data Layer memory · RAG index classification (Pillar 05) tool result → back into context (treated as untrusted) OUTPUT GUARDRAILS PII redaction · groundedness · toxicity (Pillar 04) User / Downstream System receives only what passed every gate above
Deterministic enforcement point Probabilistic component Feedback / untrusted-content loop Wraps the whole pipeline

Three things this diagram is deliberately built to make obvious. First, the reasoning core sits in the middle, not at the top; everything reaching it has already passed a guardrail, and everything it wants to do still has to clear a policy engine that lives outside its own reasoning. Second, tool results looping back into the reasoning core are drawn the same way inbound user content is: as untrusted input, not as validated fact. Third, governance and audit are drawn as bands that wrap the entire pipeline rather than a step at the start or the end; they apply to every box, not to the system as a whole after the fact.

ComponentEnforcesFailure mode if missing
Input / output guardrailsWhat the model is allowed to see and sayPrompt injection succeeds, sensitive data leaks in output
Zero trust policy engineWhat the model is allowed to doA convincing but wrong instruction becomes an authorized action
Non-human identityWho is actually acting, with what scope, for how longA single compromised credential exposes every tool the agent ever touches
Sandboxed tool executionWhat a tool call can reach outside its declared purposeCode execution or a malicious tool escapes into the host environment
Data layer classificationWhat is stored, for how long, and who can retrieve itPII persists in memory or embeddings past its retention justification
Governance bandWhich risk tier a feature sits in and what oversight it requiresA high-consequence feature ships with low-consequence review
Audit bandWhether every control above can be proven to have runAn incident or an audit finds claims with no evidence behind them
01 Adversarial model

Threat Landscape & Attack Surface

What actually breaks in agentic systems, mapped to the frameworks security teams already use

An agentic AI system has a larger and stranger attack surface than a traditional application because natural language is both the interface and, when unguarded, the control plane. Anything that can place text into the model's context, a user, a retrieved document, a tool result, another agent, a webpage, is a potential instruction channel. Threat modeling for agentic systems has to account for this before it accounts for anything else.

The agentic attack surface, layer by layer

LayerAttack surfaceRepresentative threat
InputUser prompts, uploaded files, voice/image inputDirect prompt injection, jailbreak, malicious file payloads
ContextRAG documents, web pages, emails, tool outputs pulled into the promptIndirect prompt injection embedded in retrieved content
ReasoningSystem prompt, chain-of-thought, planning stateSystem prompt extraction, goal hijacking, reasoning manipulation
ToolsFunction calls, APIs, code execution, file system accessExcessive agency, unsafe tool invocation, argument injection
MemorySession state, vector stores, long-term memory, fine-tuning dataMemory poisoning, persistent backdoor via stored context
IdentityAgent credentials, delegated user permissions, inter-agent trustPrivilege escalation, confused deputy, credential exposure
OrchestrationMulti-agent messaging, subagent spawning, handoffsAgent-to-agent injection, cascading compromise, rogue subagent
Supply chainBase models, fine-tunes, plugins, MCP servers, third-party toolsModel backdoors, malicious tool packages, data poisoning
OutputGenerated text, code, actions taken in external systemsData exfiltration, insecure code generation, unsafe action execution

OWASP and MITRE: the two frameworks worth learning by heart

Two reference taxonomies do most of the work of structuring an agentic threat model. Neither replaces the other.

OWASP Top 10 for LLM Applications + Agentic AI extensions

The agentic-specific extension to this list adds threats unique to systems that act, not just respond: goal manipulation (an attacker redirects the agent's objective mid-task), tool misuse (a legitimate tool invoked with an attacker's intent), multi-agent trust exploitation (a compromised or malicious agent poisons others in an orchestration), identity spoofing between agents, and human-in-the-loop bypass (an agent structures its request so an approver rubber-stamps something they would not have approved if fully informed).

MITRE ATLAS: the adversary's kill chain

Where OWASP catalogs vulnerability classes, MITRE ATLAS (Adversarial Threat Landscape for Artificial-Intelligence Systems) maps the attacker's actual sequence of operations, mirroring MITRE ATT&CK's tactic structure: reconnaissance of the model and its training data, resource development (building adversarial datasets or injection payloads), initial access (via prompt or poisoned input), ML model access, execution, persistence (memory or fine-tune poisoning that survives across sessions), exfiltration, and impact. Using ATLAS alongside OWASP gives a threat model both a taxonomy of weaknesses and a narrative of how those weaknesses get chained into an actual breach, which is what a red team exercise and an incident response runbook both need.

⚠ The confused deputy problem

The highest-consequence agentic failure mode is not the model saying something wrong, it is the model doing something wrong with permissions a human legitimately granted it. An agent with a user's OAuth token and a "send email" tool does not need to be jailbroken to cause damage; it only needs to be convinced, via an indirect injection buried in a document it was asked to summarize, that sending a specific email is part of the task. The agent acts entirely within its granted authority. This is why identity and authorization design (Pillar 03) matters as much as content filtering (Pillar 04): a guardrail that only inspects text will never catch an authorized action taken for the wrong reason.

Building the threat model

Diagram the actual data and control flow.

Every source of untrusted text that reaches the model's context, every tool the agent can invoke, every credential it holds, and every system it can write to. Most threat models fail because they diagram the happy path, not the trust boundaries.

Classify each tool by reversibility and blast radius.

A read-only search tool and a "transfer funds" tool are not the same risk category and must not share an approval path.

Map each attack surface layer to OWASP and ATLAS entries.

Forces explicit answers to "what happens if this specific input is adversarial" rather than a generic "we have guardrails."

Assign a control owner per threat, not per system.

Prompt injection defense, output sanitization, and identity scoping are usually owned by different teams. An unowned threat is an unmitigated one.

Re-run the model on every new tool, subagent, or data source.

Threat models for agentic systems go stale the moment a new tool is added, treat tool onboarding as a security review gate, not a config change.

💡 The decision framing

The question that should open every agentic feature design review is not "what can this agent do for the user?" It is "what is the worst thing this agent could be tricked into doing, and who would have to approve it first?" A threat model that cannot answer that question concretely for every tool the agent holds is not a threat model: it is a feature list.

02 Trust architecture

Zero Trust Architecture for Agentic Systems

Never trust a model's output, a tool's response, or another agent's claim by default; verify every time

Zero trust in traditional infrastructure means no implicit trust based on network location: every request is authenticated and authorized regardless of where it originates. Agentic AI needs the same posture applied to a new set of actors that classical zero trust never anticipated: the model itself, the tools it calls, the content it retrieves, and the other agents it talks to. None of these should be implicitly trusted just because they are "inside" the AI system's boundary.

The zero trust principles, restated for agents

NIST 800-207 principleAgentic system translation
Every data source and computing service is a resourceEvery tool, API, and data store the agent can reach is a resource requiring its own access decision, not a blanket grant because "the agent needs it to work"
Communication is secured regardless of network locationModel-to-tool and agent-to-agent calls are authenticated and encrypted even when both run inside the same cluster or process
Access is granted per-session, not per-perimeterA tool grant is scoped to one task or session, not to the agent's identity permanently; re-authorize on the next session
Access decisions are dynamic, using as many signals as possibleAuthorization considers the specific action, the data involved, the user on whose behalf the agent acts, and real-time risk signals, not just "is this a valid agent credential"
Integrity and security posture of all assets is continuously monitoredEvery model, prompt version, and tool is monitored for drift, compromise, or anomalous behavior, not verified once at deployment
Strict enforcement before access is grantedAuthorization is enforced before a tool executes, not validated after the fact by reviewing logs

Trust boundaries unique to agentic AI

A zero trust architecture for an agent has to draw boundaries that don't exist in traditional software:

Reference architecture: policy enforcement around the agent, not inside it

The most durable pattern is to keep authorization logic out of the model entirely. The model reasons; a deterministic policy layer decides whether an action is allowed to execute. This mirrors the classic zero trust split between a policy decision point (PDP) and a policy enforcement point (PEP), applied at the tool-call boundary.

// Zero trust enforcement sits between the agent's decision and the tool's execution
async function invokeTool(agentContext, toolCall) {
  // 1. Authenticate: is this a legitimate agent session, not a spoofed call?
  const identity = await verifyAgentIdentity(agentContext.sessionToken);

  // 2. Authorize: does this identity, for this task, have this exact permission?
  const decision = await policyEngine.evaluate({
    subject:   identity,              // which agent / on whose behalf
    action:    toolCall.name,         // exact tool, not "agent has tool access"
    resource:  toolCall.args.target,  // exact record, file, or endpoint
    context:   { sessionRisk: agentContext.riskScore, taskScope: agentContext.scope }
  });

  if (!decision.allow) {
    return { error: 'DENIED', reason: decision.reason, escalate: decision.requiresHuman };
  }

  // 3. Enforce reversibility gate: irreversible actions always pause here
  if (toolCall.reversibility === 'irreversible' && !agentContext.humanApproved) {
    return await requestHumanApproval(toolCall, identity);
  }

  // 4. Execute with a scoped, short-lived credential, never the agent's standing identity
  const scopedCredential = await issueEphemeralCredential(decision.grant);
  return executeTool(toolCall, scopedCredential);
}
📊 Why "the agent has an API key" fails at scale

A single standing credential shared across every tool call collapses zero trust into perimeter trust: if the agent's reasoning is manipulated once, every tool it holds is compromised for the rest of the session. Ephemeral, per-call, narrowly scoped credentials mean a successful injection only exposes the blast radius of one action, not the agent's entire permission set.

💡 The decision framing

Zero trust for agentic AI is not a network diagram exercise; it is the decision to never let the model's own claims (about what it should do, who it's acting for, or what a tool told it) be the sole basis for an authorization decision. Every trust boundary in this pillar exists because natural language is trivially spoofable in a way that a signed JWT is not. Build the policy layer assuming the model will eventually be fooled, because it will.

03 Access control

Non-Human Identity & Access Management

Agents are a new class of identity: service accounts that reason, delegate, and act on their own inferred intent

Traditional IAM has two identity classes: human users and service accounts. Agentic AI introduces a third that behaves like neither, an identity that acts autonomously like a service account but makes context-dependent, non-deterministic decisions like a human. Treating an agent's identity as "just another service account" under-scopes it; treating it as "just another user" over-trusts it. It needs its own model.

The agent identity lifecycle

StageControl
ProvisioningEvery agent gets a distinct, registered identity, never a shared credential across agent instances or environments
ScopingPermissions are defined per capability the agent needs for its specific task, not per system it happens to touch
DelegationWhen acting on behalf of a user, the agent receives a delegated, downscoped token, never the user's full session credential
Session bindingPermissions are issued per session or per task, with explicit expiry, not standing access that persists across unrelated sessions
RotationCredentials are short-lived and automatically rotated; a leaked agent credential should be worthless within minutes
DeprovisioningRetired agents, deprecated tool integrations, and abandoned prototypes have their credentials revoked on a tracked schedule, not left active indefinitely

Delegated authorization: OAuth scopes done narrowly

When an agent acts for a user, reading their calendar, drafting on their behalf, querying their account, the correct pattern is delegated, scoped OAuth, not credential sharing. The scope granted should describe the narrowest action set the task requires, not the broadest set the integration supports.

Anti-patternZero trust pattern
Agent stores the user's full OAuth token and reuses it for every taskAgent requests a fresh, task-scoped token per session via a token exchange flow
Scope requested: mail.readwrite for a summarization featureScope requested: mail.read only, with write access requested separately and only when a send action is actually initiated
Token has no expiry or a multi-month lifetimeToken expires at end of session or after a defined idle window, whichever is shorter
One integration credential shared across all users of a multi-tenant productPer-tenant, per-user credential issuance with tenant isolation enforced at the token layer, not just the application layer

Least privilege for tool grants

Least privilege in agentic systems has an extra dimension beyond data access: action privilege. A tool grant should specify not just which system the agent can reach, but which operations within that system, on which subset of records, and under what conditions.

✓ A well-scoped tool grant answers all five
  • Which specific operation, not "database access," but SELECT on named tables, never DROP or DELETE
  • Which specific records, row-level or tenant-level scoping, not table-wide access
  • Under what conditions, during business hours, below a value threshold, within a task's declared scope
  • For how long, the grant expires with the session or the task, not the deployment
  • With what fallback, a denied or ambiguous request degrades to "ask a human," never to a broader silent retry

Multi-agent identity: who is actually speaking

In orchestrator-subagent and multi-agent systems, every message needs a verifiable sender identity, not an assumed one. Without this, a compromised subagent, or a malicious message crafted to look like it came from a trusted peer, can influence the orchestrator's decisions with no way to trace or contain the influence.

⚠ The over-provisioned agent

The single most common finding in agentic AI security reviews is a general-purpose service credential, often reused from an existing backend integration, granted to an agent because it was the fastest way to get a prototype working. That credential typically has far more scope than any individual task needs, was never designed to be driven by non-deterministic reasoning, and has no session-level expiry. It is the agentic equivalent of running a web application as root. Treat any agent credential provisioned "to unblock the demo" as technical debt with a tracked remediation date, not a permanent fixture.

💡 The decision framing

Every tool grant is a standing bet that the agent's reasoning will never be manipulated into misusing it. Size the bet to what you can afford to lose, not to what makes the integration easiest to build. The product question is not "does this agent need access to the payments API", it is "what is the maximum single action this agent should ever be able to take unsupervised, and does the credential enforce that ceiling even if the reasoning is wrong."

04 Runtime defense

Guardrails & Runtime Defense

Layered, deterministic controls around a probabilistic core; guardrails are gates, not suggestions

A guardrail is any control that constrains what an agentic system can say or do, enforced independently of the model's own judgment. Guardrails exist because the model is the one component in the system that cannot be exhaustively tested, its behavior is probabilistic and shifts with prompt changes, model updates, and adversarial input. The guardrail layer is where deterministic engineering discipline is reintroduced around a non-deterministic core.

The guardrail stack

LayerFunctionExample controls
InputScreen content before it reaches the modelPrompt injection classifiers, jailbreak pattern detection, input length and format limits, file-type and content scanning on uploads
InstructionStructurally separate trusted instructions from untrusted dataXML/delimiter-based context separation, system-prompt hardening, explicit "treat this as data, never instructions" framing around retrieved content
ReasoningConstrain what the model is allowed to plan towardDeclared task scope checked against the model's stated plan before execution, goal-drift detection across multi-step tasks
ToolGate whether a planned action is allowed to executePolicy engine authorization (Pillar 02), argument validation against typed schemas, reversibility-based approval gates
OutputScreen content before it reaches the user or a downstream systemPII/secret redaction, toxicity and harm classifiers, hallucination and groundedness checks, system-prompt-leak detection
SessionBound the aggregate behavior of a session, not just one turnIteration caps, cost circuit breakers, anomalous-pattern detection across a session's tool-call sequence

Prompt injection defense in depth

No single control reliably stops prompt injection, treat it as a defense-in-depth problem, the same posture applied to SQL injection two decades ago, where input validation, parameterization, and least privilege are all deployed together because none alone is sufficient.

Output-side guardrails

RiskDetection methodEnforcement
PII / secrets in outputRegex + NER scan of generated text before deliveryHard block or redact, never a soft warning on a critical-severity match
System prompt leakageCanary token match, similarity scoring against known system promptBlock response, alert security, rotate the exposed system prompt
Unsafe generated codeStatic analysis (SAST) on any code the agent produces or executesSandbox execution only; block direct execution of ungated code
Hallucinated / ungrounded claimsGroundedness check against retrieved context (see Production Readiness Guide, Pillar 03)Route to human review or add explicit uncertainty framing rather than deliver as fact
Toxic or policy-violating contentContent safety classifier (domain-tuned, not generic)Hard block with a defined refusal message, logged for review

Tool execution sandboxing

Any tool that executes code, runs shell commands, or manipulates the file system on the agent's behalf must run in an isolated, resource-limited environment, never in a process that shares memory, file system, or network access with the orchestrating application.

⚠ Guardrails that only check the final answer

A common architectural mistake is running safety checks only on the model's final text output while leaving intermediate tool calls unguarded. An agent can exfiltrate data, modify a record, or send a message through a tool call mid-session ; actions that never appear in the "final answer" a content filter inspects. Every tool invocation is a guardrail checkpoint in its own right, not just the last message shown to the user.

💡 The decision framing

Guardrails are gates the system cannot bypass, not prompt instructions the model is asked to follow. If a control can be disabled by convincing the model to ignore it, it is a suggestion, not a guardrail. The product decision is which checks live in the deterministic policy layer (outside the model's influence entirely) versus which are acceptable as prompt-level guidance because the consequence of a miss is low. High-consequence actions get deterministic gates. Everything else can use judgment-based controls, but only after that line has been drawn explicitly.

05 Data protection

Data Security, Privacy & Memory Protection

Every prompt is a data transmission event; every memory store is a new place PII can live

Agentic AI multiplies the number of places sensitive data can flow through and rest in: the prompt sent to a third-party model provider, the vector store behind RAG, the session memory that persists across turns, the long-term memory some agents maintain across sessions, and the logs captured for observability. Each is a distinct data protection surface with its own controls.

Data classification for AI pipelines

ClassificationHandling in promptsHandling in memory / logs
Critical Financial account numbers, national IDs, health records, credentialsNever sent to a model provider in raw form, tokenize, redact, or process through a compliant isolated pipelineNever persisted in vector stores, session memory, or plaintext logs
High Names, contact details, precise location, transaction historyRedact or mask before sending unless explicitly required for the task and covered by a data processing agreementEncrypted at rest, retention-limited, access-logged
Medium Behavioral data, preferences, non-identifying usage patternsPermitted with standard encryption in transitStandard retention policy applies
Public / syntheticNo special handling requiredStandard retention policy applies

Protecting the prompt as a data transmission

Memory and RAG-specific risks

RiskWhere it livesControl
Cross-tenant retrieval leakageShared vector index without tenant isolationTenant ID as a mandatory filter on every retrieval query, enforced at the database layer, not just the application layer
Stale PII in long-term memoryPersistent agent memory that outlives its retention justificationTTL on memory records; scheduled purge jobs; explicit user-triggered deletion honored end-to-end
Memory poisoningAn attacker gets false or manipulative content stored in an agent's persistent memoryValidate and provenance-tag anything written to long-term memory; treat memory writes as privileged operations requiring their own authorization check
Embedding inversionVector embeddings that can be partially reconstructed back to source textAvoid embedding raw sensitive fields directly; encrypt vector stores at rest; restrict embedding model access

The right to erasure in a system with memory

If a user's data has flowed into conversation history, a vector store, a fine-tuning dataset, or an agent's long-term memory, a deletion request has to trace through every one of those stores, not just the primary database. This is materially harder for AI systems than for traditional applications because embeddings and fine-tuned weights do not delete cleanly the way a database row does.

Maintain a data lineage map.

Know every store, session cache, vector index, long-term memory, analytics warehouse, fine-tuning dataset, that a given user's data can reach.

Avoid fine-tuning on raw user data where possible.

Prefer RAG or in-context approaches for personalization; a fine-tuned model cannot have a single user's contribution cleanly removed after the fact.

Automate cross-store deletion.

A single deletion request triggers a workflow that purges the user's data from every mapped store, not a manual, easily-missed checklist.

Verify and log completion.

Record deletion completion per store with a timestamp, this is the audit evidence a regulator or a user's legal counsel will ask for.

💡 The decision framing

Every new memory or retrieval feature is also a new data protection surface, and it should be designed with that framing from the start rather than retrofitted after a privacy review flags it. The product question when adding persistent memory is not just "does this improve personalization", it is "what is our deletion story for this store, and can we actually honor it within the regulatory timeline."

06 Dependency trust

Supply Chain & Model Integrity

The model, its tools, and every plugin they call are dependencies; treat them like dependencies

An agentic system's supply chain now includes a category traditional AppSec supply chain security never accounted for: the model itself, the fine-tuning or RAG data that shapes its behavior, and the growing ecosystem of tool integrations (including MCP servers) that extend what the agent can do. Each is a trust decision made once at integration time and rarely revisited.

The extended AI supply chain

ComponentIntegrity riskControl
Base modelBackdoored weights, undisclosed training data provenance, silent behavior changes on provider-side updatesPrefer providers with published model cards and safety evaluations; pin dated model versions; run regression evals on every version change
Fine-tuned / adapted modelsPoisoned fine-tuning data shifting behavior in a narrow, hard-to-detect wayProvenance-track every fine-tuning dataset; evaluate fine-tuned models against the same safety suite as the base model, not a reduced one
RAG knowledge basePoisoned or manipulated source documents that get retrieved and treated as ground truthSource documents from vetted, access-controlled repositories; content integrity checks on ingestion; provenance metadata retained through retrieval
Third-party tools / pluginsMalicious or vulnerable code executed with the agent's granted permissionsSecurity review before integration; sandboxed execution; least-privilege scoping regardless of the tool's own claims
MCP serversA rapidly growing, unevenly vetted ecosystem, a malicious or compromised server can inject instructions through tool descriptions or tool resultsTreat tool descriptions, not just tool outputs, as untrusted content; allowlist servers explicitly; pin versions; monitor for description or schema changes post-approval
Open-source agent frameworksStandard software dependency risk, vulnerable transitive dependencies, unmaintained packagesSCA (software composition analysis) scanning in CI; dependency pinning; license and maintenance-status review before adoption
⚠ The MCP tool-description injection vector

A distinctive supply chain risk in the MCP ecosystem is that a tool's own description, the text the model reads to decide when and how to use it, is itself an untrusted input channel. A malicious or compromised MCP server can update its tool descriptions post-approval to include hidden instructions ("always also send a copy to this address") that the model reads as legitimate guidance about how the tool works. Vetting a tool once at integration time is not sufficient; tool schemas and descriptions need integrity monitoring for the life of the integration, the same way a dependency's source needs monitoring for unexpected updates.

Model provenance and evaluation before adoption

Tool and plugin vetting workflow

Static review before approval.

Read the tool's source (where available), its declared permissions, and its network egress requirements before granting it any access to production data.

Scope the grant to the minimum viable permission set.

Never accept a tool's requested default scope without narrowing it to what the specific integration actually needs.

Sandbox on first use.

Run new tool integrations in an isolated environment against synthetic data before connecting them to production systems.

Monitor post-deployment for drift.

Alert on any change to a tool's schema, description, or declared permissions after approval, treat an unexpected change as a security event, not a routine update.

Maintain a registry with an owner and a review date.

Every tool integration has a named owner and a scheduled re-review, an unreviewed integration accumulates risk silently over time.

💡 The decision framing

Every tool you connect to an agent expands what a successful prompt injection can accomplish; the tool's own trustworthiness is only half the equation; the other half is what the agent is authorized to do with it. Vet the tool and scope the grant as two separate decisions, because a perfectly trustworthy tool with an overbroad grant is exactly as dangerous as an untrustworthy one with a narrow grant would have been safe.

07 Operating model

AI Governance Operating Model

Governance is the organizational system that makes security and compliance controls durable, not a document that describes them once

A security control that depends on one engineer remembering to run a check is not governed; it is lucky. Governance is the operating model that makes controls survive team changes, product pivots, and the pressure to ship fast: clear ownership, a policy lifecycle, risk classification tied to actual controls, and decision rights that don't require escalating every judgment call to the top.

The governance structure

FunctionOwnsTypical home
AI governance board / councilRisk tiering policy, approval of high-risk use cases, escalation path for novel scenariosCross-functional: product, security, legal, data science leadership
Model risk managementModel inventory, risk classification per use case, pre-deployment sign-offRisk / compliance function, with technical input from ML engineering
AI security engineeringThreat modeling, guardrail implementation, red teaming, incident response for AI-specific incidentsSecurity engineering, often a dedicated AI security function at scale
Product / feature ownerAcceptance criteria including safety thresholds, launch decision within governed risk tierProduct management, safety criteria are product requirements, not a separate gate
Data protection / privacyData classification enforcement, DPA review, erasure and residency compliancePrivacy / legal function

Model and use-case risk tiering

Not every AI feature needs the same governance overhead. A risk tiering model, directly informed by frameworks like the EU AI Act's risk categories and NIST AI RMF, lets governance effort scale with actual consequence rather than applying uniform bureaucracy everywhere.

TierCharacteristicsGovernance requirement
Tier 1: High StakesIrreversible actions, financial transactions, health/legal/safety decisions, regulated-sector useGovernance board approval before launch, mandatory human-in-the-loop for irreversible actions, full audit trail, quarterly re-review
Tier 2: ElevatedCustomer-facing autonomous decisions with reversible consequences, access to sensitive dataRisk owner sign-off, documented safety eval thresholds, standard audit logging, semi-annual re-review
Tier 3: StandardInternal tooling, read-only assistance, low-consequence automationTeam-level review against baseline security checklist, standard monitoring
Tier 4: MinimalPurely generative assistance with no external action capability, no sensitive data accessBaseline security checklist only

The policy lifecycle

Draft against a real threat, not a hypothetical.

Every governance policy traces back to a specific risk in the threat model, a policy no one can explain the origin of is the first one that gets ignored under deadline pressure.

Encode as an enforceable control, not just a document.

A policy that says "irreversible actions require approval" is only real once it is a gate in the authorization engine from Pillar 02, the policy and the technical control are the same artifact, reviewed together.

Assign an owner and a review cadence.

Every policy has a named accountable owner and a scheduled review date, an unowned policy is the one that silently becomes wrong as the system evolves.

Version and log every change.

Policy changes are auditable events with a rationale and an approver, the same discipline applied to prompt versioning in production operations.

Re-tier on material change.

A new tool, a new data source, or a new autonomous capability can move a feature into a higher risk tier, re-run the tiering decision, don't assume the original classification still holds.

Model inventory: the artifact regulators and auditors will ask for first

A living inventory of every model, agent, and autonomous workflow in production is the single most load-bearing governance artifact, it is the input to risk tiering, the scope for red teaming, and the first thing an auditor or regulator requests. At minimum it tracks: the model and version in use, the business owner, the risk tier, the data classifications it touches, the tools/permissions it holds, the date of its last safety evaluation, and its current operational status.

⚠ Shadow AI

The fastest-growing governance gap in most organizations is not a failure of the formal AI program; it is the AI usage that never entered it. Teams standing up an agent with a third-party API key, a browser extension with autonomous action capability, or an internal tool wired to an LLM without security or governance review are common, and each is an ungoverned attack surface and an ungoverned compliance liability. A governance program needs a discovery mechanism: network egress monitoring to known model provider endpoints, procurement review of any tool with "AI" or "agent" in its description, not just a policy that assumes all AI usage flows through the sanctioned path.

💡 The decision framing

Governance succeeds when the person under deadline pressure follows the process because it is the fastest path to shipping safely, not because they fear an audit. That means the risk tiering has to be fast and legible for the 90% of features that are Tier 3 or 4, so the governance board's time and the organization's patience are reserved for the small number of decisions that actually carry consequence. A governance model that treats every feature like a Tier 1 decision trains the organization to route around it.

08 Regulatory mapping

Regulatory & Compliance Mapping

The frameworks that will actually be asked about, mapped to the controls already described in this guide

Compliance is not a separate workstream from the security and governance controls already covered, it is the exercise of mapping those controls to the specific evidence a regulation, standard, or auditor requires. Building the controls first and mapping second (rather than treating compliance as a bolt-on checklist) is what makes an audit a formality instead of a fire drill.

Core framework map

FrameworkScopeWhat it actually requires, in practice
NIST AI RMFVoluntary US framework, increasingly a de facto baselineGovern (policy and accountability), Map (context and risk identification), Measure (testing and metrics), Manage (ongoing risk response), which directly mirrors this guide's governance and audit pillars
ISO/IEC 42001Certifiable AI management system standardDocumented AI management system, risk assessment process, defined roles, continuous improvement cycle, the certifiable equivalent of Pillar 07's operating model
ISO/IEC 23894AI risk management guidanceStructured risk identification and treatment specific to AI system characteristics, informs the threat modeling in Pillar 01
EU AI ActBinding regulation, risk-tiered (unacceptable / high / limited / minimal risk)High-risk systems require conformity assessment, technical documentation, risk management system, human oversight design, and post-market monitoring; directly maps to Pillar 07's risk tiering and Pillar 10's audit trail
GDPREU data protection, extraterritorial reach for EU resident dataLawful basis for processing, DPAs with model providers, right to erasure across all data stores (Pillar 05), data residency, Article 22 rights around automated decision-making
SOC 2Trust services criteria audit, common enterprise procurement requirementSecurity, availability, confidentiality controls with evidence, the identity (Pillar 03), guardrail (Pillar 04), and audit (Pillar 10) controls in this guide are the evidence base
Sector-specificHIPAA (health), PCI DSS (payments), SEBI/RBI (Indian financial services), FINRA/SEC (US financial services)Domain-specific data handling, explainability, and human oversight requirements layered on top of the general frameworks above

EU AI Act risk tiers, mapped to this guide

EU AI Act tierExampleRequirementMaps to
Unacceptable riskSocial scoring, manipulative subliminal techniquesProhibited outrightGovernance board must reject at the use-case approval stage (Pillar 07)
High riskCredit scoring, employment decisions, critical infrastructure control, law enforcement toolsConformity assessment, technical documentation, risk management system, human oversight, post-market monitoring, registration in an EU databasePillar 01 (threat model as risk assessment input), Pillar 07 (Tier 1 governance), Pillar 10 (audit trail as technical documentation)
Limited riskChatbots, emotion recognition, deepfakesTransparency obligations, users must know they're interacting with AIGuardrail layer output labeling (Pillar 04)
Minimal riskSpam filters, AI-enabled recommendation featuresNo specific legal obligation beyond general product lawBaseline controls, Tier 3–4 governance (Pillar 07)

Sector deep dive: financial services

Financial services AI deployments, wealth management, credit decisioning, algorithmic trading assistance, face the densest overlapping compliance surface, and the controls in this guide map directly onto its specific demands:

📊 Evidence, not assertion

Every compliance framework above ultimately asks the same underlying question in different vocabulary: can you produce evidence, not just an assertion, that a specific control was operating at a specific point in time? A policy document that says "we require human approval for high-risk actions" is an assertion. A queryable log showing every high-risk action, its approver, and the timestamp is evidence. Build the audit trail in Pillar 10 before the audit is scheduled, not in response to the request for evidence.

💡 The decision framing

Treat compliance mapping as a byproduct of good architecture, not a parallel workstream competing for engineering time. A team that builds the identity, guardrail, and audit controls in this guide because they are good engineering practice will find that 80% of any given compliance framework's requirements are already satisfied, the remaining 20% is documentation and formal sign-off, which is a fraction of the effort compared to retrofitting controls after an audit finding.

09 Verification

Adversarial Testing, Detection & Incident Response

Assume every guardrail will eventually be bypassed; the program that finds it first wins

Every control described so far is a hypothesis about how the system will behave under attack. Red teaming and continuous adversarial testing are how that hypothesis gets tested before an actual adversary tests it for you, and detection plus incident response are what happens when a control fails anyway, because at scale, over time, one eventually will.

AI red teaming: what it covers beyond traditional pentesting

Test categoryWhat it probesExample technique
Direct prompt attacksCan the guardrails be bypassed with adversarial input aloneJailbreak libraries, role-play framing, instruction-override phrasing, encoding tricks (base64, translation, leetspeak)
Indirect injectionCan content the agent retrieves or is asked to process carry a working payloadInjection payloads embedded in documents, emails, web pages, or tool responses the agent is asked to summarize or act on
Excessive agency probingWill the agent take an action beyond its intended scope when socially engineeredMulti-turn conversations that incrementally escalate a request toward an out-of-scope action
Identity and authorization bypassCan the zero trust boundaries from Pillar 02–03 be circumventedAttempting privilege escalation through tool argument manipulation, testing whether scoped credentials actually enforce their declared scope
Data exfiltrationCan the agent be induced to leak sensitive data through its output or a tool callPrompting the agent to encode sensitive data in a URL parameter, image alt text, or a seemingly benign tool call
Multi-agent exploitationCan one compromised agent manipulate others in an orchestrationInjecting instructions into a subagent's output designed to influence the orchestrator's next decision
Supply chain simulationWhat happens if a tool or MCP server behaves maliciouslyStanding up a test tool that returns adversarial content or attempts to escalate its own granted scope

Building the adversarial testing program

Maintain a living adversarial test suite.

Treat it the same as the regression eval suite from production operations, every discovered bypass becomes a permanent regression test, so it can never silently reappear.

Run automated adversarial testing on every guardrail or prompt change.

Manual red teaming alone cannot keep pace with a shipping cadence, automated adversarial suites run in CI, with periodic deeper manual engagements.

Commission independent red teams for Tier 1 systems.

Internal teams develop blind spots about their own system; an external or cross-team red team with no stake in the system's launch timeline finds different failure modes.

Test the full chain, not just the model.

The strongest attacks in practice chain a prompt injection with an over-scoped credential, test the guardrail, identity, and tool layers together, not each in isolation.

Feed findings back into the threat model.

Every successful bypass is new information about the actual attack surface, update Pillar 01's threat model, not just the specific control that failed.

Detection: signals that something is wrong right now

SignalWhat it can indicate
Spike in guardrail rejection rate for a specific user or sessionActive jailbreak or injection attempt in progress
Tool call sequence anomalous versus the agent's typical behavior patternGoal hijacking, excessive agency triggered by a manipulated instruction
Canary token appearing in outputSuccessful system prompt extraction
Authorization denial spike against a specific credentialCompromised credential attempting privilege escalation, or a misconfigured integration
Sudden shift in the model's response style or refusal patternSilent provider-side model update, or a compromised prompt template
Unusual outbound network activity from a code execution sandboxAttempted data exfiltration or sandbox escape

AI-specific incident response

Incident response for agentic AI extends the standard playbook, detect, contain, eradicate, recover, learn, with steps unique to systems that act autonomously and reason non-deterministically.

✓ The agentic incident response checklist
  • Kill switch exists and is tested: any agent or workflow can be disabled instantly without a code deployment
  • Session and credential revocation is immediate: a compromised agent's active tokens can be invalidated mid-session, not just at next issuance
  • Blast radius is queryable: given a compromised session, every action it took and every system it touched can be enumerated from the audit trail within minutes
  • Rollback covers prompt, model version, and tool configuration independently, not just application code
  • Affected users can be identified and notified per the data protection obligations mapped in Pillar 08
  • The specific bypass is converted into a permanent adversarial regression test before the incident is closed
⚠ Silent failure is the default failure mode

An AI system compromised through prompt injection rarely crashes or errors ; it keeps responding fluently while doing the wrong thing, which is why detection instrumentation matters as much as the guardrails themselves. A team that has guardrails but no detection layer discovers a bypass through user complaints or a downstream data breach, not through their own monitoring. Build the detection signals in this pillar before assuming the guardrails in Pillar 04 are sufficient on their own.

💡 The decision framing

The maturity signal to look for is not "we have not had an incident", for a system this new, that is as likely to mean under-detection as it is to mean genuine safety. The signal is "we have a red team that regularly finds new bypasses, and every one of them becomes a permanent regression test within days." A program that never finds anything is not more secure than one that finds and fixes issues constantly, it is usually just not looking hard enough.

10 Continuous assurance

Audit, Assurance & Human Oversight

The evidence layer that turns every prior pillar from a claim into a provable fact

Every control in this guide is only as credible as the evidence that it actually ran, on every relevant request, correctly. This final pillar is the audit and human oversight layer that makes the other nine verifiable, to internal leadership, to auditors, to regulators, and to the organization's own future self trying to reconstruct what happened during an incident.

What the audit trail must capture, per session

RecordWhy it matters
Full input, including retrieved context and tool results injected into the promptReconstructs exactly what the model saw, essential for investigating any disputed or anomalous output
Model and prompt version usedCorrelates behavior to a specific, reproducible configuration, required for both debugging and regulatory evidence
Every tool call: name, arguments, authorization decision, execution resultThe action-level record that a text-only transcript cannot provide, this is what proves what the system actually did, not just what it said
Identity context: which agent, acting on whose delegated authority, under which scopeAnswers "who was responsible", required for both incident response and delegated-authority compliance
Guardrail outcomes: every check run and its result, including passesProves the control operated, not just that it exists, the difference between an assertion and evidence in Pillar 08
Human review and approval eventsEvidence of human oversight for regulatory frameworks requiring it, and the record of who approved what
Final output and its delivery destinationCompletes the record from input to consequence

Human oversight design, not human oversight as an afterthought

"Human in the loop" is frequently stated as a safety property without specifying what the human actually reviews, how much time they have, or whether they have enough context to make a real decision. Effective oversight design is explicit about all three.

Oversight modelWhen it fitsDesign requirement
Human-in-the-loop (pre-action approval)Irreversible or high-consequence actions, Tier 1 use casesApprover sees the full reasoning trace and the specific action, not just a one-line summary; approval fatigue is monitored, a rubber-stamp rate above a defined threshold is itself an incident signal
Human-on-the-loop (real-time monitoring, can intervene)Reversible actions at moderate scale where pre-approval would be operationally infeasibleMonitoring dashboard surfaces anomalies actively, not passively, a human watching a stream of green checkmarks is not effective oversight
Human-after-the-loop (post-hoc audit and sampling)Low-risk, high-volume, reversible actionsSampling rate and review criteria are defined and their results feed back into guardrail tuning, audit without a feedback loop is theater
⚠ Approval fatigue defeats human-in-the-loop

A human asked to approve fifty routine, low-consequence agent actions per day will approve the fifty-first without reading it carefully, regardless of how well-intentioned the review process is. This is a predictable human factors failure, not a discipline problem, and it means human-in-the-loop only works as a safety control when the volume of requests reaching a human is kept low enough for genuine review, which is itself an argument for scoping autonomous action tightly (Pillar 03) so escalations are rare and meaningful rather than frequent and rubber-stamped.

Continuous assurance, not point-in-time certification

A control that was verified correct at launch and never re-verified is a control whose current state is unknown. Continuous assurance treats every pillar in this guide as something to be re-tested on a cadence, not certified once.

100%
Tool call authorization coverage
Every tool invocation passes through the policy engine, no exceptions, no bypass paths for "internal" tools
0
Unowned high-risk credentials
Every Tier 1/2 credential has a named owner and a scheduled review, this is a binary counter, not a trend line
<24h
Time to revoke a compromised credential
From detection to full revocation across every system the credential touched
Quarterly
Red team cadence for Tier 1 systems
Independent adversarial testing, not just automated regression suites
100%
Audit trail completeness
Sampled sessions reconstructable end to end from logs alone, with no gaps in the tool-call or authorization record
Tracked
Model inventory freshness
Every production model, agent, and tool integration has a last-reviewed date within the policy's defined window
💡 The decision framing

The organizations that pass audits without a scramble are the ones where the audit trail was designed as a product requirement from the first line of code, not assembled retroactively when the auditor's request landed. Every pillar in this guide produces evidence as a byproduct of operating correctly, a policy engine that logs every decision, a guardrail that logs every check, an identity system that logs every grant. Audit readiness is not a separate project; it is what falls out of building the first nine pillars with logging treated as a first-class output, not an operational nicety bolted on later.

Appendix

Frameworks Quick Reference

Every framework referenced across the ten pillars, in one table, what it is, what kind of obligation it carries, and where in this guide it does the most work

FrameworkTypePrimary useDoes the most work in
OWASP Top 10 for LLM ApplicationsVulnerability taxonomyNaming and classifying weaknesses, injection, disclosure, excessive agency, supply chainPillar 01
OWASP Agentic AI threat extensionsVulnerability taxonomyThreats unique to systems that act, goal manipulation, tool misuse, multi-agent exploitationPillar 01, 09
MITRE ATLASAdversary kill-chain frameworkSequencing how an attacker actually chains techniques into a breachPillar 01, 09
NIST SP 800-207Architecture standardZero trust principles, no implicit trust based on location or standing credentialPillar 02
NIST AI RMFVoluntary risk management frameworkGovern / Map / Measure / Manage lifecycle for AI riskPillar 07, 10
ISO/IEC 42001Certifiable management system standardDocumented AI management system with defined roles and continuous improvementPillar 07
ISO/IEC 23894Risk management guidanceStructured risk identification specific to AI system characteristicsPillar 01, 07
EU AI ActBinding regulationRisk-tiered obligations, conformity assessment, technical documentation, human oversight for high-risk systemsPillar 07, 08
GDPRBinding regulationLawful basis, data residency, right to erasure, automated-decision rightsPillar 05, 08
SOC 2Audit standardTrust services criteria, security, availability, confidentiality, with evidencePillar 08, 10
Sector rules (HIPAA, PCI DSS, SEBI/RBI, FINRA/SEC)Binding, sector-specificDomain data-handling, explainability, and oversight requirements layered on the abovePillar 08
💡 How to use this table

Start from the control, not the framework. Build the identity, guardrail, policy engine, and audit trail described in Pillars 02–05 and 10 because they are sound architecture, then use this table to see which frameworks each control already satisfies most of. Working backward from a framework's checklist to a bolted-on control is how compliance programs end up disconnected from the system they're supposed to govern.