Common: Make CredentialsStolenEvent a pydantic model

This commit is contained in:
Kekoa Kaaikala 2022-09-09 17:45:23 +00:00 committed by Ilija Lazoroski
parent 78d5094f90
commit 1a96e9fd8d
1 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,14 @@
from dataclasses import dataclass, field
from dataclasses import field
from typing import Sequence
import pydantic
from common.credentials import Credentials
from . import AbstractAgentEvent
@dataclass(frozen=True)
@pydantic.dataclasses.dataclass(frozen=True)
class CredentialsStolenEvent(AbstractAgentEvent):
"""
An event that occurs when an agent collects credentials from the victim