Stage 6 of 8 · about 8–14 hours · intermediate · checked 2026-11-26

Specialised models

Goal. By the end you can adapt the method to cloud, Kubernetes, CI/CD and supply chain, APIs, identity systems and AI systems: what each adds to the diagram, which catalogue to prompt with, and what to ask first.

Why it matters#

The four questions work everywhere, but each kind of system moves the trust boundaries and has its own repeat offenders. A team modelling a pipeline with only a web-application checklist will miss the pipeline. Published catalogues give you domain-specific prompts so you do not start from a blank page.

What you will learn#

Keep STRIDE as the backbone and use a domain catalogue as a second set of prompts. Each section below gives what changes in the model, what to use, and what to ask first.

Cloud and IAM#

What changes. You share the job with the provider. AWS calls it "security of the cloud" (theirs) and "security in the cloud" (yours), and Microsoft shows the split shifting with the service type: more is yours with virtual machines, less with managed services. Draw the control plane (the APIs, console and infrastructure code that create and change resources) as an entry point, treat each account or subscription as a trust boundary, and show identities moving across boundaries. Identity is the new perimeter, so permissions that change permissions are privilege-escalation paths. Use. The ATT&CK cloud matrix (platforms: office suite, identity provider, SaaS, IaaS) and AWS's IAM practices: federation, temporary credentials, MFA, least privilege. Ask first. Who can call the control plane? Which identities can assume which roles? What is public by default? Where do logs go, and who can delete them?

Kubernetes#

What changes. A cluster is many trust boundaries in one box: pod to pod, workload to node, and the cluster to the cloud account around it. Add the API server, the store behind it that holds secrets, service accounts, network policy, admission control and the image registry. Use. The OWASP Kubernetes Top Ten (2025 edition), which covers insecure workload configuration, over-broad authorisation, secrets management, missing policy and network segmentation, exposed components and cluster-to-cloud movement; the ATT&CK containers matrix; Kubernetes' own security checklist. Ask first. What can a compromised pod reach? What can each service account do, including in the cloud account? What stops a workload running privileged?

CI/CD and supply chain#

What changes. The pipeline is a production system that holds the keys to production. Draw the repository, runner, registry and deploy step, with secrets as data stores and third-party actions and packages as external entities that run with your access. Boundaries include a fork's pull request versus a protected branch, and the runner versus production. Use. The OWASP Top 10 CI/CD Security Risks (ten items, from flow control to poisoned pipeline execution to logging); SLSA v1.2, whose threat overview walks every link from author to consumer; GitHub's secure-use guide. GitHub's OpenID Connect support lets workflows swap short-lived tokens with a cloud provider instead of storing long-lived secrets. Ask first. Who can change the pipeline definition? What can an untrusted pull request reach? Is what we deploy exactly what we built and tested?

APIs#

What changes. Every endpoint is an entry point, and the usual failures concern authorisation: may this caller touch this object, this function, this property? Start from the API description (an OpenAPI file lists the endpoints) and draw each consumer as an external entity, including systems you call. Use. The OWASP API Security Top 10, 2023 edition: object, property and function-level authorisation, authentication, resource consumption, sensitive business flows, server-side request forgery, misconfiguration, inventory and unsafe use of third-party APIs. Abuse cases fit well here. Ask first. What stops one customer asking for another's record? What limits volume per caller? Which old versions are still live?

Identity systems#

What changes. The identity provider is the trust anchor and so the richest target. Tokens are bearer credentials: whoever holds one can use it. Model sign-in, token issue, refresh, revocation, account recovery, second-factor enrolment and federation, including for machines. Use. RFC 9700 (best current practice for OAuth 2.0 security, January 2025), which updates the older RFC 6819 threat model; NIST SP 800-63-4 (digital identity guidelines, final July 2025); OWASP's authentication, session-management and OAuth cheat sheets. Ask first. How are tokens issued, stored, validated and revoked? Who can reset a password or change a second factor, and how do we know it is them? What happens if the provider is down, or compromised?

AI and LLM systems#

What changes. A model follows instructions in whatever text it is given and cannot reliably tell yours from an attacker's text hidden in a web page, email or document. New assets: training data, model weights, system prompts and hidden context, the vector store, and the credentials of every tool the model can call. New boundaries: every source of text that enters the prompt, every place its output goes next, and every action it can take. Three design moves: treat model output as untrusted input to whatever consumes it; give the model the least access and agency it needs, with a person approving high-impact actions; and assume a prompt injection will sometimes succeed, so limit what it can reach. Use. The OWASP Top 10 for LLM Applications 2026 (published August 2026): prompt injection, sensitive information disclosure, excessive agency, supply chain, data and model poisoning, unbounded consumption, misinformation, hidden context exposure, vector and embedding weaknesses and improper output handling. Add OWASP's Top 10 for Agentic Applications 2026 (December 2025), MITRE ATLAS, an ATT&CK-style knowledge base of tactics, techniques and case studies for AI systems, and Microsoft's guide to threat modelling AI and machine-learning systems. Ask first. What untrusted text reaches the model? What can it do with the credentials it holds? Where does its output go?

Be honest about limits: this field moves fast, and the LLM list was reordered and revised between its 2025 and 2026 editions. Check the date on any catalogue before you cite it.

Do this#

  1. Cloud (45 minutes). Extend your stage 2 diagram with an account boundary and three roles. Write six identity threats and a mitigation for each.
  2. Pipeline (60 minutes). Model the build and deploy path of a small repository of your own. List which CI/CD risks apply and which GitHub's short-lived tokens would reduce.
  3. API (45 minutes). Read a public demo API's OpenAPI description. Do not send it traffic. List ten entry points and ask the first questions above of each.
  4. LLM (60 minutes). Model a support chatbot that can look up orders and issue refunds. Draw the boundaries, then map at least six threats to the 2026 list and name the design move that addresses each.
  5. One more (60 minutes). Either map three Kubernetes threats to the Top Ten, or draw an OAuth authorisation-code flow and list threats using RFC 9700.

Resources#

Free first

Paid or needs an account

  • None needed for this stage.

Checkpoint#

You are ready to move on when you can:

Go deeper (optional)#

0 / 6 checkpoints ticked

View this page on GitHub