Attack Trees

Mapping every path to an attacker's goal

An attack tree puts the attacker's goal at the root and breaks it down into the different ways to reach it. OR branches mean "any one of these works", AND branches mean "all of these are needed". Adding cost or difficulty to each leaf shows the cheapest path, which is where defenses matter most.

Intermediate · 5 steps

Popularised byBruce Schneier (1999)
RootAttacker's goal
BranchesOR (any) and AND (all)
Leaves annotated withCost, skill, likelihood
Used inPASTA stage 6, safety and security analysis
Pairs withSTRIDE, MITRE ATT&CK

Step by step

  1. Set the goal The root of the tree

    The root is what the attacker wants: "take over a customer account". To log in, they need two things, a password AND a way past MFA, so the root has an AND branch with two children.

  2. Branch 1: get the password OR: any one works

    There are several ways to get a password, and any one is enough, so this is an OR branch: phish the user, reuse a password leaked from another site (credential stuffing), or install malware on their device.

  3. Branch 2: get past MFA OR: any one works

    To defeat MFA the attacker could flood the user with push prompts, take over their phone number (SIM swap), or call the help desk pretending to be the user and ask them to reset MFA.

  4. Find the cheapest path Annotate the leaves

    Each leaf gets a rough cost and skill level. Combining the cheapest option from each AND child gives the most likely attack: reused password plus a help-desk MFA reset. That single path is where defending pays off most.

  5. Prune the tree Defend, then recalculate

    The team blocks breached passwords and rate-limits logins, and makes the help desk verify identity strongly before any MFA reset. Those branches become expensive, so the next-cheapest path is recalculated, and passkeys are planned to close the MFA branch entirely.

Best practices

More in Secure Development.