Skip to content

Visualization

Aurora Navas edited this page Mar 13, 2026 · 7 revisions

Visualize a MAL Model or Attack Graph

Option 1: Visualize Model in mal-gui

Prerequisites

  • Create/find a MAL scenario file (.yml/.json)

Install and use mal-gui to load your model file (.yml or .json). You can follow this tutorial.

Option 2: Visualize Model + Attack Graph with mal-toolbox CLI

For this option, you need:

  • A MAL model language file (.mal)
  • A MAL model file (.yml/.json)

The MAL-toolbox CLI supports visualizing an attack graph in graphviz, neo4j or drawio when it is generated through the CLI.

Graphviz

In this case, we need to install Graphviz first. You can follow this link.

Run this command: maltoolbox generate-attack-graph --graphviz <model_file> <lang_file>

This command will output two visualization files:

  • <model_name>-attack_graph.gv
  • <model_name>-attack_graph.gv.pdf

Option 3: Visualize Model + Attack Graph programatically

  • Create/find a MAL model language file (.mal)
  • Create/find a model file (.py)

Clone this wiki locally