Setup/Build:
1.
Go to MAL-visualization/java folder.
> cd path-to-MAL-visualization/java
2.
Compile Generate.java (or *.java) with json-simple in class path.
> javac -cp json-simple-1.1.1.jar:. Generate.java
3.
Run Generate with json-simple in class path and MAL-file as command line argument.
> java -cp json-simple-1.1.1.jar:. Generate path-to-mal-file
4.
Open MAL-visualization/index.html in a web browser.
Usage:
Zoom and Pan
Zooming is possible with the mouse wheel/touch pad. Click on empty space on the screen and
drag to move the whole visualization.
Move assets
Move assets by dragging them around with the mouse.
Trace
Click on an Attack Step to display the trace menu.
When tracing the default setting is to hide all assets not involved in the trace,
this can be changed by un-ticking the "Hide assets on trace" checkbutton in the left menu.
Trace menu contains four options:
- Trace Children: Highlight all direct children to the selected attack step.
- Trace Parents: Highlight all direct parents to the selected attack step.
- Trace All Children: Highlight all recursive children to the selected attack step.
- Trace All Parents: Highlight all recursive parents to the selected attack step.
Reset trace by either trace another attack step, or by double-clicking anywhere.
Hide/Show assets
In the left menu the categories and assets are displayed by name and a checkbox.
Un-tick a checkbox to hide the asset, this can be done by ticking individual assets
or by ticking categories which will tick/un-tick all assets belonging to that category.
Export
The export button will download a SVG file of the visualization that is displayed.