Threat Modelling — STRIDE, PASTA, LINDDUN in Practice

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 25, 2026
13 min read
Read as

Last updated: April 29, 2026

Threat modelling methodologies that work — STRIDE, PASTA, attack trees, LINDDUN for privacy. The practical workflow for engineering teams, anti-patterns to avoid, tooling, and DPDP/ISO alignment.

The 90-minute meeting that saved ₹2 crore

A Series-B Indian fintech was about to ship a new feature: instant loan disbursement via UPI. The product manager wanted it live for the festive season. Engineering had two weeks. The architecture diagram was on a whiteboard.

The CTO insisted on one thing before any code was merged: a 90-minute threat modelling session. Three people in the room — the lead engineer, the product manager, and a security consultant on retainer (₹25,000 a day, called in for the day).

They walked through the design. Customer requests a loan. Backend checks credit. If approved, money is disbursed to the customer’s UPI ID. Simple.

The consultant asked one question: “Where does the customer’s UPI ID come from?”

“From the customer,” the engineer said. “They enter it on the screen.”

“And after approval, who triggers the disbursement?”

“The backend service.”

“Using which UPI ID?”

“The one the customer entered.”

The consultant drew a line across the whiteboard. “That UPI ID went through your frontend, your API gateway, your loan-decision service, and a queue. By the time the disbursement service reads it, it has been touched by four components, three of which have known scope creep. What stops a rogue insider in your customer support team from changing the UPI ID between approval and disbursement?”

Silence.

The next 60 minutes produced a list of seven design changes. The most important: the UPI ID gets cryptographically signed by the customer at submission, the signature travels with the request, and the disbursement service verifies the signature before sending money. Two days of additional engineering work.

Eight months after launch, the fintech’s competitor — a similar product without that signature check — had a fraud incident in which a colluding support agent changed UPI IDs on approved loans. ₹2.1 crore went out to the wrong accounts before anyone noticed. The competitor recovered most of it after a six-week incident response, paid legal fees, paid regulator fines, and paid the reputational cost. The fintech that did the threat modelling never had that conversation.

That is what threat modelling does, when it is done at the right time, by the right people, with discipline. This module is about how to do it.

What threat modelling is and is not

Threat modelling is a structured conversation about the security of a system, anchored to a model of how the system actually works. The output is a list of identified threats, the controls or design changes that mitigate them, and accepted risks that the team has consciously decided to live with.

It is not:

  • A risk register exercise (those happen later, with different inputs).
  • A vulnerability scan (those run against deployed code, not designs).
  • A compliance checklist (those map controls to standards, not threats to assets).
  • A solo activity by a security engineer (it requires the people who built the system).
  • A one-time workshop at the start of a project (it is iterative).

The four questions Adam Shostack popularised — “What are we building? What can go wrong? What are we going to do about it? Did we do a good job?” — are the operational core. Everything else is methodology dressing.

STRIDE — the workhorse methodology

STRIDE is the most practical framework for development teams. Created at Microsoft, it categorises threats into six types, each the inverse of a security property:

  • S — Spoofing (authentication failures): an attacker pretends to be someone they are not.
  • T — Tampering (integrity failures): unauthorised modification of data, code, or messages.
  • R — Repudiation (non-repudiation failures): an actor performs an action and credibly denies it.
  • I — Information Disclosure (confidentiality failures): data leaks to an unauthorised party.
  • D — Denial of Service (availability failures): the system is rendered unusable.
  • E — Elevation of Privilege (authorisation failures): an actor gains capabilities they should not have.

The strength of STRIDE is that it gives engineers a memorable framework to walk every component through. The weakness is that it is technology-centric — it asks what can go wrong, not why an attacker would attack.

STRIDE applied: a worked example

Take the fintech UPI feature. STRIDE-per-interaction across the trust boundary between customer browser and backend:

  • S (Spoofing): Can an attacker impersonate a legitimate customer? Mitigation: strong customer authentication, session integrity, device binding for high-value transactions.
  • T (Tampering): Can the UPI ID be altered after the customer submits it? This is the threat the consultant caught. Mitigation: customer-side signing, server-side verification.
  • R (Repudiation): Can a customer claim they never requested the loan? Mitigation: signed request payload retained, audit log including IP, device, and authentication factor used.
  • I (Information Disclosure): Can an attacker read another customer’s loan amount, account details, or UPI ID? Mitigation: tenant isolation, IDOR protection, encryption in transit and at rest.
  • D (Denial of Service): Can an attacker flood the loan-decision service? Mitigation: rate limiting per identity, queue depth controls, circuit breakers.
  • E (Elevation of Privilege): Can a customer-support agent disburse a loan without proper approval chain? This is the second threat the consultant caught. Mitigation: separation of duties, multi-approval for high-value disbursements, dual-control for support actions.

Six categories. Six threats surfaced. Two of them led to design changes that almost certainly prevented a real incident.

Trust boundaries — where threats actually cluster

A trust boundary is any place where the level of trust changes — between the public internet and your application, between the application and the database, between two services with different privilege levels, between a tenant boundary in a multi-tenant system. Threats cluster at trust boundaries.

Story: A Bengaluru e-commerce company we helped had no trust boundary between their main API and the inventory service. They had assumed the inventory service was “internal” and therefore trusted. A SSRF vulnerability in the main API let an attacker pivot directly to the inventory service and modify pricing. They sold ₹40,000 phones for ₹400 for 90 minutes before someone noticed. The post-mortem identified one root cause: there was no trust boundary drawn, so no STRIDE pass against the interaction, so the threat was never considered.

If your data-flow diagram has no trust boundaries, you have not finished drawing it.

PASTA — when business context matters

Process for Attack Simulation and Threat Analysis is a 7-stage methodology that starts from business objectives and works toward technical threats. It is heavier than STRIDE but produces threat models that map cleanly to risk language the business understands.

  1. Define the business objectives and security requirements.
  2. Define the technical scope — components, technologies, dependencies.
  3. Decompose the application — data flows, trust boundaries, entry points.
  4. Threat analysis — what threats are relevant, drawn from threat intelligence and historical incidents.
  5. Vulnerability and weakness analysis — where the system is susceptible.
  6. Attack modelling — building attack trees from threat to specific exploitation paths.
  7. Risk and impact analysis — what the business would lose, with concrete numbers.

When to use PASTA: When the audience for the output includes business stakeholders, not just engineers. We used it for a Mumbai BFSI client during a board-level discussion of moving customer KYC processing to a new vendor. STRIDE would have produced “the vendor could leak data” as a threat. PASTA produced “if the vendor leaks data, the regulatory penalty under DPDP §33 plus reputational impact is approximately ₹40 crore in a worst case, against an annual saving of ₹2 crore from the vendor change.” The board cancelled the vendor migration. STRIDE would not have closed that conversation.

Attack trees — for systematic exploration

An attack tree starts with an attacker goal at the root and decomposes it into the conditions that must be true for the goal to be achievable. Each child node is a sub-goal, an OR condition (any one path), or an AND condition (all paths required).

Worked example: Attack tree for “extract customer payment data from a fintech”:

  • Goal: Extract customer payment data
    • OR — Compromise the database
      • SQL injection in the customer-facing app
      • AND — Compromise a developer + Use their database access
        • Phish the developer
        • Steal their laptop
      • Exploit a backup misconfiguration (public S3 bucket)
    • OR — Compromise a privileged service
      • Steal an API key from GitHub Actions
      • SSRF to the internal admin API
      • Compromise a third-party SaaS that has read-only DB access
    • OR — Insider threat
      • Disgruntled engineer with production access
      • Bribed support agent with read access

For each leaf node, you can estimate the cost of the attack (₹), the difficulty (skill required), and the detection probability (will the SOC catch it). Then you can ask the most important question: which of these branches do our existing controls actually block? Often the answer surprises people.

Use attack trees alongside STRIDE, not instead of. STRIDE finds the threats; attack trees explore the paths.

LINDDUN — for privacy-aware threat modelling

LINDDUN is the privacy counterpart to STRIDE, indispensable when DPDP applies. Seven categories:

  • L — Linkability: ability to link two data points to the same individual.
  • I — Identifiability: ability to identify an individual from the data.
  • N — Non-repudiation: a privacy harm when the system makes denial impossible.
  • D — Detectability: ability to detect that a record about an individual exists.
  • D — Disclosure of Information: data leaking to unauthorised parties.
  • U — Unawareness: the individual is not aware of how their data is being used.
  • N — Non-compliance: with applicable privacy law (DPDP, GDPR).

Story: A healthtech startup was building a “anonymised” research dataset from patient records — name removed, but DOB, PIN code, gender retained. STRIDE produced no findings; the data appeared protected. LINDDUN found Linkability and Identifiability immediately: with DOB + PIN + gender, the Latanya Sweeney research from 2000 onward demonstrates 87% of Americans are uniquely identifiable, and Indian PIN codes are often more granular. The “anonymised” dataset was actually pseudonymised at best, fully re-identifiable at worst. They added k-anonymity controls before publishing. STRIDE alone would have shipped the bug.

For any system processing personal data, run LINDDUN alongside STRIDE.

The practical workflow that scales

When to threat model

  • A new system or major feature is being designed.
  • An existing system is undergoing significant architectural change (new auth provider, new data store, new integration).
  • A new trust boundary is being introduced (multi-tenancy, partner integration).
  • A new data sensitivity tier is being added (handling payments for the first time, processing health data).
  • An incident or near-miss has revealed a gap in prior models.

What to gather before the meeting

  • The architecture diagram or, more usefully, the data-flow diagram.
  • The data classification of each data element handled.
  • The threat intelligence or attack patterns relevant to the technology stack.
  • The compliance requirements applicable (DPDP, RBI, ISO 27001 Annex A).
  • The security assumptions being made (e.g. “the network is trusted” — usually false).

The session itself

  • Time-box: 90 minutes for a feature, half a day for a system. Longer than this and engagement collapses.
  • Attendees: the engineers building it, the engineering lead, a security engineer or champion, the product owner if business risk is in scope. No bigger than 5 people. More than that and people stop participating.
  • Walk the diagram element by element (or interaction by interaction). For each, ask STRIDE / LINDDUN questions.
  • Capture threats in a structured table: ID, category, description, affected component, likelihood, impact, planned mitigation, status.
  • Resist the urge to design solutions in real time. Capture the threat first; design the mitigation in follow-up work. The 90-minute fintech session captured 14 threats; designs for the seven that mattered came in the following week.

Outputs

  • A threat list with prioritisation.
  • A set of design changes or controls to implement before launch.
  • A list of accepted risks, with the business owner’s name attached.
  • An updated diagram if the threat modelling exposed missing trust boundaries or data flows.
  • A short summary the team can share with adjacent teams.

Follow-through

  • Threats become engineering tickets, owned and tracked like any other work.
  • The threat model document is committed to the repo alongside the code (markdown, version-controlled).
  • Re-visit the model on the next material design change. Threat models are living documents, not artefacts.

Anti-patterns: how teams fool themselves

  • The security review at the end. One Pune SaaS company we worked with did “threat modelling” two days before production launch. The model identified five critical issues. The product was 14 days from a contractual go-live. They shipped anyway, with three of the five unmitigated. Two of those three were exploited in production within four months. By the time the system is built, design changes are 10x more expensive.
  • The security-team-only model. If the engineers building the system are not in the room, the model is wrong. They know the system better than anyone. We have seen “comprehensive threat models” produced by external consultants that completely missed the actual data flows because the engineers were not consulted.
  • The 200-threat catalogue. Every system has theoretical threats. The good model focuses on the threats that change a design decision. If your model has 200 threats and the design changed in zero ways, you wasted a day.
  • The slide deck deliverable. Threat models live in the codebase, alongside the system. PowerPoint kills follow-through.
  • The one-and-done. Systems evolve. Models that are not re-visited become fiction. Re-visit on every major change.
  • Skipping the trust boundaries. If you cannot draw the trust boundaries, you cannot threat model. Draw them first.

Tooling that helps without getting in the way

  • Microsoft Threat Modeling Tool — free, supports STRIDE, generates a draft threat list from a DFD. Heavy and Windows-bound but produces good first drafts.
  • OWASP Threat Dragon — open source, web-based, lightweight, supports STRIDE. Good for distributed teams.
  • IriusRisk — commercial, integrates with Jira and IDEs, scales to enterprise. Worth it when threat modelling becomes a regular cadence across many teams.
  • pytm — Python-as-code threat modelling. Engineers describe their system in code; the tool generates DFDs and threat lists. Great for teams that already live in code.
  • Threagile — YAML-driven, generates risk reports and DFDs from a declarative model. Good fit for IaC-aligned teams.

For teams starting out: a markdown document and a whiteboard photo are perfectly sufficient. The fintech that prevented ₹2 crore in fraud used a whiteboard, a phone camera, and a Jira board. Tools matter less than the discipline.

Threat modelling in the Indian compliance context

  • DPDP Act 2023. A documented threat model, especially using LINDDUN, is one of the strongest pieces of evidence you can show the Data Protection Board that you considered “reasonable security safeguards” under Section 8(5). For Significant Data Fiduciaries, it is the foundation of a defensible Data Protection Impact Assessment.
  • RBI Cyber Security Framework. Threat modelling supports the risk identification and impact analysis requirements, particularly for systems handling payment, customer, or transactional data.
  • SEBI CSCRF. The 2024 framework explicitly references threat-led security testing — threat modelling provides the threats from which testing is led.
  • ISO 27001:2022. Annex A control 5.7 (Threat Intelligence) and 8.25-8.28 (secure development) lean on threat modelling as an operational practice. Auditors increasingly ask for threat models, not just policy statements.

Try this on your next feature

Pick the next feature your team is designing. Before the first PR is opened, do this:

  1. Day 0 (15 minutes). Draw the data-flow diagram on a whiteboard. Identify the trust boundaries. Take a photo.
  2. Day 1 (60 minutes). Get the engineers and a security-conscious peer in a room. Walk every interaction across a trust boundary. For each, ask the six STRIDE questions. If personal data is involved, ask the seven LINDDUN questions. Capture every threat in a simple table — do not stop to design solutions.
  3. Day 1 (15 minutes). Triage. Which threats matter? Which are theoretical? Which already have controls? Pick the top 5 to address.
  4. Day 2-7. Design the mitigations. They become engineering tickets. They get implemented as part of the feature, not bolted on later.
  5. Day 8. Commit the threat model markdown to the repo. Reference it in the PR.

You have just done threat modelling. The first time will feel awkward. The fifth time will feel natural. The tenth time you catch a real bug at design — like a UPI ID that was about to leak across a queue — will be the day you understand why every senior security engineer treats threat modelling as the highest-leverage security activity available.

It is not glamorous. It is a habit. Build it.

🧠
Check your understanding

Module Quiz · 6 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants