Est.

Attack Tree Diagram Notation and Tooling

Attack trees only guide security decisions when gates, attributes, and tools agree.

· 8 min read
Cover illustration for “Attack Tree Diagram Notation and Tooling”
Attack Tree Methods · November 17, 2026 · 8 min read · 1,909 words

A tidy attack tree hierarchy supports rigorous security analysis only with suitable diagram notation and tooling. OR/AND refinements define which attacks are valid, attributes allow them to be compared, and Attack-Defense Tree extensions show the trade-offs between countermeasures. The chosen tool must work with those formal rules and answer the question the analysis is meant to address. A useful tree needs all of them to agree.

What attack trees are and what their formal structure commits you to

Schneier introduced attack trees in 1999 as a way to decompose an attacker’s goal into labeled sub-goals. The root is the main goal, intermediate nodes bring together sub-goals, and leaves are basic attack steps, or BASs. Those leaves are atomic actions that cannot be decomposed further. The hierarchy alone does not define the attack. Its meaning depends on the gates that connect each parent to its children.

An OR gate means that any one child is sufficient to achieve the parent goal. An AND gate means that every child is required. Substituting OR for AND overstates the attack surface by accepting incomplete combinations. Substituting AND for OR understates it by treating alternatives as joint requirements.

Copae et al. at the University of Twente illustrate the distinction with stealing user data. The attacker needs both credentials and the decryption key, so those requirements belong under an AND gate. Credentials, however, can be obtained through blackmail, phishing, a software vulnerability, or an access control exploit. Those alternatives belong under an OR gate. A defense that blocks one alternative does not eliminate the others, while preventing a required component can defeat the combined goal. Gate correctness is therefore a prerequisite for attribute calculations, defensive extensions, and the tools that operate on them.

How attribute assignment turns a structural diagram into a decision-making instrument

A valid structure shows which attacks are possible, but it does not show which attacks should be addressed first. Attribute assignment supplies that distinction by attaching measurable values to basic attack steps. Attacker cost shows how this works without the need for a separate statistical model. Each leaf has a cost, and each gate sets how its children’s costs combine. The calculation follows the logic of the attack.

At an AND node, the attacker must pay the cost of every required child. At an OR node, a rational attacker who wants the minimum-cost route chooses the cheapest child. These aggregation rules allow leaf-level values to produce a minimum-cost attack strategy at the root. An incorrect gate therefore changes both the feasible strategy and its computed cost. Two structurally identical trees can represent very different investment priorities once their leaf costs are assigned.

The arithmetic also depends on the model’s shape. Copae et al. encode attacker and defender metrics as semirings, so the same formal rules can handle every attribute type without a separate algorithm for each. Their framework computes optimal strategies for tree-structured Attack-Defense Trees through a bottom-up pass. General directed acyclic graph structures require translation to binary decision diagrams for correct computation. A tool’s ability to draw a shared substructure does not, by itself, establish that it can analyze that structure correctly.

If some leaves have attributes and others remain blank, the computed metrics can silently undercount attacker options. Both structural coverage and attribute coverage must be checked, because an attack step shown in the tree may still be left out of the numerical analysis. The resulting priority ranking depends on both. Quantitative output is defensible only when the aggregation rules and the values being aggregated describe the same attack model.

Where plain attack trees break down and what ADTree notation adds

A plain attack tree represents how an attacker achieves a goal, but it has no mechanism for representing countermeasures. That omission becomes a structural limitation when the question concerns whether defenses are sufficient. Keeping attacks in one document and controls in another leaves their interaction outside the model. The diagram cannot directly express which defense disables which attack. Attack-Defense Trees, or ADTrees, extend the notation to represent that relationship.

Kordy, Mauw, Radomirović & Schweitzer formalized ADTrees in the Journal of Logic and Computation. The extended notation distinguishes attack nodes from defense nodes and connects them through an INH, or inhibition, gate. An active defense deactivates its associated attack node. In the user-data example, this allows a countermeasure to be attached to the attack it inhibits. The existing OR and AND refinements still govern the availability of other alternatives and the blocking of required components.

The interaction can continue to arbitrary depth. An attack can be countered by a defense, that defense can be circumvented by another attack, and that attack can face another defense. The root can represent either the attacker’s goal or the defender’s goal, depending on whose goal the analysis evaluates. This is goal decomposition. Vithanco’s notation documentation recommends ADTrees when attacks and defenses need joint evaluation, while reserving plain attack trees for an attacker-only scope and distinguishing both from temporal sequence models.

Copae et al. point out that prior ADTree research modeled attacker attributes but left out defender attributes. Defenders have limited resources too, so their costs must be included to give a full view of the security trade-off. Their extension encodes both sides’ metrics as semirings and computes the Pareto front between defense and attack metrics. That provides a formal basis for selecting a cost-efficient defense portfolio, rather than identifying a defense without accounting for what it consumes.

The gap between building an attack tree manually and building one from evidence

Manual construction requires security experts to design the tree from scratch, with opportunities to omit attacks, misstate their requirements, or overestimate and underestimate their feasibility. The blank page remains a practical obstacle. Konsta et al. at DTU Compute identify this expert effort as a gap between research and actual employment of attack trees. They also distinguish generation from real event data from synthesis based on traces of existing models.

Their process mining approach starts with an event log of a violated system. A Process Discovery algorithm derives a Process Tree, which is translated into an Attack Tree in RisQFLan format. The resulting model reflects observed attacker steps. Its scope still depends on how the log is summarized. The Inductive Miner algorithm’s noise threshold controls whether the tree emphasizes frequent behavior or retains infrequent behavior, allowing a balance between completeness and parsimony.

The output remains open to expert revision. Practitioners can modify and adapt the generated tree through semi-automatic modeling, moving human judgment from blank-page construction toward refinement. It also changes the basis of review, because the initial structure comes from observed events.

ThreatForest from AWS takes a different starting point by generating structured attack trees from source code repositories. It maps attack steps to MITRE ATT&CK techniques, with CAPEC and cloud-specific threat matrices planned as future pluggable backends. Its pipeline includes three human-in-the-loop validation points, but automation still has a specific accuracy constraint. ATTACK-BERT maps steps to candidate techniques using cosine similarity, and this embedding stage is the dominant accuracy bottleneck, with TTP-mapping quality substantially lower than threat-statement and attack-tree quality. Logs base a tree on behavior that has been observed, while code bases it on the structure of the system. Both are more reliable starting points than expert intuition alone, but experts still need to review the trees they produce.

What the current tooling landscape actually covers and where each tool fits

SecurITree from Amenaza Technologies is a commercial tool built for attack tree analysis, with detailed attack-path attributes, risk metrics, and adversary personas. It fits cases where decisions need the tree’s quantitative results as well as a review of its structure. AttackTree from Isograph is another commercial option, combining attack tree modeling with threat analyses beyond basic visualization. ADTool, the Attack-Defense Tree Tool, is purpose-built for the extended ADTree formalism. These products address analysis and notation.

ENT is an open-source attack tree visualizer built in Node.js. Its lightweight visualization role differs from the detailed analytical role of dedicated analysis tools. Deciduous is a web app that simplifies building decision trees for adverse scenarios. Mermaid.js and Mermaid.live offer general-purpose diagramming used for attack trees when text-based, version-controllable notation is the priority. These options make the model accessible as a diagram without supplying the same computational capabilities as formal analysis software.

Vithanco provides a web-based notation environment with an interactive ADTree editor and a worked example. It implements the Kordy et al. formalism and visually distinguishes red attack nodes from green defense nodes. That distinction supports communication of the countermeasure relationship within the diagram. The notation is the organizing feature here. An editor that exposes attack and defense nodes serves a different purpose from a tool selected primarily to compute quantitative results.

AWS presented ThreatForest at re:Invent 2025 as an open-source multi-agent system for automated generation. Beyond constructing trees and mapping attack steps, it synthesizes mitigations. A directed graph orchestrates its pipeline, with deterministic verification gates and bounded retries. To generate trees from event logs, the process mining approach instead has a Python tool that is freely available on GitHub and exports trees in RisQFLan format. RisQFLan supplies quantitative risk modeling and analysis as the analytical back-end for that route.

These capabilities form a set of trade-offs. Visualization tools such as ENT and Mermaid cannot compute minimum-cost attack paths or Pareto-optimal defenses, while analysis tools such as SecurITree, ADTool, and RisQFLan do not themselves remove the construction burden. Automated generation cuts the work of building a tree, but the output still needs to be reviewed and passed to a suitable tool for analysis.

How notation precision and tool choice combine to determine whether a tree is analytically useful

The evaluation of an attack tree therefore has three linked parts, which are gate correctness, attribute completeness, and computational capability. A minimum-cost calculation over incorrect gates can produce a precise answer to the wrong attack model. Complete gates with incomplete attributes create a different failure, because some modeled actions never receive a defensible value. Neither defect is repaired by presentation quality. The lesson for practitioners is to assess the notation and the analysis together, rather than treating tool selection as a separate procurement question.

In practice, unannotated leaves should be marked as unknown rather than implicitly treated as zero-cost or zero-probability actions. A visualization tool cannot answer which path is cheapest for the attacker, while a semiring-based analysis tool is unnecessary overhead when the sole purpose is communicating the attack surface to a non-technical stakeholder. The distinction is between documenting a model and computing a justified conclusion from it.

Agentic systems add a content requirement without invalidating the notation. Their attack surfaces include the reasoning processes, persistent memory, tool calls, and multi-agent coordination they use. Leaf nodes therefore need to show prompt injection paths, tool abuse chains, and indirect injection through documents or web content, all of which are missing from classical templates. The notation can express these attack steps. ADTrees are particularly useful where defenders can intervene at multiple points, provided those interventions are represented as goal and countermeasure relationships rather than a temporal workflow, with defender resource constraints included.

The practical test is whether the model supports a defensible priority ranking. Practitioners should be able to trace its root-to-leaf decomposition, account for every required branch, assign measurable attributes at every leaf, and aggregate those values through the gates. The chosen tool must be able to do the computation needed to answer the question. If that chain cannot be completed, the tree remains documentation.

Sources

  1. New Notation: Attack-Defence Trees (ADTrees) now available on Vithanco website
  2. Attack-Defense Trees with Offensive and Defensive Attributes (with Appendix)
  3. ThreatForest: Multi-Agent Attack Tree Generation with Pluggable TTP Framework Mapping
  4. A Survey of Automatic Generation of Attack Trees and Attack Graphs
  5. Attack Tree Generation via Process Mining

More in Attack Tree Methods