Agent: Fix SSHCollector to publish list of Credentials

Previously it was publish list of lists of Credentials
This commit is contained in:
Ilija Lazoroski 2022-09-09 13:01:51 +02:00 committed by Mike Salvatore
parent 093e2c79dc
commit 6171b66282
1 changed files with 1 additions and 1 deletions

View File

@ -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)