maltoolbox.attackgraph.attacker module

MAL-Toolbox Attack Graph Attacker Class

class maltoolbox.attackgraph.attacker.Attacker(name: str, entry_points: set[AttackGraphNode] | None = None, reached_attack_steps: set[AttackGraphNode] | None = None, attacker_id: int | None = None)[source]

Bases: object

compromise(node: AttackGraphNode) None[source]

Have the attacker compromise the node given as a parameter.

Arguments: node - the node that the attacker will compromise

to_dict() dict[source]
undo_compromise(node: AttackGraphNode) None[source]

Remove the attacker from the list of attackers that have compromised the node given as a parameter.

Arguments: node - the node that we wish to remove this attacker from.