Skip to content

graph

Settings for the NetworkX graph built from collected assets and edges.

Keys

Key Type Default Description
persist_graphml bool true cloudg run writes the graph as topology.graphml in the output directory.
max_nodes_warn int 10000 cloudg run and CloudGEngine log a memory warning when they build a graph from more assets than this. 0 turns the warning off.
compute_attack_paths bool true cloudg run searches the graph for lateral movement paths and prints their count.
export_cytoscape bool false cloudg run also writes the graph as topology-cytoscape.json, for Cytoscape.js.

In config.yaml

config.yaml (graph)
graph:
  persist_graphml: true    # cloudg run writes topology.graphml
  max_nodes_warn: 10000    # warn when a graph is built from more assets (0 = never)
  compute_attack_paths: true
  export_cytoscape: false  # cloudg run also writes topology-cytoscape.json

Read from the annotated example config.yaml and the CloudGConfig models in cloudg/config.py.