Answering your private message here:
Thanks, I just tried that and got
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:390 at JSON_Decoder_Exec(): DEBUG: Decoding JSON: ‘{“version”:1,”origin”:{“name”:”n’
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:390 at JSON_Decoder_Exec(): DEBUG: Decoding JSON: ‘Starting’
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:395 at JSON_Decoder_Exec(): DEBUG: Malformed JSON string ‘Starting’
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:390 at JSON_Decoder_Exec(): DEBUG: Decoding JSON: ‘{“version”:1,”origin”:{“name”:”f’
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:390 at JSON_Decoder_Exec(): DEBUG: Decoding JSON: ‘{“version”:1,”origin”:{“name”:”n’
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:390 at JSON_Decoder_Exec(): DEBUG: Decoding JSON: ‘Ended’
2022/06/28 01:10:53 wazuh-analysisd[6848] json_decoder.c:395 at JSON_Decoder_Exec(): DEBUG: Malformed JSON string ‘Ended’I just loading the str with json loads by itself and it still gets a json error, here’s the JSON:
{“version”:1,”origin”:{“name”:”node01”,”module”:”wazuh-execd”},”command”:”add”,”parameters”:{“extra_args”:[],”alert”:{“timestamp”:”2022-06-26T19:09:49.663+0000”,”rule”:{“level”:12,”description”:”Excessive CMS (WordPress or Joomla) brute force attempt against site.”,”id”:”140007”,”mitre”:{“id”:[“T1110”],”tactic”:[“Credential Access”],”technique”:[“Brute Force”]},”frequency”:8,”firedtimes”:1,”mail”:true,”groups”:[“MaliciousTrafficpci_dss_6.5”],”pci_dss”:[“11.4”,”6.5.10”,”10.2.4”,”10.2.5”],”gdpr”:[“IV_35.7.d”,”IV_32.2”],”hipaa”:[“164.312.b”],”nist_800_53”:[“SA.11”,”SI.4”,”AU.14”,”AC.7”],”tsc”:[“CC6.6”,”CC7.1”,”CC8.1”,”CC6.1”,”CC6.8”,”CC7.2”,”CC7.3”]},”agent”:{“id”:”003”,”name”:”wordpress.pdgoserver.com”,”ip”:”67.43.12.142”},”manager”:{“name”:”security”},”id”:”1656270589.270293259”,”previous_output”:”154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\”\n154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\”\n154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\”\n154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\”\n154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\”\n154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\”\n154.6.26.66 - - [26/Jun/2022:15:09:45 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\””,”full_log”:”154.6.26.66 - - [26/Jun/2022:15:09:47 -0400] \”POST /wp-login.php HTTP/2.0\” 302 - \”-\” \”Mozilla/5.0\””,”decoder”:{“name”:”web-accesslog”},”data”:{“protocol”:”POST”,”srcip”:”154.6.26.66”,”id”:”302”,”url”:”/wp-login.php”},”location”:”/var/log/apache2/domlogs/thesite.org-ssl_log”},”program”:”active-response/bin/flare”}}
I have tested this JSON with the Python script example given in the documentation and it works, could you share your active response script so I can see why there is a JSON decode error? Also, please send the output of the script when the error is raised.
Please post messages in this thread so it is useful for other users having similar issues or issues related to this topic.