Hello,
I have configured the FIM module to scan specific directories on a Mac computer, but no alerts are being generated regarding to syscheck (e.g 550 or 554 rules).
The specific configuration for syscheck has been included in the shared configuration file, and agents have been restarted several times. The configuration is the following one:
<agent_config>
<syscheck>
<disabled>no</disabled>
<directories check_all="yes" realtime="yes">/Users/*/Desktop,/Users/*/Downloads,/Users/*/Documents</directories>
<directories check_all="yes" realtime="yes">/Users/Shared</directories>
</syscheck>
</agent_config>
I have also tried to have several lines, one for each directory, but it does not work either.
At ossec.conf file, I have tried to reduced the frecuency of scheduled scans to 60 seconds, but the problem persists.
To give you more information, I have already checked the inventory at Wazuh UI and there are paths like /etc or /usr/bin, but none regarding with /Users or /Library (those that are from MacOS).
If I enable the debug logs for syscheck, I see this:
2024-07-30T12:17:57.572457759Z 2024/07/30 12:17:57 wazuh-syscheckd[447] run_check.c:124 at send_syscheck_msg(): DEBUG: (6321): Sending FIM event: {"type":"scan_start","data":{"timestamp":1722341877}}
2024-07-30T12:17:57.575413844Z 2024/07/30 12:17:57 wazuh-syscheckd[447] create_db.c:511 at fim_scan(): DEBUG: (6348): Size of 'queue/diff' folder: 0.00000 KB.
2024-07-30T12:17:57.658171810Z 2024/07/30 12:17:57 wazuh-syscheckd[447] syscheck_op.c:581 at get_user(): DEBUG: User with uid '1000' not found.
2024-07-30T12:17:57.658204699Z
2024-07-30T12:17:57.658319563Z 2024/07/30 12:17:57 wazuh-syscheckd[447] syscheck_op.c:613 at get_group(): DEBUG: Group with gid '1000' not found.
2024-07-30T12:17:57.658330158Z
2024-07-30T12:17:57.658435587Z 2024/07/30 12:17:57 wazuh-syscheckd[447] syscheck_op.c:581 at get_user(): DEBUG: User with uid '1000' not found.
2024-07-30T12:17:57.658443247Z
2024-07-30T12:17:57.658447531Z 2024/07/30 12:17:57 wazuh-syscheckd[447] syscheck_op.c:613 at get_group(): DEBUG: Group with gid '1000' not found.
2024-07-30T12:17:57.658451896Z
2024-07-30T12:17:57.981373795Z 2024/07/30 12:17:57 wazuh-integratord[359] integrator.c:154 at OS_IntegratorD(): DEBUG: jqueue_next()
2024-07-30T12:17:58.216816647Z 2024/07/30 12:17:58 wazuh-syscheckd[447] create_db.c:614 at fim_scan(): INFO: (6009): File integrity monitoring scan ended.
2024-07-30T12:17:58.216857295Z 2024/07/30 12:17:58 wazuh-syscheckd[447] run_check.c:124 at send_syscheck_msg(): DEBUG: (6321): Sending FIM event: {"type":"scan_end","data":{"timestamp":1722341878}}
2024-07-30T12:17:58.217624658Z 2024/07/30 12:17:58 wazuh-syscheckd[447] create_db.c:1817 at fim_print_info(): DEBUG: (6330): The scan has been running during: 0.644 sec (0.642 clock sec)
2024-07-30T12:17:58.218183903Z 2024/07/30 12:17:58 wazuh-syscheckd[447] create_db.c:1832 at fim_print_info(): DEBUG: (6336): Fim inode entries: '1210', path count: '1214'
More info:
Agent and Manager version: v4.7.2
Agent OS: MacOS Sonoma 14.5 (Chip M3)
Thank you.