StoicBuilder

HandbookXIV the VallumThreat modelling

XIVthe Vallum, Defend it

Threat modelling

1 min readUpdated 28 November

In plain words

Threat modelling is a short, structured review of a design that asks four questions: what are we building, what can go wrong, what will we do about it, and did we do a good job.

Where you see it

Harbor plans share links for deploy logs. In a 30-minute session the team sketches the flow, then walks STRIDE over it: can a link be guessed, does it expire, can it reach another project's logs, could the logs hold secrets? Four design changes come out before any code exists.

docs/threat-models/share-links.mdagent
Feature: share a deploy log by linkSpoofing anyone with the link can read: use a random 128-bit token, not the log IDTampering links are read-only; no write route accepts themRepudiation record who created each link, and whenInfo disclosure logs can contain env values: redact before sharingDenial of service rate-limit link viewsElevation a token opens one log, never the project
Each STRIDE letter becomes a question about this feature, and each answer becomes a design decision.

What goes wrong

  1. Doing it after launch

    A threat model of a finished feature turns into a list of expensive rewrites, and the exposure has already happened. Do it at the design stage, when moving a box on the diagram costs nothing.

  2. Listing threats without decisions

    A page of worrying possibilities that nobody acts on is theatre. Each threat needs a decision, whether fix, reduce or accept with a reason, and an owner.

  3. Only imagining outside attackers

    Many real incidents come from a signed-in customer changing IDs, a leaked token or a staff account with too much access. Include curious users and insiders in the list of who might misuse it.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Before writing code for this feature, describe its data flow as a list of actors, entry points, data stores and trust boundaries. Then go through STRIDE for each entry point and give me a table of threats, the mitigation you propose, and anything you think we should accept, with the reason.

Quick check

Sign in to earn +10 XP for it

When is the cheapest time to threat model Harbor's new share-link feature?

Got a prompt that touches threat modelling?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.