forked from p15670423/monkey
Agent: Add agent source to CredentialsStolenEvent in ZerologonExploiter
This commit is contained in:
parent
4884313cba
commit
ef821f75e2
|
@ -26,6 +26,7 @@ from infection_monkey.exploit.zerologon_utils.vuln_assessment import get_dc_deta
|
|||
from infection_monkey.exploit.zerologon_utils.wmiexec import Wmiexec
|
||||
from infection_monkey.i_puppet import ExploiterResultData
|
||||
from infection_monkey.utils.capture_output import StdoutCapture
|
||||
from infection_monkey.utils.ids import get_agent_id
|
||||
from infection_monkey.utils.threading import interruptible_iter
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -310,6 +311,7 @@ class ZerologonExploiter(HostExploiter):
|
|||
self, extracted_credentials: Sequence[Credentials]
|
||||
) -> None:
|
||||
credentials_stolen_event = CredentialsStolenEvent(
|
||||
source=get_agent_id(),
|
||||
tags=ZEROLOGON_EVENT_TAGS,
|
||||
stolen_credentials=extracted_credentials,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue