Risk, legal & society · Risk

Attack trees (Schneier)

Best for Growth to Enterprise

ATTACK GOALWAY AWAY B

Use it when

One attacker goal, such as stealing customer data, worries you, and you need every route to it, the cheapest route, and the defense that raises its cost most.

Skip it when

  • You need to cover every threat category across a system design before going deep on any one goal. Use STRIDE threat modeling, whose threats can each become a tree here.
  • The event you fear comes from random faults in components, with failure data and no attacker choosing a route. Use Fault tree analysis instead.
  • You need to see at which phase your controls detect or stop real intrusions. Use Cyber Kill Chain.
  • You need the loss from a security scenario in money for a funding decision. Use FAIR (factor analysis of information risk).

What to apply first and what to use instead are listed below.

Approaches

Attack tree with what-if values

Leaves carry values such as cost, skill or special equipment, the analyst rolls them up to the root, and each defense is tested by changing the leaf values it affects.

  • Pro It is quick to build on a whiteboard or spreadsheet and easy to query for the cheapest route.
  • Con Defenses sit outside the tree, so every option means editing leaf values by hand and keeping track of what changed.

Attack-defense tree

Defense nodes attach to the attack steps they counter, attacker workarounds attach to those defenses, and values roll up across both.

  • Pro One model shows which defense blocks which step and how an attacker might respond.
  • Con The tree grows larger, and its values need rules for both attack and defense nodes, which usually means a modeling tool.

Inputs

  • Attacker goal
    One outcome an attacker wants, such as changing payment details on an account, taken from a threat list or the risk register.
  • System description
    Architecture diagrams, data flows, sites, and the staff and suppliers with access, for the current version, from engineering and operations.
  • Attacker profiles
    The attackers you expect, with their money, skill, access and appetite for risk, from threat intelligence and incident history.
  • Leaf value estimates
    Cost, skill, need for special equipment, legality or likelihood for each basic attack, from penetration tests, incident records and expert judgment.
  • Threat listOptional
    Threats found for the same system in a STRIDE threat modeling session.
  • Existing subtreesOptional
    Trees built earlier for shared parts, such as a cloud admin account or a password reset flow.

Steps

  1. Write the attacker goal as the root of the tree, one tree for each goal.
  2. Break the root into the ways to reach it. Mark children as OR when any one is enough and AND when all are needed, and repeat down each branch until every leaf is a basic attack you can estimate.
  3. Have someone outside the building team review the tree and add missing branches, and plug in existing subtrees for shared parts.
  4. Give every leaf the values you need, such as possible or impossible, cost in dollars, skill level or special equipment, and note who estimated each one.
  5. Roll the values up to the root, taking the cheapest child at an OR node and adding costs at an AND node. Then mark which routes each attacker profile can afford.
  6. Test each candidate defense by changing the leaf values it affects and recomputing the root, then choose the defenses that most raise the cheapest route for your likely attackers.

Output

An attack tree for one goal, with a short brief naming the cheapest routes for each attacker profile and the defenses chosen against them.

  • Attacker goal
  • Routes open to each attacker profile
  • Cheapest route and its root value
  • Leaf values and who estimated them
  • Security assumptions the tree relies on
  • Candidate defenses and the root value with each
  • Chosen defenses, owner and date

Done when

  • Every node below the root is marked AND or OR, and every leaf is a basic attack with a value.
  • Each leaf value names its source or the person who estimated it.
  • Someone outside the building team has reviewed the tree, and their additions are recorded.
  • The cheapest route is named for each attacker profile.
  • Each chosen defense shows the root value before and after it.

Measure

Update the tree when the system changes, when a new attack method is published, or when a test finds a route you missed, and at least once a year. Over the next 12 months, check whether penetration tests and incidents follow routes in the tree. Track the cheapest route's value against the previous version. It worked when tests find no route cheaper than the tree predicts.

Hypothetical example

Fernhill Payroll asked how an attacker could change an employee's bank details to divert pay. The OR branches were phishing an admin login, abusing password reset, bribing a support agent and exploiting the API. Password reset was an AND, needing the user's email access and the answer to a security question. The security lead estimated phishing at 2,000 dollars, reset at 5,000, bribery at 20,000 and the API at 50,000. For a criminal group, phishing was cheapest. Hardware security keys for admins raised phishing to 40,000, so reset became cheapest. A 48-hour hold with an email alert on bank changes raised reset to 30,000. The root then sat at 20,000 through bribery, which the team accepted and recorded as an assumption.

Common mistakes

  • Putting several goals into one tree. Build one tree per goal and reuse subtrees between them.
  • Treating leaf values as facts. Record who estimated each value and revise it as attacks get cheaper.
  • Ignoring who the attacker is. Filter routes by each profile's money, skill and appetite for risk.
  • Stopping at the first draft. Have someone else review the tree and refine it over several sessions.
  • Multiplying leaf probabilities without checking that the leaves are independent. Use cost, skill or possible values, or write the independence assumption down.

Sources

By company stage

  1. Pre-IdeaNot applicableThere is no system or asset an attacker could target.
  2. IdeaUsefulA quick tree helps if the MVP holds sensitive data though it is not required.
  3. Early StartupUsefulHelpful for key assets but security work is still light.
  4. StartupUsefulGrowing customer data makes structured threat analysis helpful.
  5. GrowthCriticalThousands of customers and sensitive data make systematic threat modelling necessary.
  6. ScaleCriticalMultiple products and large attack surfaces require structured analysis of attacker paths.
  7. EnterpriseCriticalMany business units and critical assets need rigorous threat modelling and cost based prioritisation.

Apply first

  • Fault tree analysisRisk, legal & society · Risk

    Attack trees adapt fault-tree AND/OR logic to an attacker's goals.

Use instead

  • STRIDE threat modeling

    use STRIDE to cover threat categories systematically during system design; use attack trees to analyse one attacker goal in depth, with costs and probabilities.

  • Fault tree analysis

    The event you fear comes from random faults in components, with failure data and no attacker choosing a route. Use Fault tree analysis instead.

  • Cyber Kill Chain

    You need to see at which phase your controls detect or stop real intrusions. Use Cyber Kill Chain.

  • FAIR (factor analysis of information risk)

    You need the loss from a security scenario in money for a funding decision. Use FAIR (factor analysis of information risk).

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account