Hello fduvalbl,
Different points that can help you:
- The audit log can be found at /var/log/audit/audit.log
- If you activate in the internal configuration of the agent (/var/ossec/etc/local_internal_options.conf) the debug mode for syscheck (syscheck.debug=2, you need to restart after that), you could see in the wazuh log (/var/ossec/logs/ossec.log) some messages indicating that a new rule has been added to audit, for example:
2020/12/03 09:38:23 ossec-syscheckd [3603] syscheck_audit.c:1127 at audit_reload_rules(): DEBUG: (6275): Reloading Audit rules.
2020/12/03 09:38:23 ossec-syscheckd [3603] audit_op.c:74 at audit_print_reply(): DEBUG: Audit rule loaded: -w /testdir -p wa -k wazuh_fim
- It is also possible to see a list of all active rules in audit, with the command auditctl -l
- You can read related and interesting information in this blog about how to monitor root actions with audit:
I hope I have been helpful, and any other questions you may have do not hesitate to ask,
greetings, Jose