Hi! Sorry for the delay.
According to the AR flow, in order for your script to run, a rule set that you defined in Wazuh Manager (ossec.conf) must have been activated in the <active response> section (in <rule set). If I understand correctly, it reports that the script is executed. Is this according to your tests, or did you actually verify that the script was executed in response to the defined ruleset?
Please check if I perform the necessary
steps to configure AR with a response out of the box.
1. In the administrator you must configure your command in the <command> section
2. Then check that all elements are set correctly in <active-response>, especially pay attention to <location> and <ruleset> settings
3. On the agent side, check that your script is in the path /var/ossec/active-response/bin with the necessary permissions (750).
4. Finally check if you find evidence of execution in /var/ossec/logs/active-response.log (Linux)
If you do not verify the execution, you can debug the rule that AR should fire, for this you can enable the logall option in ossec.conf to verify that the event is received and decoded in your handler. Just so you know, enabling the logall option can consume a lot of disk space.
Please let me know if you were able to solve it with these tips.
Greetings