I hope you are well. Thank you for using Wazuh and sharing your question with the community. If you want to block a specific IP there is a particular script that Wazuh has made for this purpose, I leave you the
specific section of the documentation that talks about this, and there is an example of that. Please keep in mind that if you need to run a specific active response binary or script you must associate some rule that triggers the script. For example, in the link, I send you the rules within the "authentication_failed" or "authentication_fails" group triggers the active response script. Also, you can run the active response script for a particular rule only when you set the
rules_id tag in the
ossec.conf.
In addition, there is an API command that allows executing an active response command or script, I leave the
link to the explanation command.
I hope you find the information useful.