Checklist · Threat Modeling · Product Security

Practical Threat Modeling

A practical checklist for mapping trust boundaries, finding abuse paths, and turning threats into controls and tests.

Threat modeling works best when it feels like engineering judgment, not paperwork. I want the risky assumptions on the table early enough that the team can still do something useful with them.

A useful review connects five things: who can influence the system, what they can reach, what must stay protected, where a control enforces that protection, and how we will test it.

Use this checklist during design, before a meaningful change ships, or when an incident shows that an old assumption no longer holds. Start with one feature or workflow.

Run a 30-minute review · Core checklist · Feature-specific questions · Worked example · Copyable template

Run A 30-Minute Review

Bring someone who understands the implementation and someone who can challenge its assumptions. Include the product or operations owner when the risk depends on business rules or production behavior.

TimeWorkCapture
0–5 minutesAgree on the change, scope, and things that must stay protected.Scope, assets, and security requirements.
5–10 minutesSketch the data flow, including background work and external services.Actors, components, identities, and trust boundaries.
10–20 minutesWalk the checklist against that flow. Follow the most credible abuse paths.Specific threats and unanswered questions.
20–25 minutesChoose a response for the most important threats.Controls, enforcement points, owners, and follow-up issues.
25–30 minutesDecide how to verify the controls and what must happen before release.Tests, evidence gaps, and a release decision or next review.

Thirty minutes is a starting point. If the scope is too large or a critical boundary is still unclear, narrow the review and schedule the unresolved work.

Map The System Before Using The Checklist

Keep this next to a small diagram. Label what moves between components, which identity is used, and where it is checked. A trust boundary is a place where permissions, ownership, or control change: browser to API, tenant to shared service, API to worker, or your service to a third party.

AreaWhat to write down
ScopeFeature, design or commit, owner, reviewers, and explicit exclusions. Reference existing models for dependencies.
Assets and harmData, credentials, availability, money, or actions worth protecting. Who is harmed if protection fails?
Security requirementsConcrete rules such as “a tenant can only download its own exports” or “a retry cannot charge twice.”
Actors and authorityAnonymous callers, users, admins, support staff, service accounts, and integrations. Include a compromised low-privilege account or dependency where relevant.
Entry points and flowsAPIs, UI requests, uploads, webhooks, queues, scheduled jobs, admin paths, and outputs. Include errors and retries.
Boundaries and dependenciesWhere identity, tenant context, or input trust changes. Note shared storage, caches, external services, and inherited controls.
Assumptions and unknownsWhat you believe is enforced, where you believe it is enforced, and what evidence is still missing.

Do not stop at “the service is internal” or “the user is authenticated.” Name the caller’s actual authority and the check that limits it.

Core Checklist

Copy these questions into the review notes. For each area, record answered with a design or implementation reference, open with an owner and next step, or not applicable with a reason. An unanswered question stays open.

1. Identity And Permissions

  • How is the caller’s identity established? Are token issuer, audience, expiry, and scope checked where applicable? What happens after logout, revocation, or a role change?
  • Where does the server authorize this caller to perform this action on this object? What does the UI prevent that a direct API call could still attempt?
  • What happens if identity or policy lookup fails? Can an admin path, service account, or support feature bypass the normal checks, and what constrains that authority?

2. Ownership And Tenant Isolation

  • Where does user or tenant context come from? Can a caller replace an object ID, tenant ID, storage key, or destination to access someone else’s resources?
  • Do list, search, bulk, export, download, and background paths enforce the same ownership rules as the ordinary read and write paths?
  • Can shared caches, queues, temporary files, or connection pools mix data or authority between users, tenants, or jobs?

3. Input And Sensitive Operations

  • Which attacker-controlled values reach database queries, file paths, commands, templates, deserializers, network requests, or rendered output?
  • Do parsing, decoding, normalization, and validation agree with how the receiving component interprets the value? What changes if input is malformed, nested, or oversized?
  • Can a caller change fields the UI never exposes, choose an unexpected operation, or turn stored data into executable instructions later?

4. Data And Secrets

  • What sensitive data is collected, stored, or sent elsewhere? Who can read it in primary storage, backups, logs, traces, errors, notifications, and exports?
  • Where are credentials and encryption keys stored? Who can retrieve or use them, how are they rotated or revoked, and what is exposed if one component is compromised?
  • Do retention and deletion cover derived copies, temporary artifacts, and backups according to the intended policy? What happens to access after sharing is revoked?

5. Workflows And Background Jobs

  • Can valid actions be repeated, reordered, replayed, or run concurrently to break a business rule? What must remain true after partial failure or a retry?
  • When work moves to a queue or scheduled job, whose identity and permissions does it use? What happens if permissions change before execution or before the result is downloaded?
  • Can a caller skip a required state transition, alter an approved operation, or substitute the object or destination between validation and use?

6. Resource Limits And Dependencies

  • Can a small request trigger expensive queries, large responses, archive expansion, many jobs, or paid downstream calls? Where are time, size, concurrency, and cost bounded?
  • Can one tenant exhaust resources shared by others? Do quotas cover background work and retries as well as incoming requests?
  • What happens if a dependency times out, returns malicious data, or becomes unavailable? Do fallback behavior and retries preserve the security rules?

7. Detection And Recovery

  • Can we reconstruct who did what, to which resource and tenant, using which authority? Can an attacker forge, erase, or flood that evidence?
  • Which abuse signals need alerts, and who acts on them? Can we investigate without logging credentials or unnecessary sensitive content?
  • How do we stop the damage: revoke access, cancel jobs, disable an integration, roll back, or restore data? Who owns that action, and how is recovery checked?

Feature-Specific Questions

Use the sections that match the system. Record why the others do not apply.

Outbound Requests, Webhooks, And Integrations

  • Can a user-controlled URL reach internal services, loopback, link-local addresses, or cloud metadata? Are redirects and DNS changes covered at the point a connection is made?
  • What destinations and protocols are needed? Which application and network controls limit egress, and can credentials or sensitive headers be sent to an unintended destination?
  • How are incoming webhook origin, integrity, freshness, and replay checked? Can an integration act with more authority than the user who configured it?

Uploads, Archives, And File Processing

  • Can filenames, paths, symbolic links, or archive entries escape the intended directory or overwrite another user’s data?
  • What limits constrain decompressed size, parser work, and execution time? Which identity and sandbox process the file?
  • Can uploaded content execute when processed or served? Who can retrieve the original, temporary files, and generated artifacts?

AI Features And Agents

  • Can retrieved documents, tool results, or saved memory influence tool choice, arguments, data access, or destinations? What happens if that content contains attacker instructions?
  • Does the execution layer independently authorize each tool action and validate its arguments? What limits the agent’s data access, permissions, and spending?
  • Which actions need approval, and is that approval bound to the exact action being executed? Can model output expose private context or become trusted code or markup?

For a deeper pass, use the AI Security Review Notes.

Deployment And Privileged Operations

  • Who can change code, dependencies, build artifacts, configuration, secrets, or access policy? What would a compromised build or deployment identity be able to do?
  • Are development, test, production, and tenant environments separated in the places that matter, including credentials, storage, and administrative access?
  • Can a feature flag, migration, rollback, debug endpoint, or emergency access path bypass the controls identified in this review?

Write A Threat Someone Can Test

“Broken access control” names a category. A useful threat explains an actor, a reachable path, a missing or bypassed control, and the resulting harm.

[Actor with these capabilities] can [action] through [entry point or flow],
crossing [boundary] because [assumption fails or control is missing].
This could cause [specific harm].

We will [response] at [enforcement point].
We will verify it with [test or review evidence], expecting [observable result].

Separate what the design intends, what the implementation does, and what has been tested. A planned control needs an implementation owner. An implemented control still needs evidence that it blocks the abuse path.

Worked Example: An Asynchronous Export

Suppose an API queues a tenant export. A worker reads records, writes a file to object storage, and returns a download through the API. The worker has access to multiple tenants. The important boundaries are caller to API, API to worker, worker to shared storage, and artifact to downloader.

FieldExample review note
RequirementA user can export and download only the records they are currently permitted to access in their tenant.
ThreatA tenant A user submits a tenant B job ID to the download endpoint. If that endpoint looks up the artifact by job ID without checking ownership, it returns tenant B’s export.
Related assumptionThe queue preserves validated tenant and requester context, and the worker constrains every data read to that context. This needs a separate check from download authorization.
ImpactDisclosure of another tenant’s records through a legitimate export workflow.
ControlsAuthorize job creation; preserve trusted job context; scope worker reads and artifact ownership to the tenant; reauthorize access at download. Keep stored artifacts private.
VerificationCreate exports for A and B. As A, request B’s job status and download: neither exposes metadata, a URL, or bytes. Try substituting B’s tenant at creation and check the worker’s data scope. Revoke A’s permission before execution and before download; confirm each stage enforces the current-access requirement.
Decision and ownerIllustrative: block release until cross-tenant and revoked-access cases pass. The export feature owner implements the controls and links the test results.

Use a successful same-tenant export as a positive control. A request that fails because the test setup is broken tells us little about authorization.

If the design uses signed download URLs, record their lifetime and revocation limits. Reauthorizing URL issuance does not revoke a URL that was already issued; the chosen delivery mechanism must meet the access requirement above.

Prioritize And Decide

For each threat, record the access an attacker needs, how reachable the path is, the likely harm, and how many users or tenants could be affected. Note uncertainty explicitly. Use the team’s existing risk scale if it has one.

Start with credible paths to sensitive data, privileged actions, cross-tenant access, irreversible changes, or broad service disruption. Follow connected weaknesses: a URL fetch may expose a service credential that can then reach another tenant’s data.

Choose a response: change the design to remove the path, add a control, or explicitly accept the remaining risk. Delegating a control to a provider still requires a named owner and evidence that it applies to this deployment.

Accepted risk needs a decision-maker with authority to accept it, a rationale, and a date or condition for reconsideration. An open question about a critical boundary needs an owner and a release decision; it should not quietly become an accepted risk.

Copyable Review Template

Paste this into a design document or issue. Duplicate the threat section for each concrete abuse path.

Feature / change / version:
Owner / reviewers / review date:
Design and data-flow diagram:
Scope and exclusions:
Assets, affected people, and security requirements:
Actors, entry points, and trust boundaries:
Dependencies and inherited controls:
Assumptions and unanswered questions:
Checklist notes: answered + reference / open + owner / not applicable + reason

Threat ID / title:
Actor and required access:
Entry point / affected flow / boundary:
Abuse path and failed assumption:
Impact / reach / risk rationale:
Response and control enforcement point:
Control status: planned / implemented / verified
Verification: setup / action / expected denial and allowed behavior
Evidence and its limits:
Implementation owner / tracking issue / due date:
Remaining risk / acceptance owner / rationale / revisit date:

Review outcome: ready / changes required / more investigation
Release conditions and unresolved work:
Next review date or change trigger:

Before Closing The Review

  • The diagram covers the reviewed flow, including asynchronous work and outputs.
  • Important threats have a response, an owner, and a tracking issue or recorded decision.
  • Controls have enforcement points and verification steps. Missing evidence remains visible.
  • Release conditions and any accepted risk are recorded with the appropriate decision-maker.
  • The model lives with the design or code and names when it should be revisited.

Revisit when permissions, tenant boundaries, data sensitivity, entry points, integrations, deployment authority, or agent capabilities change. Incidents and bypasses are also reasons to update the model and its tests.

Further Reading