Merge pull request #2189 from guardicore/2176-define-stolen-credentials-event

2176 define stolen credentials event
This commit is contained in:
Mike Salvatore 2022-08-12 06:48:16 -04:00 committed by GitHub
commit 74ca26657e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

@ -1 +1,2 @@
from .abstract_event import AbstractEvent
from .credentials_stolen_events import CredentialsStolenEvent

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 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]

View File

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