Application security/threat-modeling

Threat Modeling

Structured analysis of what could go wrong in a system, performed early so design changes are still cheap.

Why it matters

Design-level flaws — broken trust boundaries, missing authn on internal RPCs, cross-tenant exposure — are the bugs no scanner ever catches because the code is doing exactly what it was designed to do. Catching them at design time costs an order of magnitude less than after release.

How it's tested & exploited

A data-flow diagram is annotated with trust boundaries, then walked element-by-element through STRIDE (or PASTA / LINDDUN). Each identified threat is mapped to an existing control or an open engineering ticket. Mature teams trigger a model review whenever a pull request crosses a trust boundary.

In depth

Threat modeling is the practice of looking at a system design — a data-flow diagram, a sequence diagram, an architecture sketch — and asking "where could this go wrong, who would benefit from breaking it, and what are we doing to stop them." It belongs in the design phase: a threat model produced after the code ships is a threat report. The discipline became mainstream through the STRIDE framework (Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege) popularised by Microsoft in the early 2000s; modern teams also use PASTA (Process for Attack Simulation and Threat Analysis), LINDDUN (privacy-focused), and the OWASP Threat Dragon tool to build attack trees.

A useful threat model is iterative, lives in the same repository as the code, and is updated whenever the architecture changes. The minimum viable artefact is a data-flow diagram annotated with trust boundaries, a STRIDE-per-element walkthrough that lists threats against each component, and a mitigation column that maps each threat to an existing control or an open engineering ticket. Mature teams plug threat models into the secure SDLC: a pull request that crosses a trust boundary triggers a threat-model review the same way a database migration triggers a DBA review.

Threat modeling is cheap insurance. Industry data consistently shows that fixing a security defect at design time costs an order of magnitude less than fixing the same defect after release, and two orders of magnitude less than after a breach. It is also the most reliable way to surface design-level vulnerabilities — broken trust boundaries, missing authentication on internal RPCs, cross-tenant data exposure — that no scanner will ever catch because the code is doing exactly what it was designed to do.

The output of a threat-modeling session is not a 200-page document. It is a short prioritised list of "what we will do about this" tickets, owned by engineers and tracked to completion. See VAPT services for downstream validation of the mitigations a threat model identifies.

Related terms

Apply Threat Modeling to your programme

AxVeil scopes engagements against the standard you need to satisfy. Send the asset list, the target framework and the audit deadline — we respond with a fixed-fee proposal and a sample report from a comparable engagement.