Common: Define StolenCredentialsEvent

This commit is contained in:
Ilija Lazoroski 2022-08-11 16:49:09 +02:00
parent 5558d075be
commit 889863bb93
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,18 @@
from dataclasses import dataclass
from typing import Sequence
from common.credentials import Credentials
from . import AbstractEvent
@dataclass(frozen=True)
class StolenCredentialsEvent(AbstractEvent):
"""
An event that was initiated/observed when an agent collects credentials from the victim.
Attributes:
:param stolen_credentials: The credentials which were stolen by the source agent
"""
stolen_credentials: Sequence[Credentials]

View File

@ -214,6 +214,9 @@ _make_simulation # unused method (monkey/monkey_island/cc/models/simulation.py:
AbstractEvent
tags
# TODO DELETE IN #2176
StolenCredentialsEvent
# TODO DELETE AFTER RESOURCE REFACTORING