From a0cf3d65f4f5c2d8c0a4c5cceec79d1adf448ba3 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 17 Aug 2022 11:48:35 +0530 Subject: [PATCH] Agent: Rename variable in SSH handler --- .../credential_collectors/ssh_collector/ssh_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py index 097d59f40..2c5b55887 100644 --- a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py +++ b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py @@ -20,7 +20,7 @@ T1003_ATTACK_TECHNIQUE_TAG = "attack-t1003" T1005_ATTACK_TECHNIQUE_TAG = "attack-t1005" T1145_ATTACK_TECHNIQUE_TAG = "attack-t1145" -SSH_COLLECTOR_EVENT_TAG = { +SSH_COLLECTOR_EVENT_TAGS = { SSH_CREDENTIAL_COLLECTOR_TAG, T1003_ATTACK_TECHNIQUE_TAG, T1005_ATTACK_TECHNIQUE_TAG, @@ -165,7 +165,7 @@ def to_credentials(ssh_info: Iterable[Dict]) -> Sequence[Credentials]: def _publish_credentials_stolen_event(collected_credentials: Credentials, event_queue: IEventQueue): credentials_stolen_event = CredentialsStolenEvent( - tags=frozenset(SSH_COLLECTOR_EVENT_TAG), + tags=frozenset(SSH_COLLECTOR_EVENT_TAGS), stolen_credentials=[collected_credentials], )