Machine Learning pathway increased my salary by 40%
AI Threat Modelling and Architecture Review
Learn the method that decides where AI security controls belong before a line of code exists: structured threat modelling, trust-boundary analysis and independent architecture review for models, agents and tools.
Executive Summary
Threat modelling is the highest-leverage activity in AI security, because it is the only one that runs before the system exists. A model, an agent or a retrieval pipeline that was never threat modelled is not insecure by accident; it is insecure because nobody decided which assets mattered, where the trust boundaries fell and which actions needed a gate. This topic teaches a repeatable method for doing that work on AI systems: scope the system, draw the data flow, enumerate assets and adversary goals, map abuse paths to techniques, attach controls with named owners, and record the residual risk that leadership is accepting. It then teaches the second half of the discipline, the architecture review, where an independent reviewer tests whether the design actually enforces what the threat model claims. The output is not a document that gets filed. It is a decision record with evidence, and it is what auditors, insurers and enterprise buyers increasingly ask to see.
Definition
AI threat modelling is a structured, repeatable analysis that identifies the assets of an AI system, the trust boundaries between its components, the adversary goals and abuse paths that cross those boundaries, and the controls that reduce each abuse path to an accepted level of residual risk. An AI architecture review is the independent assessment of whether the implemented design enforces those controls, with findings scored by exploitability and evidence attached.
Why It Matters
Most reported AI security failures are design omissions rather than sophisticated exploits. A retrieval index built without entitlement filters, an assistant holding a service credential with write access, a tool that accepts a model-generated argument without validation: each of these is a decision that was never made explicitly, and each would have been caught by a half-day threat modelling session. Threat modelling is also the cheapest control available. A finding raised on a whiteboard costs a design change; the same finding raised after launch costs a remediation programme, a customer notification and, in regulated sectors, a supervisory conversation. For organisations selling into enterprises, a documented threat model is now a procurement artefact: security questionnaires ask for it by name, and its absence lengthens or blocks the deal.
Evolution of the Technology
Application threat modelling (STRIDE, 1999) → privacy threat modelling (LINDDUN) → cloud and container threat modelling → ML-specific adversary taxonomy (NIST AI 100-2) → ATLAS-mapped AI threat modelling → layered AI system modelling (MAESTRO) → agentic and tool-use threat modelling (2025-2026) → continuous threat modelling tied to CI/CD and model release gates.
Learning Objectives
- Scope an AI system and draw a data flow diagram with explicit trust boundaries
- Enumerate AI-specific assets: models, adapters, prompts, corpora, embeddings, memory, tools, credentials
- Apply STRIDE per element and the MAESTRO seven-layer method to the same system
- Map abuse paths to MITRE ATLAS techniques and NIST AI 100-2 categories
- Attach a preventive, a detective and a recovery control to every credible abuse path
- Score and prioritise findings by exploitability, blast radius and evidence quality
- Run an architecture review that tests claimed controls against implemented behaviour
- Produce a decision record that survives audit, procurement and incident review
Prerequisites
- Working knowledge of application security and identity concepts
- Familiarity with how an LLM application assembles prompts, context and tool calls
- Basic understanding of cloud IAM and network segmentation
- Comfort reading an architecture diagram and a sequence diagram
Why Application Threat Modelling Is Not Enough
Classic application threat modelling assumes deterministic code, typed inputs and a clear separation between instructions and data. AI systems break all three assumptions. The input is natural language and cannot be typed reliably, instructions and data share a single channel, behaviour is probabilistic and can change without a code change when a model version or adapter is swapped. The result is that several STRIDE categories acquire new elements. Tampering now includes prompt injection through retrieved documents. Information disclosure now includes memorised training data and cross-tenant retrieval. Elevation of privilege now happens through tool permissions rather than through an exploit. A useful AI threat model therefore keeps the classic categories but adds AI-specific elements and a supply chain dimension for models and corpora.
What Changes When the System Contains a Model
| Dimension | Classic application | AI system |
|---|---|---|
| Input | Typed, validated at the edge | Natural language and multimodal, no reliable type |
| Instruction boundary | Code and data separated | Instructions and data share one token stream |
| Behaviour | Deterministic for a given input | Probabilistic, changes with model version or sampling |
| Privilege | Fixed service accounts | Model-influenced tool calls with delegated authority |
| Assets | Code, data, infrastructure | Plus weights, adapters, corpora, embeddings, memory, prompts |
| Change control | Code commit and release | Also silent provider updates and adapter swaps |
The MAESTRO Seven-Layer Model
MAESTRO gives AI systems a layered vocabulary so that a threat modelling session does not collapse into a single discussion about prompts. Each layer has its own assets, its own adversary goals and its own review questions. Working layer by layer prevents the most common failure in AI threat modelling, which is spending the entire session on injection and never examining the training pipeline or the tool credentials.
MAESTRO Layers and Their Review Questions
| Layer | Assets | Review question |
|---|---|---|
| 1 Foundation models | Weights, adapters, provider contracts | Can behaviour change without our change control noticing? |
| 2 Data operations | Training corpora, labels, embeddings, vector indexes | Can an attacker influence what the model learns or retrieves? |
| 3 AI platform | Gateway, orchestration, memory, evaluation harness | Is identity enforced at every hop, and is there a kill switch? |
| 4 Infrastructure | Compute, GPUs, storage, network, secrets | Can a compromised workload reach model artefacts or credentials? |
| 5 Applications | Prompt assembly, output handling, UI rendering | Does untrusted content reach an instruction position or a sink? |
| 6 Agents and tools | Tool permissions, delegated tokens, action gates | What is the maximum damage one injected instruction can cause? |
| 7 Governance | Policies, approvals, audit trail, incident process | Can we prove what was approved, by whom and when? |
Trust Boundaries, Abuse Stories and Evidence
A threat model is only actionable if every claim has an artefact behind it. For each boundary, write the abuse story in attacker language, name the control that stops it, and state the evidence that would prove the control operates. Evidence is what separates a threat model from a wish list: a log query, a configuration export, a test result, a policy version. During the architecture review, the reviewer asks for that evidence and marks the control as verified, claimed or absent. This three-state marking is the single most useful output of the whole exercise, because it converts a narrative document into a remediation backlog with owners.
Artefacts and What They Prove
| Artefact | Purpose | Evidence it produces |
|---|---|---|
| Data flow diagram with boundaries | Shows what crosses where | Boundary list with data classes per edge |
| Asset register | Shows what is worth attacking | Owner, sensitivity and retention per asset |
| Abuse stories | Shows attacker intent and path | One story per credible path with preconditions |
| Control matrix | Shows what stops each path | Control, owner, standard reference, test method |
| Residual risk record | Shows what leadership accepted | Signed acceptance with expiry and review date |
Threat Landscape
AI threat modelling now has to account for adversaries who never touch the infrastructure. An attacker can influence a system entirely through content: a document, a web page, an email, a support ticket or a calendar invite that the assistant later ingests. The technique is cheap, requires no exploit development and scales across every tenant that reads the same shared source. A second shift is that the model supply chain is a live attack surface. Adapters, fine-tuned checkpoints and evaluation datasets move between teams and vendors with far less scrutiny than application code, and a swapped artefact changes behaviour without a code review. A third is autonomy. Once an agent can act, the threat model must reason about the union of every tool permission in scope, the number of steps available to an attacker, and the reversibility of each action. Threat models that stop at the model boundary systematically miss the paths that cause the largest incidents.
Attack Surface
Enumerate surface by element rather than by component name: prompt assembly and template storage, retrieval indexes and their filters, conversation and long-term memory, model artefacts and adapters, gateway and routing configuration, tool definitions and their credentials, output sinks (browser, database, shell, downstream APIs), evaluation and logging pipelines, and the human approval path. Each element has an owner and a data class. The most frequently missed surfaces in practice are the evaluation harness, which often holds production-like data with weaker controls, and the approval path itself, which is a social engineering target when a human is the last gate.
Security Controls
Controls are attached to abuse paths, not to sections of a document. Every credible path gets one preventive control that makes the path impossible or expensive, one detective control that would reveal an attempt, and one recovery control that bounds the damage. If a path has no preventive control, the residual risk is recorded and accepted explicitly.
Control Matrix Pattern
| Control | What it prevents | Standard |
|---|---|---|
| Data flow diagram reviewed per release | Undocumented boundaries and shadow paths | NIST AI RMF MAP 1.1 |
| Per-element STRIDE pass with AI additions | Missed tampering and disclosure paths | OWASP LLM01, LLM06 |
| Tool permission inventory with owners | Excessive agency through standing credentials | OWASP LLM08 |
| Model artefact signing and pinning | Silent behaviour change through substitution | NIST AI 600-1, ISO 42001 A.8 |
| Approval gate on irreversible actions | Damage from a successful injection | ISO/IEC 42001 A.7 |
| Residual risk register with expiry | Permanent acceptance of stale risk | NIST AI RMF MANAGE 3.2 |
Security Architecture
A reviewable AI architecture separates four planes so that each can be reasoned about independently: the control plane, the data plane, the action plane and the evidence plane.
Reference Architectures
Threat Modelling Workflow for a New AI Feature
A repeatable sequence that fits inside a two-week design phase.
STRIDE per Element Applied to a Retrieval-Backed Assistant
Walk each element and ask the question in the attacker voice. The value of doing this element by element is that the retrieval element alone usually yields more credible paths than an hour of general discussion.
Element-Level Findings
| Element | Threat | Representative path |
|---|---|---|
| Prompt assembler | Tampering | Retrieved text concatenated into the instruction block |
| Vector index | Information disclosure | Filters applied after search, restricted passage already in context |
| Tool runtime | Elevation of privilege | Shared service credential across all users |
| Output renderer | Tampering | Model output rendered as HTML without encoding |
| Memory store | Repudiation | Payload persisted without principal scoping or audit |
| Gateway | Denial of service | No per-tenant token ceiling or recursion cap |
Scoring Abuse Paths Without Inventing Precision
Teams often stall on risk scoring. Use three coarse factors and be explicit about the assumption behind each, rather than producing a false-precision number. Exploitability asks how much skill and access the path requires. Blast radius asks what the attacker gains and whether the action is reversible. Detectability asks whether an attempt would be seen. Multiply nothing; rank on the combination and record the reasoning.
Scoring Bands and Required Response
| Band | Combination | Response required |
|---|---|---|
| Critical | Low skill, high blast radius, low detectability | Block release until a preventive control exists |
| High | Low skill, medium blast radius, or high blast radius with detection | Compensating control plus monitoring before launch |
| Medium | Moderate skill or reversible impact | Control scheduled with a dated owner commitment |
| Low | High skill, negligible impact, easily detected | Record and accept with a review date |
Frameworks & Standards
Four references carry most of the weight in an enterprise review. Use them together rather than choosing one: MAESTRO for structure, STRIDE for element-level completeness, ATLAS for adversary mapping and NIST AI 100-2 for taxonomy discipline.
Framework Selection Guide
| Framework | Best used for | Limitation |
|---|---|---|
| STRIDE | Element-by-element completeness check | No AI-specific categories without extension |
| MAESTRO | Layered scoping of an AI system | Descriptive, does not score risk itself |
| MITRE ATLAS | Mapping abuse paths to real adversary techniques | Coverage of newest agent techniques still maturing |
| NIST AI 100-2 | Consistent vocabulary for evasion, poisoning, extraction, inversion | Taxonomy, not a control catalogue |
| OWASP LLM Top 10 | Procurement-facing risk classes | Application layer focus, thin on infrastructure |
Regulatory Landscape
Under the EU AI Act, high-risk systems require documented risk management, which in practice means a threat model, a control record and evidence of testing. India's DPDP Act constrains what personal data may enter a prompt or a log, which changes the asset register and the retention plan. Financial sector guidance in most jurisdictions now expects model risk documentation to cover adversarial as well as accuracy risk. Sector regulators in energy and telecom expect operational technology assessments to include any AI component that can influence a physical process.
Tools & Technologies
| Tool | Purpose | Note |
|---|---|---|
| draw.io or Mermaid in repository | Data flow diagrams kept in version control | Diagrams that live only in slides rot within a quarter |
| Threat Dragon or IriusRisk | Structured threat capture with STRIDE templates | Configure AI elements manually; defaults are app-centric |
| MITRE ATLAS Navigator | Mapping abuse paths to techniques | Use as the shared language with the SOC |
| Jira or Linear | Control backlog with owners and dates | Every residual risk needs a ticket, not a paragraph |
| GRC platform | Risk register, acceptance signatures, review dates | The register is the audit artefact, not the workshop notes |
Workshop Formats Compared
| Format | Duration | Best for | Weakness |
|---|---|---|---|
| Whiteboard session with builders | 2-4 hours | New features with a clear design | Misses supply chain and operations |
| Structured questionnaire | 1 hour | Repeatable intake across many teams | Shallow; encourages copy-paste answers |
| Independent architecture review | 1-2 days | High-risk or regulated systems | Requires senior reviewer time |
| Continuous automated checks | Ongoing | Preventing regression after launch | Cannot reason about novel design intent |
Enterprise Use Cases
Case Studies
Problem: A proposed product-support assistant used a single vector index for all merchants.
Opportunity: The design review ran before build, so the index schema could still change.
Architecture: Entitlement filters moved inside the search query, index partitioned by merchant, cross-tenant test cases added to the release suite.
Outcome: A cross-tenant disclosure was prevented at design stage at the cost of two days of engineering.
Lessons: Threat modelling pays for itself the first time it changes a schema instead of a production incident.
Problem: An operations agent was designed with one service account covering ticketing, CRM and email.
Opportunity: The abuse path analysis showed a single injected ticket comment could send external email.
Architecture: Per-tool scoped credentials, external send removed from the agent, approval gate introduced for any customer communication.
Outcome: The agent launched with read and internal-write capability only, with a documented residual risk for the rest.
Lessons: The union of tool permissions, not the prompt, defines what an attacker can achieve.
Implementation Steps
Enterprise SOPs
Purpose: Ensure every AI feature has a reviewed threat model before build
Owner: Security architecture
Steps: Submit scope, data flow and asset register; attend workshop; receive control matrix with owners
Evidence: Signed threat model version linked to the feature ticket
Purpose: Verify claimed controls against implemented behaviour
Owner: Independent reviewer
Steps: Request evidence per control; test sampling of boundaries; score findings
Evidence: Review report with verified, claimed and absent markings
Purpose: Record explicit, time-bound acceptance of remaining risk
Owner: Business owner with risk sign-off
Steps: Review open paths; agree compensating controls; set expiry; record decision
Evidence: Acceptance record in the risk register with review date
Threat Model and Review a Retrieval-Backed Agent
Problem: You are given a one-page design for an internal assistant that reads policy documents, answers questions and can open a ticket on the user behalf. Produce a threat model and an architecture review verdict.
- Data flow diagram with at least six trust boundaries marked
- Asset register covering model, corpus, embeddings, memory, tools and credentials
- STRIDE per element plus the seven MAESTRO layer questions answered
- At least eight abuse stories mapped to ATLAS techniques
- Control matrix with preventive, detective and recovery control per path
- Residual risk record with an explicit decision and expiry date
Architecture: Use the five-plane reference architecture and mark which plane each control sits in.
Outcome: A reviewable decision record that states what is mitigated, what is accepted and what evidence proves each claim.
GCC Applications
- Standardising AI security review across multiple client engagements with one template
- Building a reusable control library that shortens review from weeks to days
- Serving as the security architecture function for a client AI programme
- Producing audit-ready evidence packs for client regulators and procurement teams
Key Metrics & KPIs
Risks & Mitigation
Maturity Model
Future Roadmap
Emerging Trends
Career Applications
Frequently Asked Questions
Research References
Knowledge Check
Knowledge check
How long should a threat modelling session take?
Should we use STRIDE or MAESTRO?
Who must attend?
How do we handle third-party models we cannot inspect?
What is the difference between a threat model and a risk assessment?
How often should a model be refreshed?
Continue this lesson with a subscription
AI Cybersecurity, AI Security & AI Governance is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
