Join our Newsletter — 33% off our NHI Course
Home› Guides› Threat Modelling AI Agents: A Practical Workshop Guide
Guide Agent Governance & Risk

Threat Modelling AI Agents: A Practical Workshop Guide

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 24 October 2026 17 min read
On this page

Threat modelling is the cheapest point at which to make an AI agent safe, yet most agents reach production with credentials and tools that nobody has examined as a whole. Before an agent receives credentials, a two-hour workshop can show what it will read, what it can do, who it acts for and how an attacker could turn one into the other. This guide gives security, IAM and engineering teams a repeatable method for threat modelling AI agents. It combines the four questions of classic threat modelling, the layered view of the CSA MAESTRO framework, the OWASP Top 10 for Agentic Applications and the MITRE ATLAS technique catalogue, with a strong focus on identity, with a worked example, metrics and a roadmap.

Key takeaways

  • Model before credentials are issued. Threat model every agent before it gets production access, and again when its tools, data, model, autonomy or delegation model change.
  • Four questions frame the work. Ask what the agent can read, what it can do, who it acts for and what can reach it; they are the agent version of "what are we working on?" and "what can go wrong?".
  • The identity map sets the blast radius. Every credential, token and delegated scope in the design decides how bad each threat can get, so map them all, with scope, lifetime and storage.
  • Use existing catalogues, not new categories. MAESTRO layers make sure nothing is missed, OWASP ASI01 to ASI10 give the threat checklist, STRIDE covers each data flow and ATLAS names attacker techniques.
  • End with testable controls outside the model. Each finding needs a control enforced by identity, policy or architecture, an owner and a test, then red teaming before go-live.

Frameworks you can draw on

The Threat Modeling Manifesto reduces the practice to four questions: "What are we working on? What can go wrong? What are we going to do about it? Did we do a good enough job?" OWASP's threat modelling guidance adds that a threat model should record assumptions that "can be checked or challenged in the future" and a way of validating the model, which matters for agents because their tools and models change often.

FrameworkWhat it gives youUse it forLimits for agents
CSA MAESTRO (Multi-Agent Environment, Security, Threat, Risk and Outcome)A seven-layer reference architecture with a threat landscape per layer, plus cross-layer threatsDecomposing the system so no layer is skippedThreat lists are broad; you still need to tailor them to the design
OWASP Top 10 for Agentic Applications 2026Ten agent risks, ASI01 Agent Goal Hijack to ASI10 Rogue Agents, with examples and mitigationsThe threat checklist at each layerA prioritised list, not a method
STRIDESix threat types: spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilegeEach component, data flow and trust boundaryCSA notes it lacks AI-specific threats and multi-agent interaction
MITRE ATLASAdversary tactics and techniques against AI systems (AML.T IDs)Naming attacker techniques, red team plans, detection contentTechnique-level; does not prioritise for your design
OWASP Non-Human Identities Top 10 (2025)Ten risks in the credentials systems use, NHI1 to NHI10Checking each credential on the identity mapNot agent-specific; pair with ASI03

CSA's MAESTRO paper reviews STRIDE, PASTA, LINDDUN, OCTAVE, Trike and VAST and concludes that each needs augmenting for agentic AI: it calls STRIDE "a good starting point" that "doesn't address the unique challenges of AI agents". The layers, as described in the paper, run from foundation models (layer 1), data operations (layer 2) and agent frameworks (layer 3) through deployment and infrastructure (layer 4), evaluation and observability, and a security and compliance layer that "cuts across all other layers", to the agent ecosystem where agents meet users and other agents. For model-level attacks such as poisoning and evasion, NIST AI 100-2 E2025 gives a taxonomy of adversarial machine learning attacks and mitigations. You do not need every framework. A workable combination is MAESTRO layers for coverage, OWASP ASI as the checklist, STRIDE per data flow and an identity map to size impact. For the general method, see the Threat Modelling Guide; for the attacker catalogue, see the MITRE ATLAS Guide.

Before the workshop

  • Participants: the agent's owner, a developer who knows the design, an IAM or identity engineer, a security architect, and someone who knows the business process and the data. Nobody on a typical agent team sees both the prompts and the entitlements.
  • Inputs: the agent's purpose; an architecture diagram; the list of tools, MCP servers and APIs; data sources and memory stores; the identity and credential design; the autonomy level and approval points; and the model and framework versions.
  • Pre-work: export the agent's actual entitlements from the identity provider, cloud IAM and each SaaS platform, not the intended ones. The gap is often the first finding.
  • Time: 90 minutes to two hours for a single agent; a half day for multi-agent systems or agents that cross organisational boundaries.

The method, step by step

Step 1: Define scope and purpose

Write one sentence on what the agent is for and one on what it must never do. The second sentence is often the most useful output of the whole workshop, because every "must never" becomes a control that has to be enforced outside the model. Record the autonomy level too. OWASP's agentic Top 10 recommends "Least-Agency", advising organisations "to avoid unnecessary autonomy", so ask whether the agent needs each capability at all.

Step 2: Draw the system and its trust boundaries

Draw the agent, its model provider, orchestrator, memory, tools and MCP servers, the systems behind them, the users who interact with it, and any other agents. OWASP's cheat sheet says a model should give "a clear view of trust boundaries, data flows, data stores, processes, and the external entities". Mark every point where untrusted content enters, such as email, web pages, documents, tickets, tool output and messages from other agents. For agents this is the most important line on the diagram: ASI01 exists because agents and their models "cannot reliably distinguish instructions from related content".

Step 3: Map identities and credentials

For every arrow in the diagram, record who authenticates to whom and how. Use a table like this one and fill it from real configuration, not memory.

CredentialHeld byGrantsLifetime and storageQuestions to ask
Agent's own identityAgent runtimeIts own permissions in each platformWorkload identity, certificate or secretIs it unique to this agent, or reused (NHI9)?
Delegated user tokenAgent, on a user's behalfThe user's scopes, or a subsetMinutes to days; often cachedIs it narrowed to the task, and does it expire with the task?
Tool or MCP server credentialThe tool, not the agentBackend API accessOften a static key in configCould the server use it for anything else?
Model provider keyAgent or gatewayInference and spendStatic API keyIs it behind a gateway with budgets?
Reachable credentialsFiles, environment variables, cloud metadataWhatever they were created forLong-lived (NHI7)Could the agent find and use them?

The last row is the one teams forget. ATLAS catalogues Credentials from AI Agent Configuration (AML.T0083) and AI Agent Tool Credential Harvesting (AML.T0098), and the PocketOS Database Deletion 2026 shows the non-malicious version: an agent working in staging found an account-scoped token in an unrelated file and used it to delete production data. This map is what turns a list of threats into a list of consequences. See the Secrets Management Guide for removing reachable secrets.

Step 4: Identify threats layer by layer

Walk through the MAESTRO layers and, at each, ask which OWASP ASI risks and STRIDE categories apply. MAESTRO also asks you to look for cross-layer threats, such as an infrastructure compromise in layer 4 used to poison the data store in layer 2. The prompts in the next section help keep the conversation concrete.

Step 5: Rate the risks

For each threat, rate likelihood (how exposed is the entry point, how easy is the attack) and impact (what the credentials involved allow, how reversible the result is, how sensitive the data). Keep ratings simple (high, medium, low) and agree them in the room. Consistency between workshops matters more than precision. Treat any threat that combines an untrusted input channel with a write or delete capability as high until proven otherwise.

Step 6: Choose controls

For each high and medium risk, choose controls, preferring those that work whatever the model decides:

  • Reduce access: narrower scopes, task-scoped and time-bound tokens, separate identities per agent, removing tools that are not needed. ASI03's first mitigation is to "issue short-lived, narrowly scoped tokens per task".
  • Add enforcement: policy checks at a tool gateway, per-action authorisation for privileged steps, and human approval for irreversible actions.
  • Isolate: separate agents, memory or credentials for reading untrusted input and for privileged action; wipe state between tasks and users.
  • Detect and respond: specific log fields, alerts on unusual tool calls and scope requests, and a tested way to revoke the agent's credentials quickly.

Each control needs an owner and a way to test it. See the AI Agent Authorisation Guide and the OAuth Token Exchange and Delegation Guide for scoping delegated access.

Step 7: Validate and maintain

  • Red team the agent against the top threats before go-live: indirect prompt injection through each input channel, attempts to escalate privilege, attempts to find and use credentials, and attempts to exfiltrate data through write-capable tools.
  • Store the threat model with the agent's registry entry, where reviewers and incident responders can find it.
  • Re-run it when tools, data sources, model, autonomy level or delegation model change. OWASP lists new features, security incidents and architectural changes as triggers for updating any threat model.

See Red Teaming AI Agents for Identity Abuse for test design.

Threat prompts by layer

ATLAS IDs were checked against the 2026.09 ATLAS data release; use them to name test cases and detections, not as proof of coverage.

Area (MAESTRO layer)Prompt for the roomOWASP ASIATLAS technique
Inputs (agent ecosystem)Where could an attacker place instructions the agent will read?ASI01AML.T0051.001 LLM Prompt Injection: Indirect
Foundation models (layer 1)What happens if the model follows those instructions, or simply makes a mistake?ASI01, ASI09AML.T0051 LLM Prompt Injection
Data operations and memory (layer 2)Can one user's input influence another user's session or future tasks?ASI06AML.T0080.000 AI Agent Context Poisoning: Memory; AML.T0070 RAG Poisoning
Agent frameworks and tools (layer 3)Which tools could cause harm if misused? Can untrusted input reach a shell, query or file path?ASI02, ASI05AML.T0053 AI Agent Tool Invocation; AML.T0101 Data Destruction via AI Agent Tool Invocation
Supply chain (layers 3 and 4)Which tools, MCP servers, packages and models come from third parties, and how are they verified?ASI04AML.T0110 AI Agent Tool Poisoning
Identity (cross-layer)What is the worst action possible with each credential on the map? Could the agent find credentials it was not given?ASI03AML.T0083 Credentials from AI Agent Configuration; AML.T0098 AI Agent Tool Credential Harvesting
Other agents (agent ecosystem)How are other agents authenticated, and what happens if one lies or fails?ASI07, ASI08, ASI10AML.T0081 Modify AI Agent Configuration
Outputs (frameworks and ecosystem)Which write-capable tools could carry data out of the organisation?ASI02AML.T0086 Exfiltration via AI Agent Tool Invocation
Evaluation and observabilityWould you know it happened, and could you prove what the agent did and for whom?ASI10AML.T0084.001 Discover AI Agent Configuration: Tool Definitions

For the deeper controls behind each row, see the Prompt Injection Guide, the AI Agent Memory Security Guide, the AI Agent Tool and Plugin Security Guide and the MCP Security Guide.

Worked example: an IT service desk agent

Purpose: reads incoming support emails and tickets, answers common questions, and can unlock accounts and reset multi-factor authentication for employees.

Must never: change permissions, reset credentials for privileged accounts, or act on requests it cannot verify came from the account owner.

Identities on the map: the agent's service identity; a mailbox read and send permission; a ticketing MCP server token; an identity provider admin API credential scoped to account unlock and MFA reset; a model provider key.

ThreatLayer / OWASPImpact via identityRatingControls
Attacker emails the desk pretending to be an executive and asks for an MFA resetInputs, model / ASI01, ASI09Agent's IdP credential can reset MFA, enabling account takeoverHighVerify requester out of band before any reset; block resets for privileged and executive accounts; human approval for all MFA resets
Hidden instructions in an email tell the agent to forward other tickets externallyInputs / ASI01, ASI02Mailbox send permission allows exfiltrationHighRestrict send to internal domains; separate reading untrusted email from sending; alert on external sends
IdP admin credential broader than neededIdentity / ASI03Could change groups or roles if misusedHighCustom IdP role limited to unlock and MFA reset for standard users; short-lived token via workload identity
Malicious update to community ticketing MCP serverEcosystem / ASI04Server holds ticketing token and sees all ticketsMediumUse approved, pinned server; gateway with change detection; scoped token
One user's conversation influences answers to anotherMemory / ASI06Disclosure of another user's ticket dataMediumPer-user memory isolation; no raw input stored in long-term memory
Actions not attributable during an investigationObservability / repudiationCannot show who requested a resetMediumLog requester, verification result, approver, action and credential ID

The pattern is typical: the most serious threats combine an untrusted input channel with a powerful credential. Reducing the credential's scope and adding a verification step removes most of the risk, whatever the model does. The first two rows are not hypothetical. In EchoLeak 2025, researchers showed that a crafted email retrieved as context could steer Microsoft 365 Copilot into exposing data it reached with the user's access (Microsoft reported no exploitation in the wild), and the postmark-mcp Malicious MCP Server 2025 quietly blind-copied every email an agent sent, which is the fourth row. See the Account Recovery and Help Desk Security Guide.

Common mistakes

  • Modelling the model rather than the system: spending the session on jailbreaks and ignoring what the agent's credentials allow.
  • Leaving identities off the diagram: impact is guessed rather than known, and reachable credentials in files or environment variables are missed, as in PocketOS.
  • Controls that live only in the system prompt: instructions are not permissions. In the Replit AI Agent Database Deletion 2025, an agent deleted a live database during a declared code freeze, against explicit instructions.
  • Trusting tools because they are popular: a third-party MCP server or package runs with the agent's delegated access; one changed line was enough in postmark-mcp.
  • Treating the model as a one-off document: agents gain tools and scopes quickly, and a model that is never revisited describes a system that no longer exists.
  • Skipping multi-agent interactions: each agent was modelled separately, so confused-deputy paths between them, which ASI03 describes as "Cross-Agent Trust Exploitation", were never examined. See the Multi-Agent and A2A Security Guide.

Framework mapping

This is an indicative alignment prepared by NHI Mgmt Group, not an official mapping. Control IDs were checked against NIST CSWP 29 (CSF 2.0), the NIST SP 800-53 Rev. 5 catalogue, the CIS Controls (control level) and a published ISO/IEC 27001:2022 Annex A list.

Workshop activityNIST CSF 2.0NIST SP 800-53 Rev. 5ISO/IEC 27001:2022 Annex ACIS Controls v8.1OWASP
Model the system, data flows and trust boundariesID.AM-02, ID.AM-03PL-8, SA-17, CM-8A.5.9, A.8.271, 2ASI01 (input channels)
Identify and rate threatsID.RA-03, ID.RA-04, ID.RA-05RA-3, SA-11(2)A.5.7, A.8.2516ASI01 to ASI10
Map identities, credentials and delegated scopesPR.AA-01, PR.AA-05AC-2, AC-6, IA-5, IA-9A.5.16, A.5.17, A.5.18, A.8.25, 6ASI03; NHI5, NHI7, NHI9
Assess third-party tools, MCP servers and modelsGV.SC-07, ID.RA-09SR-3, SR-6, SA-9A.5.19, A.5.2115, 16ASI04; NHI3
Enforce controls outside the modelPR.AA-05, PR.PS-01AC-3, AC-5, CM-7, SI-10A.5.15, A.8.34, 6ASI02, ASI05, ASI09
Log and attribute agent actionsPR.PS-04, DE.CM-09AU-2, AU-3, AU-10, SI-4A.8.15, A.8.168ASI10
Validate by testing and re-model on changeID.IM-02, ID.RA-07CA-8, SA-11A.8.29, A.8.3216, 18ASI08

The CIS Controls Assessment Specification lists "Conduct Threat Modeling" as safeguard 16.14 under Application Software Security, which is the closest single anchor for this practice. See the Control Mapping Guide.

Metrics that show progress

MetricWhat it showsTarget direction
Production agents with a current threat modelCoverage of the practice across the agent estateUp, towards all agents
Agents that received credentials before a threat modelWhether the review gate is realDown, towards zero
High-rated findings with a tested controlWhether findings turn into enforcementUp
Credentials on identity maps that are long-lived or sharedResidual blast radius (NHI7, NHI9)Down
Red team tests passed per top threatWhether controls hold under attackUp
Incidents involving a threat that was not in the modelBlind spots in the methodDown; feed each into the prompt list

See the AI Agent Observability and Incident Response Guide for the logs that make the last two metrics measurable.

Implementation roadmap

PhaseActionsDone when
First 30 daysAdopt the template (purpose, must-never, diagram, identity map, threat table); run workshops for the three agents with the most powerful credentials; record findings with ownersThree models stored with registry entries; high findings have owners and dates
Days 31 to 90Make a threat model a condition of issuing production credentials; add ATLAS-named red team cases for the top threats; train two facilitators per business unitNo new agent gets production credentials without a model; first red team results recorded
Days 91 to 180Automate re-modelling triggers from changes to tools, scopes and models; review identity maps against live entitlements quarterly; report the metrics aboveStale models flagged automatically; metrics reported to the AI governance forum

See the AI Agent Deployment Checklist for the go-live gate and the Identity Governance for AI Agents Guide for ownership and reviews.

Practitioner checklist

  • Threat model each agent before issuing production credentials.
  • Record purpose, autonomy level and "must never" statements.
  • Draw trust boundaries and every untrusted input channel.
  • Map every identity and credential, with scope, lifetime and storage, from live configuration.
  • Look for credentials the agent could reach but was not given.
  • Walk MAESTRO layers with OWASP ASI01 to ASI10 as the checklist and STRIDE per data flow.
  • Rate risks by likelihood and by impact through identity, including reversibility.
  • Choose controls outside the model, each with an owner and a test.
  • Name red team cases with ATLAS technique IDs and run them before go-live.
  • Store the model with the agent's registry entry and re-model on significant change.

Standards and references

Related NHI Mgmt Group resources: Agentic AI Security Guide · AI Agent Authorisation Guide · Prompt Injection Guide · Multi-Agent and A2A Security Guide · Top 10 Agentic AI Identity Issues

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 24 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.