Dear Users,
I'm a newbie and I'm trying to start using Wazuh for the first time.
I configured almost all available capabilities and it seems they are working as expected.
I would like to monitor added, delete or changed files saved in multiple directories (for example /etc/bin/ and so on). So, I just activated "Integrity Monitoring" capability and I can see FIM events in the Wazuh dashboard.
I noticed that there is a "System auditing" tab in Wazuh GUI.
So, I decided to start studying and activating also this check but I'm not understanding the difference between FIM and System Auditing.
Could you please explain the difference?
If it can help, I would like to notify that:
- I installed audit service on each agent;
- I added this block on ossec.conf file (on manager)
<syscheck>
<disabled>no</disabled>
<!-- Frequency that syscheck is executed default every 12 hours -->
<frequency>43200</frequency>
<scan_on_start>yes</scan_on_start>
<!-- Generate alert when new file detected -->
<alert_new_files>yes</alert_new_files>
<!-- Don't ignore files that change more than 'frequency' times -->
<auto_ignore frequency="10" timeframe="3600">no</auto_ignore>
<!-- Directories to check (perform all possible verifications) -->
<directories>/etc,/usr/bin,/usr/sbin</directories>
<directories>/bin,/sbin,/boot,/root</directories>
<directories check_all="yes" whodata="yes">/etc,/usr/bin,/usr/sbin,/bin,/sbin,/boot,/root</directories>
<directories check_all="yes" realtime="yes">/etc,/usr/bin,/usr/sbin,/bin,/sbin,/boot,/root</directories>
</syscheck>
- I added these rules to audit config:
auditctl -w /etc -p wa -k wazuh_fim
auditctl -w /usr/bin -p wa -k wazuh_fim
auditctl -w /usr/sbin -p wa -k wazuh_fim
auditctl -w /sbin -p wa -k wazuh_fim
auditctl -w /boot -p wa -k wazuh_fim
auditctl -w /root -p wa -k wazuh_fim
auditctl -w /etc -p w -k audit-wazuh-w
auditctl -w /usr/bin -p w -k audit-wazuh-w
auditctl -w /usr/sbin -p w -k audit-wazuh-w
auditctl -w /sbin -p w -k audit-wazuh-w
auditctl -w /boot -p w -k audit-wazuh-w
auditctl -w /root -p w -k audit-wazuh-w
P.S.: what is the difference between wazuh_fim and audit-wazuh-* ?
Thank you in advance,
Mauro