forked from p15670423/monkey
Merge pull request #2189 from guardicore/2176-define-stolen-credentials-event
2176 define stolen credentials event
This commit is contained in:
commit
74ca26657e
|
@ -1 +1,2 @@
|
||||||
from .abstract_event import AbstractEvent
|
from .abstract_event import AbstractEvent
|
||||||
|
from .credentials_stolen_events import CredentialsStolenEvent
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
from dataclasses import dataclass
|
||||||
|
from typing import Sequence
|
||||||
|
|
||||||
|
from common.credentials import Credentials
|
||||||
|
|
||||||
|
from . import AbstractEvent
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass(frozen=True)
|
||||||
|
class CredentialsStolenEvent(AbstractEvent):
|
||||||
|
"""
|
||||||
|
An event that occurs when an agent collects credentials from the victim
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
:param stolen_credentials: The credentials that were stolen by an agent
|
||||||
|
"""
|
||||||
|
|
||||||
|
stolen_credentials: Sequence[Credentials]
|
|
@ -214,6 +214,9 @@ _make_simulation # unused method (monkey/monkey_island/cc/models/simulation.py:
|
||||||
AbstractEvent
|
AbstractEvent
|
||||||
tags
|
tags
|
||||||
|
|
||||||
|
# TODO DELETE IN #2176
|
||||||
|
CredentialsStolenEvent
|
||||||
|
|
||||||
|
|
||||||
# TODO DELETE AFTER RESOURCE REFACTORING
|
# TODO DELETE AFTER RESOURCE REFACTORING
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue