maltoolbox.attackgraph.attacker module

MAL-Toolbox Attack Graph Attacker Class

class maltoolbox.attackgraph.attacker.Attacker(name: 'str', entry_points: 'list[AttackGraphNode]' = <factory>, reached_attack_steps: 'list[AttackGraphNode]' = <factory>, id: 'Optional[int]' = None)[source]

Bases: object

compromise(node: AttackGraphNode) None[source]

Have the attacke compromise the node given as a parameter.

Arguments: node - the node that the attacker will compromise

entry_points: list[AttackGraphNode]
id: int | None = None
name: str
reached_attack_steps: list[AttackGraphNode]
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.