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.
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.
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.
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.
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.
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."
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Component | Enforces | Failure mode if missing |
|---|---|---|
| Input / output guardrails | What the model is allowed to see and say | Prompt injection succeeds, sensitive data leaks in output |
| Zero trust policy engine | What the model is allowed to do | A convincing but wrong instruction becomes an authorized action |
| Non-human identity | Who is actually acting, with what scope, for how long | A single compromised credential exposes every tool the agent ever touches |
| Sandboxed tool execution | What a tool call can reach outside its declared purpose | Code execution or a malicious tool escapes into the host environment |
| Data layer classification | What is stored, for how long, and who can retrieve it | PII persists in memory or embeddings past its retention justification |
| Governance band | Which risk tier a feature sits in and what oversight it requires | A high-consequence feature ships with low-consequence review |
| Audit band | Whether every control above can be proven to have run | An incident or an audit finds claims with no evidence behind them |
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.
| Layer | Attack surface | Representative threat |
|---|---|---|
| Input | User prompts, uploaded files, voice/image input | Direct prompt injection, jailbreak, malicious file payloads |
| Context | RAG documents, web pages, emails, tool outputs pulled into the prompt | Indirect prompt injection embedded in retrieved content |
| Reasoning | System prompt, chain-of-thought, planning state | System prompt extraction, goal hijacking, reasoning manipulation |
| Tools | Function calls, APIs, code execution, file system access | Excessive agency, unsafe tool invocation, argument injection |
| Memory | Session state, vector stores, long-term memory, fine-tuning data | Memory poisoning, persistent backdoor via stored context |
| Identity | Agent credentials, delegated user permissions, inter-agent trust | Privilege escalation, confused deputy, credential exposure |
| Orchestration | Multi-agent messaging, subagent spawning, handoffs | Agent-to-agent injection, cascading compromise, rogue subagent |
| Supply chain | Base models, fine-tunes, plugins, MCP servers, third-party tools | Model backdoors, malicious tool packages, data poisoning |
| Output | Generated text, code, actions taken in external systems | Data exfiltration, insecure code generation, unsafe action execution |
Two reference taxonomies do most of the work of structuring an agentic threat model. Neither replaces the other.
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).
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 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.
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.
A read-only search tool and a "transfer funds" tool are not the same risk category and must not share an approval path.
Forces explicit answers to "what happens if this specific input is adversarial" rather than a generic "we have guardrails."
Prompt injection defense, output sanitization, and identity scoping are usually owned by different teams. An unowned threat is an unmitigated one.
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 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.
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.
| NIST 800-207 principle | Agentic system translation |
|---|---|
| Every data source and computing service is a resource | Every 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 location | Model-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-perimeter | A 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 possible | Authorization 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 monitored | Every model, prompt version, and tool is monitored for drift, compromise, or anomalous behavior, not verified once at deployment |
| Strict enforcement before access is granted | Authorization is enforced before a tool executes, not validated after the fact by reviewing logs |
A zero trust architecture for an agent has to draw boundaries that don't exist in traditional software:
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);
}
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.
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.
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.
| Stage | Control |
|---|---|
| Provisioning | Every agent gets a distinct, registered identity, never a shared credential across agent instances or environments |
| Scoping | Permissions are defined per capability the agent needs for its specific task, not per system it happens to touch |
| Delegation | When acting on behalf of a user, the agent receives a delegated, downscoped token, never the user's full session credential |
| Session binding | Permissions are issued per session or per task, with explicit expiry, not standing access that persists across unrelated sessions |
| Rotation | Credentials are short-lived and automatically rotated; a leaked agent credential should be worthless within minutes |
| Deprovisioning | Retired agents, deprecated tool integrations, and abandoned prototypes have their credentials revoked on a tracked schedule, not left active indefinitely |
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-pattern | Zero trust pattern |
|---|---|
| Agent stores the user's full OAuth token and reuses it for every task | Agent requests a fresh, task-scoped token per session via a token exchange flow |
Scope requested: mail.readwrite for a summarization feature | Scope 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 lifetime | Token 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 product | Per-tenant, per-user credential issuance with tenant isolation enforced at the token layer, not just the application layer |
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.
SELECT on named tables, never DROP or DELETEIn 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 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.
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."
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.
| Layer | Function | Example controls |
|---|---|---|
| Input | Screen content before it reaches the model | Prompt injection classifiers, jailbreak pattern detection, input length and format limits, file-type and content scanning on uploads |
| Instruction | Structurally separate trusted instructions from untrusted data | XML/delimiter-based context separation, system-prompt hardening, explicit "treat this as data, never instructions" framing around retrieved content |
| Reasoning | Constrain what the model is allowed to plan toward | Declared task scope checked against the model's stated plan before execution, goal-drift detection across multi-step tasks |
| Tool | Gate whether a planned action is allowed to execute | Policy engine authorization (Pillar 02), argument validation against typed schemas, reversibility-based approval gates |
| Output | Screen content before it reaches the user or a downstream system | PII/secret redaction, toxicity and harm classifiers, hallucination and groundedness checks, system-prompt-leak detection |
| Session | Bound the aggregate behavior of a session, not just one turn | Iteration caps, cost circuit breakers, anomalous-pattern detection across a session's tool-call sequence |
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.
<untrusted_data>...</untrusted_data>) and instruct the model, in the system prompt, to never treat content inside those tags as instructions, regardless of what it claims to be.| Risk | Detection method | Enforcement |
|---|---|---|
| PII / secrets in output | Regex + NER scan of generated text before delivery | Hard block or redact, never a soft warning on a critical-severity match |
| System prompt leakage | Canary token match, similarity scoring against known system prompt | Block response, alert security, rotate the exposed system prompt |
| Unsafe generated code | Static analysis (SAST) on any code the agent produces or executes | Sandbox execution only; block direct execution of ungated code |
| Hallucinated / ungrounded claims | Groundedness 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 content | Content safety classifier (domain-tuned, not generic) | Hard block with a defined refusal message, logged for review |
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.
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.
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.
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.
| Classification | Handling in prompts | Handling in memory / logs |
|---|---|---|
| Critical Financial account numbers, national IDs, health records, credentials | Never sent to a model provider in raw form, tokenize, redact, or process through a compliant isolated pipeline | Never persisted in vector stores, session memory, or plaintext logs |
| High Names, contact details, precise location, transaction history | Redact or mask before sending unless explicitly required for the task and covered by a data processing agreement | Encrypted at rest, retention-limited, access-logged |
| Medium Behavioral data, preferences, non-identifying usage patterns | Permitted with standard encryption in transit | Standard retention policy applies |
| Public / synthetic | No special handling required | Standard retention policy applies |
| Risk | Where it lives | Control |
|---|---|---|
| Cross-tenant retrieval leakage | Shared vector index without tenant isolation | Tenant ID as a mandatory filter on every retrieval query, enforced at the database layer, not just the application layer |
| Stale PII in long-term memory | Persistent agent memory that outlives its retention justification | TTL on memory records; scheduled purge jobs; explicit user-triggered deletion honored end-to-end |
| Memory poisoning | An attacker gets false or manipulative content stored in an agent's persistent memory | Validate and provenance-tag anything written to long-term memory; treat memory writes as privileged operations requiring their own authorization check |
| Embedding inversion | Vector embeddings that can be partially reconstructed back to source text | Avoid embedding raw sensitive fields directly; encrypt vector stores at rest; restrict embedding model access |
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.
Know every store, session cache, vector index, long-term memory, analytics warehouse, fine-tuning dataset, that a given user's data can reach.
Prefer RAG or in-context approaches for personalization; a fine-tuned model cannot have a single user's contribution cleanly removed after the fact.
A single deletion request triggers a workflow that purges the user's data from every mapped store, not a manual, easily-missed checklist.
Record deletion completion per store with a timestamp, this is the audit evidence a regulator or a user's legal counsel will ask for.
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."
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.
| Component | Integrity risk | Control |
|---|---|---|
| Base model | Backdoored weights, undisclosed training data provenance, silent behavior changes on provider-side updates | Prefer providers with published model cards and safety evaluations; pin dated model versions; run regression evals on every version change |
| Fine-tuned / adapted models | Poisoned fine-tuning data shifting behavior in a narrow, hard-to-detect way | Provenance-track every fine-tuning dataset; evaluate fine-tuned models against the same safety suite as the base model, not a reduced one |
| RAG knowledge base | Poisoned or manipulated source documents that get retrieved and treated as ground truth | Source documents from vetted, access-controlled repositories; content integrity checks on ingestion; provenance metadata retained through retrieval |
| Third-party tools / plugins | Malicious or vulnerable code executed with the agent's granted permissions | Security review before integration; sandboxed execution; least-privilege scoping regardless of the tool's own claims |
| MCP servers | A rapidly growing, unevenly vetted ecosystem, a malicious or compromised server can inject instructions through tool descriptions or tool results | Treat 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 frameworks | Standard software dependency risk, vulnerable transitive dependencies, unmaintained packages | SCA (software composition analysis) scanning in CI; dependency pinning; license and maintenance-status review before adoption |
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.
Read the tool's source (where available), its declared permissions, and its network egress requirements before granting it any access to production data.
Never accept a tool's requested default scope without narrowing it to what the specific integration actually needs.
Run new tool integrations in an isolated environment against synthetic data before connecting them to production systems.
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.
Every tool integration has a named owner and a scheduled re-review, an unreviewed integration accumulates risk silently over time.
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.
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.
| Function | Owns | Typical home |
|---|---|---|
| AI governance board / council | Risk tiering policy, approval of high-risk use cases, escalation path for novel scenarios | Cross-functional: product, security, legal, data science leadership |
| Model risk management | Model inventory, risk classification per use case, pre-deployment sign-off | Risk / compliance function, with technical input from ML engineering |
| AI security engineering | Threat modeling, guardrail implementation, red teaming, incident response for AI-specific incidents | Security engineering, often a dedicated AI security function at scale |
| Product / feature owner | Acceptance criteria including safety thresholds, launch decision within governed risk tier | Product management, safety criteria are product requirements, not a separate gate |
| Data protection / privacy | Data classification enforcement, DPA review, erasure and residency compliance | Privacy / legal function |
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.
| Tier | Characteristics | Governance requirement |
|---|---|---|
| Tier 1: High Stakes | Irreversible actions, financial transactions, health/legal/safety decisions, regulated-sector use | Governance board approval before launch, mandatory human-in-the-loop for irreversible actions, full audit trail, quarterly re-review |
| Tier 2: Elevated | Customer-facing autonomous decisions with reversible consequences, access to sensitive data | Risk owner sign-off, documented safety eval thresholds, standard audit logging, semi-annual re-review |
| Tier 3: Standard | Internal tooling, read-only assistance, low-consequence automation | Team-level review against baseline security checklist, standard monitoring |
| Tier 4: Minimal | Purely generative assistance with no external action capability, no sensitive data access | Baseline security checklist only |
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.
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.
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.
Policy changes are auditable events with a rationale and an approver, the same discipline applied to prompt versioning in production operations.
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.
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.
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.
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.
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.
| Framework | Scope | What it actually requires, in practice |
|---|---|---|
| NIST AI RMF | Voluntary US framework, increasingly a de facto baseline | Govern (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 42001 | Certifiable AI management system standard | Documented AI management system, risk assessment process, defined roles, continuous improvement cycle, the certifiable equivalent of Pillar 07's operating model |
| ISO/IEC 23894 | AI risk management guidance | Structured risk identification and treatment specific to AI system characteristics, informs the threat modeling in Pillar 01 |
| EU AI Act | Binding 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 |
| GDPR | EU data protection, extraterritorial reach for EU resident data | Lawful 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 2 | Trust services criteria audit, common enterprise procurement requirement | Security, 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-specific | HIPAA (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 tier | Example | Requirement | Maps to |
|---|---|---|---|
| Unacceptable risk | Social scoring, manipulative subliminal techniques | Prohibited outright | Governance board must reject at the use-case approval stage (Pillar 07) |
| High risk | Credit scoring, employment decisions, critical infrastructure control, law enforcement tools | Conformity assessment, technical documentation, risk management system, human oversight, post-market monitoring, registration in an EU database | Pillar 01 (threat model as risk assessment input), Pillar 07 (Tier 1 governance), Pillar 10 (audit trail as technical documentation) |
| Limited risk | Chatbots, emotion recognition, deepfakes | Transparency obligations, users must know they're interacting with AI | Guardrail layer output labeling (Pillar 04) |
| Minimal risk | Spam filters, AI-enabled recommendation features | No specific legal obligation beyond general product law | Baseline controls, Tier 3–4 governance (Pillar 07) |
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:
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.
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.
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.
| Test category | What it probes | Example technique |
|---|---|---|
| Direct prompt attacks | Can the guardrails be bypassed with adversarial input alone | Jailbreak libraries, role-play framing, instruction-override phrasing, encoding tricks (base64, translation, leetspeak) |
| Indirect injection | Can content the agent retrieves or is asked to process carry a working payload | Injection payloads embedded in documents, emails, web pages, or tool responses the agent is asked to summarize or act on |
| Excessive agency probing | Will the agent take an action beyond its intended scope when socially engineered | Multi-turn conversations that incrementally escalate a request toward an out-of-scope action |
| Identity and authorization bypass | Can the zero trust boundaries from Pillar 02–03 be circumvented | Attempting privilege escalation through tool argument manipulation, testing whether scoped credentials actually enforce their declared scope |
| Data exfiltration | Can the agent be induced to leak sensitive data through its output or a tool call | Prompting the agent to encode sensitive data in a URL parameter, image alt text, or a seemingly benign tool call |
| Multi-agent exploitation | Can one compromised agent manipulate others in an orchestration | Injecting instructions into a subagent's output designed to influence the orchestrator's next decision |
| Supply chain simulation | What happens if a tool or MCP server behaves maliciously | Standing up a test tool that returns adversarial content or attempts to escalate its own granted scope |
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.
Manual red teaming alone cannot keep pace with a shipping cadence, automated adversarial suites run in CI, with periodic deeper manual engagements.
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.
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.
Every successful bypass is new information about the actual attack surface, update Pillar 01's threat model, not just the specific control that failed.
| Signal | What it can indicate |
|---|---|
| Spike in guardrail rejection rate for a specific user or session | Active jailbreak or injection attempt in progress |
| Tool call sequence anomalous versus the agent's typical behavior pattern | Goal hijacking, excessive agency triggered by a manipulated instruction |
| Canary token appearing in output | Successful system prompt extraction |
| Authorization denial spike against a specific credential | Compromised credential attempting privilege escalation, or a misconfigured integration |
| Sudden shift in the model's response style or refusal pattern | Silent provider-side model update, or a compromised prompt template |
| Unusual outbound network activity from a code execution sandbox | Attempted data exfiltration or sandbox escape |
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.
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 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.
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.
| Record | Why it matters |
|---|---|
| Full input, including retrieved context and tool results injected into the prompt | Reconstructs exactly what the model saw, essential for investigating any disputed or anomalous output |
| Model and prompt version used | Correlates behavior to a specific, reproducible configuration, required for both debugging and regulatory evidence |
| Every tool call: name, arguments, authorization decision, execution result | The 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 scope | Answers "who was responsible", required for both incident response and delegated-authority compliance |
| Guardrail outcomes: every check run and its result, including passes | Proves the control operated, not just that it exists, the difference between an assertion and evidence in Pillar 08 |
| Human review and approval events | Evidence of human oversight for regulatory frameworks requiring it, and the record of who approved what |
| Final output and its delivery destination | Completes the record from input to consequence |
"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 model | When it fits | Design requirement |
|---|---|---|
| Human-in-the-loop (pre-action approval) | Irreversible or high-consequence actions, Tier 1 use cases | Approver 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 infeasible | Monitoring 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 actions | Sampling rate and review criteria are defined and their results feed back into guardrail tuning, audit without a feedback loop is theater |
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.
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.
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.
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
| Framework | Type | Primary use | Does the most work in |
|---|---|---|---|
| OWASP Top 10 for LLM Applications | Vulnerability taxonomy | Naming and classifying weaknesses, injection, disclosure, excessive agency, supply chain | Pillar 01 |
| OWASP Agentic AI threat extensions | Vulnerability taxonomy | Threats unique to systems that act, goal manipulation, tool misuse, multi-agent exploitation | Pillar 01, 09 |
| MITRE ATLAS | Adversary kill-chain framework | Sequencing how an attacker actually chains techniques into a breach | Pillar 01, 09 |
| NIST SP 800-207 | Architecture standard | Zero trust principles, no implicit trust based on location or standing credential | Pillar 02 |
| NIST AI RMF | Voluntary risk management framework | Govern / Map / Measure / Manage lifecycle for AI risk | Pillar 07, 10 |
| ISO/IEC 42001 | Certifiable management system standard | Documented AI management system with defined roles and continuous improvement | Pillar 07 |
| ISO/IEC 23894 | Risk management guidance | Structured risk identification specific to AI system characteristics | Pillar 01, 07 |
| EU AI Act | Binding regulation | Risk-tiered obligations, conformity assessment, technical documentation, human oversight for high-risk systems | Pillar 07, 08 |
| GDPR | Binding regulation | Lawful basis, data residency, right to erasure, automated-decision rights | Pillar 05, 08 |
| SOC 2 | Audit standard | Trust services criteria, security, availability, confidentiality, with evidence | Pillar 08, 10 |
| Sector rules (HIPAA, PCI DSS, SEBI/RBI, FINRA/SEC) | Binding, sector-specific | Domain data-handling, explainability, and oversight requirements layered on the above | Pillar 08 |
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.