Hi Team
I wanted to execute a custom active-response script, following is my configuration that works.
1] File: ossec.conf
<command>
<name>abc</name>
<executable>a.py</executable>
<timeout_allowed>no</timeout_allowed>
</command>
<active-response>
<disabled>no</disabled>
<command>abc</command>
<location>local</location>
<rules_id>100200</rules_id>
</active-response>
100200 is a local rule but when triggered can execute the default commands (firewalld-drop, ipfw, pf, wazuh-slack, firewall-drop, kaspersky, restart.sh, default-firewall-drop, host-deny, kaspersky.py, restart-wazuh, disable-account, ip-customblock, npf, route-null)
100200 cannot execute any command with a custom script that I place in active-response/bin directory.
For example the following works for me:
<active-response>
<disabled>no</disabled>
<command>firewall-drop</command>
<location>local</location>
<rules_id>100200</rules_id>
</active-response>