From 6171b66282e139b50a1d1e2a993f7e422894c20e Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 9 Sep 2022 13:01:51 +0200 Subject: [PATCH] Agent: Fix SSHCollector to publish list of Credentials Previously it was publish list of lists of Credentials --- .../credential_collectors/ssh_collector/ssh_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8c1129455..0212e18a4 100644 --- a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py +++ b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py @@ -173,7 +173,7 @@ def _publish_credentials_stolen_event( ): credentials_stolen_event = CredentialsStolenEvent( tags=SSH_COLLECTOR_EVENT_TAGS, - stolen_credentials=[collected_credentials], + stolen_credentials=collected_credentials, ) event_queue.publish(credentials_stolen_event)