Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Architecture Leadership
Lesson 16 of 32

Security architecture: threat modelling and zero trust

Find threats systematically with STRIDE on a data-flow diagram, and design for zero trust instead of a soft internal network.

18 min read

Threat modelling in four questions

Adam Shostack's framework reduces threat modelling to four questions that any team can answer in a one-hour session. What are we working on? What can go wrong? What are we going to do about it? Did we do a good job? Start with a data-flow diagram of the design: external entities, processes, data stores, data flows and, crucially, trust boundaries, the lines where data crosses from less trusted to more trusted zones. Most vulnerabilities sit on those lines. Keep the diagram at container level so the session stays focused.

STRIDE

For each element crossing a trust boundary, walk the STRIDE categories and write down concrete threats. Each category maps to a property you want to protect.

  • Spoofing (authenticity): an attacker pretends to be a user or service. Mitigate with strong authentication and mTLS
  • Tampering (integrity): data modified in transit or at rest. Mitigate with TLS, signatures, checksums
  • Repudiation (non-repudiation): someone denies an action. Mitigate with audit logs
  • Information disclosure (confidentiality): data leaks. Mitigate with encryption and least privilege
  • Denial of service (availability): mitigate with rate limits, quotas, autoscaling
  • Elevation of privilege (authorisation): mitigate with authorisation checks on every request

Zero trust

The old model trusted anything inside the corporate network. Once an attacker got in (a phished laptop, a vulnerable server), they could move freely. Zero trust, as described in NIST SP 800-207 and Google's BeyondCorp, removes implicit trust from network location. Every request is authenticated and authorised based on identity and device posture, every hop is encrypted, and access is the minimum needed. Service-to-service calls use workload identities (SPIFFE IDs, cloud IAM roles) and mTLS rather than shared secrets or IP allow lists.

Making it routine

Threat modelling only works if it is cheap enough to do on every significant design. Add a STRIDE table to the design doc template, keep a library of common threats and mitigations per component type (queue, public API, file upload, webhook), and record the top risks as tickets. A classic example is server-side request forgery (SSRF) in any service that fetches user-supplied URLs: block private IP ranges and cloud metadata endpoints, resolve DNS once and pin the IP, and fetch from an isolated network segment.

Key takeaways

  • Draw a data-flow diagram with trust boundaries; most threats live where data crosses them.
  • Walk STRIDE per boundary crossing and record concrete threats with mitigations.
  • Zero trust authenticates and authorises every request by identity, not network location.
  • Make threat modelling routine with a template and a reusable library of threats per component.

Sign in to track lessons and earn badges.

Data governance and ownership (data mesh)Identity: authentication, authorisation and SSO

Challenge checkpoint

Course: 0/32 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 2/10Design a Link Preview ServiceThreat-model a service that fetches untrusted URLs and design its SSRF defences across the trust boundary.Easy
All 10 challenges →