Urgent.News

What's breaking now, across thousands of outlets.

Tech

Wazuh FIM "not detecting" a changed file usually means it has not looked yet

You add a directory to Wazuh file integrity monitoring, change a file, and nothing happens. On Wazuh 4.14.7 the usual reason is the schedule, not a bug. We measured it on a manager container. The defaults The <syscheck> block in the 4.14.7 manager image's default ossec.conf : <frequency> 43200 </frequency> <scan_on_start> yes </scan_on_start> <alert_new_files> yes </alert_new_files> <directories>…

When you add a directory to Wazuh file integrity monitoring and then change a file within it, the system typically waits for the next scheduled scan before reporting the change. On Wazuh 4.14.7, the default scan frequency is 12 hours. This delay occurs because the system only records a baseline during the initial scan. If a file is altered after the first scan, it will only be detected in the subsequent scheduled scan, provided 12 hours have passed.

Testing confirmed that a file change detected within seconds of the initial scan in a plain directory, but not in a directory with real-time monitoring due to the 12-hour interval. To adjust the monitoring, increase the frequency for specific paths to real-time, which allows for immediate detection of file changes. Simply modifying the configuration in the agent.conf file to include "syscheck directories realtime= yes" in the desired directories will enable real-time monitoring.

However, real-time monitoring should be applied sparingly to avoid generating excessive alerts, particularly on large or frequently changing directories.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Docker permission denied: why it happens and how to fix it properly

Docker permission denied: what the error is actually telling you A client messages me about this error almost every week. They run a command, see "permission denied", and assume Docker is broken.

  • "Docker permission denied" has two meanings: before container start and inside running container
  • Permission errors occur due to mismatch between process UID/GID and file/socket ownership
  • Fix errors by adjusting file permissions, ownership, or Docker daemon configuration

More from Wednesday 7 October →