From 6f3d5cfb517a10d24140063b0cf14e6b46e16c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C5=BEe=20=C5=BDitnik?= <anze.zitnik@xlab.si> Date: Tue, 14 Dec 2021 13:40:12 +0100 Subject: [PATCH] Fix some typos in code --- .../wazuh_evidence_collector.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wazuh_evidence_collector/wazuh_evidence_collector.py b/wazuh_evidence_collector/wazuh_evidence_collector.py index a24c5c4..f9eed21 100644 --- a/wazuh_evidence_collector/wazuh_evidence_collector.py +++ b/wazuh_evidence_collector/wazuh_evidence_collector.py @@ -115,7 +115,7 @@ def generate_evidence(wc, es, agent): integrations = body['data']['affected_items'][0]['integration'] slack_notifications = pagerduty_notifications = False - + for integration in integrations: if integration['name'] == 'slack': slack_notifications = True @@ -138,7 +138,7 @@ def generate_evidence(wc, es, agent): integrations = body['data']['affected_items'][0]['integration'] measurement_result = False - + for integration in integrations: if integration['name'] == 'virustotal': measurement_result = True @@ -181,22 +181,22 @@ def generate_evidence(wc, es, agent): evidence, result_rootcheck = check_rootcheck(wc, agent) raw_evidence.append(evidence) - - evidence, result_aler_integration = check_alert_integrations(wc) + + evidence, result_alert_integration = check_alert_integrations(wc) raw_evidence.append(evidence) evidence, result_virus_total = check_virus_total_integration(wc) raw_evidence.append(evidence) - evidence, result_lamd_process = check_clamd_process(wc, agent) + evidence, result_clamd_process = check_clamd_process(wc, agent) raw_evidence.append(evidence) - + evidence, result_clamd_logs = check_clamd_logs_elastic(es, agent) raw_evidence.append(evidence) # TODO: - if result_syscheck and result_rootcheck and result_aler_integration and \ - (result_virus_total or (result_lamd_process and result_clamd_logs)): + if result_syscheck and result_rootcheck and result_alert_integration and \ + (result_virus_total or (result_clamd_process and result_clamd_logs)): malware_protection = { "malwareProtection": { "enabled": True }} else: malware_protection = { "malwareProtection": { "enabled": False }} -- GitLab