By Arjun Kumar, Senior Trainer, Systech Group 15+ years in Network Security and Cloud Architecture · Updated November 2026.
8 min read
In short
Add the files or folders you want to watch inside the <syscheck> block of the Wazuh agent’s ossec.conf file, choose scheduled scans or real-time monitoring, restart the agent, and review the events in the File Integrity Monitoring module of the Wazuh dashboard. The agent stores a baseline of checksums and file attributes, then reports any file that is created, modified or deleted. If you also need to know which user and which process made the change, turn on who-data monitoring.
The process has four steps:
- Decide which files and directories matter.
- Add them to the
syschecksection of the agent’sossec.conf. - Restart the Wazuh agent and confirm it is connected.
- Open the dashboard, find the alert and investigate it.
A payment file on your server changes from 88,000 to 98,000. Nobody remembers approving it, and no application error was logged. How do you find out what changed, when it changed and who changed it?
This is the exact problem File Integrity Monitoring (FIM) is built to solve. Wazuh, a free and open-source security monitoring platform, includes a FIM module that watches the files and folders you choose and reports whenever something is created, modified or deleted. In this guide you will learn how Wazuh File Integrity Monitoring works, how to configure it on Linux and Windows, how to read the alerts in the dashboard, and how to test it safely in a lab. If you are learning security monitoring as a career skill, a hands-on Cybersecurity Course and training in Chennai can help you practise tools like this with proper guidance.
Table of Contents
What Is Wazuh File Integrity Monitoring (FIM)?
Wazuh File Integrity Monitoring is a built-in module of the Wazuh security platform. It watches selected files and directories and tells you when they change. The Wazuh agent installed on a server runs a baseline scan first, storing the cryptographic checksums and other attributes of each monitored file. Later, it compares the current state of the file with that baseline. If something is different, the agent sends an event to the Wazuh manager, and the alert appears in the dashboard.
By default, the agent records more than a checksum. It can store the MD5, SHA-1 and SHA-256 hashes, file size, owner, group, permissions, modification time and inode. Exactly what you see depends on the operating system and the options you enable for each path.
What can Wazuh FIM help you do?
- Detect unexpected changes: spot edits to sensitive files, scripts or configuration settings that nobody planned.
- Support investigations: see when a monitored file changed and, with who-data enabled, which user and process were involved.
- Track configuration drift: compare the current state of important files with the stored baseline.
- Centralise visibility: bring file-change events from many servers into one dashboard instead of checking each server by hand.
- Support compliance work: keep a record of changes to files that matter for audits.
What Wazuh FIM does not do
FIM is a detection control. It tells you that a file changed; it does not stop anyone from changing it, and it cannot decide whether the change was right or wrong. Use it together with file permissions, access controls, backups, endpoint protection and a clear incident-response process.
Why Should You Monitor File Changes on a Server?
Some files on a server should only change for a reason you can explain. Application settings, payment records, web application files and system configuration are good examples. When one of them changes without an approved reason, the cost of finding out late is high. Here are the common problems teams run into:
- Unauthorised changes: someone edits a configuration file to weaken access controls, and nobody notices for weeks.
- Silent data tampering: a value inside a business file is altered, and the application keeps running as if nothing happened.
- Configuration drift: well-meaning changes pile up without a record, and servers slowly stop matching their approved setup.
- Slow investigations: without a timeline of changes, teams spend hours guessing what happened and when.
- Audit pressure: several security and compliance frameworks, such as PCI DSS, expect organisations to track changes to critical files.
Example: a payment file changes from 88,000 to 98,000
Imagine a payment application that stores transaction details in a file. Someone changes an amount from 88,000 to 98,000. The application does not complain, because the file is still valid. With the right paths configured for FIM, Wazuh can report that the file changed, and the alert shows up on the dashboard for the security team to investigate.
Notice what FIM does and does not tell you here. It tells you the file changed, and with who-data enabled it can show the user and process behind the change. It does not tell you whether 98,000 is fraudulent or simply a legitimate correction. For that, you still need approval records, application logs and access controls.
How Does Wazuh FIM Detect File Creation, Modification and Deletion?
Wazuh FIM works on a baseline-and-compare approach. During a scan, the agent collects information about the files in your configured paths and stores it in a local FIM database. On the next scan, or when it receives a supported real-time event from the operating system, it compares what it sees with what it stored. Any difference becomes an event.
| Change Type | What It Means | Example |
|---|---|---|
| File creation | A new file appears in a monitored directory. | A new payment report is added to a protected folder. |
| File modification | The content or a monitored attribute of a file changes. | An amount in a transaction file changes from 88,000 to 98,000. |
| File deletion | A monitored file is removed. | A configuration file or payment record disappears. |
There are three ways Wazuh can collect this information, and you can combine them:
- Scheduled scans: the agent checks the configured paths at a set interval. This is good for regular verification of many files.
- Real-time monitoring: the agent watches configured directories and reports changes as they happen, instead of waiting for the next scan. It works on Linux (using inotify) and on Windows.
- Who-data monitoring: the agent adds the user and process behind a change, using the Linux Audit system or eBPF on Linux, and the Windows auditing subsystem on Windows.
Wazuh FIM Architecture: How Do the Agent, Manager and Dashboard Work Together?
A typical Wazuh deployment has three parts that work together.
| Component | Role in File Integrity Monitoring |
|---|---|
| Wazuh agent | Runs on the server you want to monitor. It scans the configured paths, detects changes and sends FIM data to the manager. |
| Wazuh manager | Receives events from the agents, analyses them with rules and generates alerts. |
| Wazuh dashboard | Gives you one place to review FIM alerts, browse the file inventory and investigate events across endpoints. |
You install an agent on every server that needs monitoring and tell it which files and folders matter. The manager collects events from all agents, and your analysts work from the dashboard. This is especially useful when you run several Linux and Windows servers, because nobody has to log in to each one to look for changes.
The same central-view workflow is how security operations teams work every day: events arrive from many systems, an analyst triages them, and the important ones become investigations. If you want to see how that daily routine works in practice, a structured SOC Course Training in Trichy is one way to learn it with guidance.
Wazuh FIM vs Manual Checks vs Standalone File Checkers: Which Approach Fits You?
Wazuh is not the only way to watch files. Here is how the common options compare in practice.
| Comparison | Manual Checks | Standalone File Checker (AIDE) | Wazuh FIM |
|---|---|---|---|
| How it works | You compare hashes or file contents yourself, or with your own script. | A tool on each host builds a database and compares files on a schedule. | An agent builds a baseline, then runs scheduled scans and, if configured, real-time monitoring. |
| Central dashboard | No | Usually not built in; reports are collected per host | Yes, through the Wazuh dashboard |
| Who made the change | No | Not by default | Yes, with who-data enabled |
| Effort to run | Easy to start, hard to keep up | Moderate | Higher at the start; one platform for many servers |
| Best for | A one-off check on a single file | A single server or a small, simple setup | Teams monitoring several servers who also want alerts, inventory and other security data in one place |
Wazuh itself is free and open source, but it is not effortless. You need to deploy and maintain the manager and dashboard, choose sensible paths and tune alerts so your team is not buried in noise. That is why the skills matter as much as the tool, and we come back to that near the end of this guide.
What Do You Need Before Setting Up Wazuh FIM?
Get these things ready first. It saves a lot of trial and error later.
- A working Wazuh deployment with a manager and a dashboard.
- A Wazuh agent installed on the server you want to monitor, and showing as connected in the dashboard.
- Administrator or root access, so you can edit the agent configuration and restart the service.
- The exact files or directories you want to monitor.
- A safe test directory and a harmless sample file for validation.
- A backup copy of the current
ossec.conffile.
You should also be comfortable with basic Linux administration: file permissions, services and log files. If that is an area you want to strengthen, the Linux Red Hat course training in Chennai is a practical way to build that foundation.
Choose your paths carefully. Monitoring every directory creates a flood of events, uses resources and hides the alerts that matter. Start with sensitive application folders, payment-related files and critical configuration directories, where you have a clear security reason to watch.
The agent’s settings live in ossec.conf. These are the usual locations:
| Operating System | Wazuh Agent Configuration File |
|---|---|
| Linux | /var/ossec/etc/ossec.conf |
| Windows | C:\Program Files (x86)\ossec-agent\ossec.conf |
| macOS | /Library/Ossec/etc/ossec.conf |
The path can vary with the installation method and version, so confirm it on your own system before editing.
How Do You Configure Wazuh File Integrity Monitoring Step by Step?
All FIM settings sit inside the syscheck section. The default agent configuration usually already contains a syscheck block with some common system directories. Add your settings to that block instead of creating a second, conflicting one.
Step 1: Which files and directories should Wazuh monitor?
Add the path inside <directories>. You can list a single file or a whole directory. Wildcards such as * and ? work the way they do in a shell, and you can put several paths on separate lines or separate them with commas.
Linux example: monitor an application directory
<syscheck>
<directories>/opt/payment-app</directories>
</syscheck>Windows example: monitor an application directory
<syscheck>
<directories>C:\PaymentApp\Data</directories>
</syscheck>Replace the sample path with the real one, and make sure the Wazuh agent has permission to read it. A typo or a missing directory means the files you care about are simply not monitored, and Wazuh will not warn you loudly. If you manage many agents, you can also push the same settings through centralised configuration. When a directory is set in both places, the centralised configuration takes precedence over the local one.
Step 2: How often should Wazuh run scheduled scans?
By default, the FIM module runs a scan every 12 hours (43,200 seconds). You can change this with the frequency option, in seconds:
<syscheck>
<frequency>900</frequency>
<directories>/opt/payment-app</directories>
</syscheck>Here the scan runs every 900 seconds (15 minutes). This is only an example. Pick a value that suits your server’s capacity, how often the files change and how quickly you need to know. If you would rather scan outside business hours, Wazuh also provides the scan_time and scan_day options.
Step 3: How do you turn on real-time monitoring in Wazuh?
Real-time monitoring reports a change without waiting for the next scheduled scan. Add realtime="yes" to the directory entry:
<syscheck>
<directories realtime="yes">/opt/payment-app</directories>
</syscheck>Keep these rules in mind:
- Real-time monitoring works on Linux and Windows only.
- It works on directories, not individual files.
- The directory must exist before the agent restarts.
- Real-time detection pauses while a scheduled scan is running and resumes when it finishes, so keep scheduled scans as well.
- From Wazuh 4.13.0, FIM on Windows does not support UNC network paths or mapped network drives. Use local paths.
| Mode | How It Works | When It Helps |
|---|---|---|
| Scheduled scan | Checks the paths at fixed intervals. | Regular verification, and folders with many files. |
| Real-time monitoring | Watches a directory and reports changes as they happen. | Folders where a quick response matters, such as payment or configuration directories. |
Step 4: How do you find out who changed a file with Wazuh who-data?
Knowing that a file changed is only half the story. During an investigation you also want to know which account and which process made the change. That is what who-data monitoring adds. It works in real time, and when it is available, the alert includes the user, the process name and the process ID.
On Linux, who-data uses the Linux Audit system by default. The auditd service must be installed and running (on Ubuntu, sudo apt install auditd). Add whodata="yes" to the directory:
<syscheck>
<directories check_all="yes" whodata="yes">/etc</directories>
<whodata>
<provider>audit</provider>
</whodata>
</syscheck>After restarting the agent, check that the audit rule was created:
auditctl -l | grep wazuh_fimThe expected output is a rule like -w /etc -p wa -k wazuh_fim. The agent removes this rule when its service stops. If you omit the provider tag, Wazuh uses audit. Newer Wazuh versions also support an ebpf provider, which needs a kernel with BPF ring buffer and BTF support (upstream kernels from 5.8, and some distributions backport it). If the eBPF health check fails, Wazuh falls back to audit.
On Linux, the who-data fields in an alert include audit.user.name, audit.login_user.name, audit.effective_user.name, audit.process.name and audit.process.id. The effective user shows as root when someone uses sudo, so the login user is often the more useful field when you are tracing a person.
On Windows, who-data uses the Windows auditing subsystem. Wazuh configures the required local audit policy and the SACL for the monitored directory automatically at startup. If your system does not apply them, you can set them manually: enable Audit File System and Audit Handle Manipulation for Success, and add a Success entry to the directory’s SACL.
<syscheck>
<directories check_all="yes" whodata="yes">C:\PaymentApp\Data</directories>
</syscheck>Who-data is supported on Windows versions later than Windows Vista. Because it depends on audit policy and permissions, it helps to understand Windows Server administration. A course such as the Windows Server Course in Coimbatore covers that kind of groundwork, and the knowledge pays off every time you troubleshoot a Windows agent.
Step 5: How do you restart the Wazuh agent and check that FIM is working?
After editing ossec.conf, restart the agent so it picks up the new settings. Check the XML first. An unclosed tag or a misplaced syscheck block can stop the service from starting, which is why you took a backup earlier.
| Operating System | Restart Command |
|---|---|
| Linux | sudo systemctl restart wazuh-agent |
| Windows (PowerShell as Administrator) | Restart-Service -Name WazuhSvc |
| macOS | sudo /Library/Ossec/bin/wazuh-control restart |
Some Wazuh pages show the Windows service as wazuh and others as WazuhSvc. If one name fails, run Get-Service *wazuh* to see the exact name on your machine.
Then confirm three things:
- The agent is connected. It should show as active in the dashboard.
- The agent log shows FIM started. On Linux, open
/var/ossec/logs/ossec.logand look for(6012): Real-time file integrity monitoring started.If you use who-data, also look for(6019): File integrity monitoring real-time Whodata engine started. - Who-data did not fall back. If you see
(6913): Who-data engine could not start. Switching who-data to real-time., alerts will not include user or process details until you fix the audit setup.
On Windows, the agent log is C:\Program Files (x86)\ossec-agent\ossec.log.
How Do You View File-Change Alerts in the Wazuh Dashboard?
Once the agent detects a change, it sends the event to the manager and the alert becomes available in the dashboard. Open the File Integrity Monitoring module and select the agent you care about. The module has three parts:
- Inventory: the files Wazuh has indexed, with details such as file name, last modification date, user, group and size.
- Dashboard: an overview of FIM events across endpoints, which you can filter to a single endpoint.
- Events: the list of FIM alerts, with the agent name, file path, event type, description and rule level.
To see only file additions, modifications and deletions, open the Events tab and search for:
rule.id:550 or rule.id:553 or rule.id:554Rule 550 is the “Integrity checksum changed” rule, which covers modified files. Rules 553 and 554 cover deleted and added files.
What should you check when you open an alert?
- Which endpoint reported the event?
- Which file or directory was affected, and was it created, modified or deleted?
- When was it detected?
- Did the checksum or another monitored attribute change?
- Is user and process information available?
- Does the change match an approved deployment, maintenance task or business operation?
Treat an alert as a starting point, not as proof of an attack. A legitimate software update changes files too, while an unauthorised edit may signal a compromise. Compare the event with your change records and endpoint activity before deciding what to do.
How Can You Test Wazuh FIM Safely?
Test with a dedicated folder and a harmless text file. Never test by editing a live payment record or a production configuration file.
Step 1: Create the test folder and file (Linux)
sudo mkdir -p /opt/fim-lab
echo "Payment status: pending" | sudo tee /opt/fim-lab/payment-test.txtStep 2: Add the folder to the agent configuration
Real-time monitoring, then restart the agent and wait for the first scan to finish.
<syscheck>
<directories check_all="yes" realtime="yes">/opt/fim-lab</directories>
</syscheck>Step 3: Make the three kinds of change
Wait about five seconds between each one.
# modify the file
echo "Payment status: reviewed" | sudo tee /opt/fim-lab/payment-test.txt
# create a new file
echo "new report" | sudo tee /opt/fim-lab/report.txt
# delete a file
sudo rm /opt/fim-lab/report.txtStep 4: Check the dashboard
Open the FIM Events tab, search for the three rule IDs above and confirm that the modified, added and deleted events appear for your test paths. On Windows, create a folder such as C:\fim-lab, add it to ossec.conf, and repeat the same steps with a text file and Notepad.
The payment-file example from our video works the same way. The video shows a payment file amount changing from 88,000 to 98,000 and the Wazuh dashboard reporting the detected change, provided the right paths are configured for monitoring. Your lab test lets you see that behaviour for yourself without touching real data.
How Do You Fix Common Wazuh FIM Problems?
| Problem | Likely Reason | What to Check |
|---|---|---|
| No FIM alerts appear | Wrong path, agent disconnected, directory missing, or configuration not applied. | Confirm the path, agent status, permissions and that you restarted the agent. Check ossec.log for FIM start messages. |
| Real-time changes are not detected | Missing realtime="yes", the path is a file instead of a directory, or the platform or path is unsupported. |
Use realtime="yes" on a local directory. Remember it does not work on individual files or on macOS. |
| Who-data fields are missing | Who-data is not enabled, or auditd is not running on Linux. |
Check whodata="yes", run auditctl -l | grep wazuh_fim, and look for message 6913 in the agent log. |
| Too many alerts | The monitored path contains frequently changing files. | Narrow the path and add careful exclusions. |
| Agent fails after editing the config | Invalid XML or conflicting syscheck sections. |
Restore your backup, validate the XML and read the agent log. |
| File content changes are not shown | Content reporting is off, or the file is not a text file. | Review report_changes. It is limited to text files. |
How do you reduce alert noise without hiding important changes?
Some files change all the time, such as caches, temporary files and logs. Wazuh lets you skip them with the ignore option. Ignored paths are still scanned, but their results are not reported. Use exclusions only when you have a clear operational reason, and never exclude a sensitive directory just to make the dashboard quieter.
<syscheck>
<directories realtime="yes">/opt/payment-app</directories>
<ignore>/opt/payment-app/cache</ignore>
<ignore type="sregex">.log$|.tmp$</ignore>
</syscheck>This is an illustrative example. Confirm the paths and the pattern behaviour in your own environment before you apply it.
Is it safe to turn on report_changes for payment or customer files?
With report_changes="yes", Wazuh can include the exact change made to a text file, which helps analysts see what was edited. The catch is that the alert can then contain sensitive content. For files that hold payment, customer or credential data, use the nodiff option so their content is never included in change reports, and restrict who can view alert data.
<syscheck>
<directories report_changes="yes">/opt/payment-app</directories>
<nodiff>/opt/payment-app/private.txt</nodiff>
</syscheck>Do not switch content reporting on everywhere. Decide file by file, after checking your data-handling requirements.
Where Is Wazuh FIM Used in Real Environments?
The tool is the same everywhere. What changes is which files you choose to watch. These are the most common choices.
- Payment and transaction files: monitor selected files or application folders to catch unexpected edits to transaction records. FIM reports that a file changed, and application logs and approval records help you decide whether the change was legitimate.
- Server configuration files: watch critical configuration paths for changes to service settings, access controls or security settings. This helps with configuration drift and unauthorised edits.
- Application and web server files: watch important application folders for a script that should not be there, an altered application file or an unexpected deployment. Pair these alerts with your deployment records.
- Security-sensitive system files: monitor selected system paths where a change could affect system integrity, and plan your exclusions carefully so normal operating-system updates do not drown the alerts.
- Centralised security operations: when many agents report to one manager, analysts can review file changes from every endpoint in one dashboard and decide what to investigate first.
Attackers often leave traces in files: a modified configuration, a new script in a web folder, a changed application file. The better you understand how attackers work, the better you can decide which paths deserve monitoring. That is one reason many security learners study offensive techniques too, for example through an Ethical Hacking Course in Trichy, and then apply that knowledge to defensive tools like Wazuh.
How Can You Learn Wazuh and Security Monitoring Hands-On?
Reading a guide helps, but file integrity monitoring only really makes sense once you have changed a file in a lab and watched the alert arrive. A simple practice routine looks like this:
- Build a small lab with one Wazuh manager and dashboard, plus one Linux agent and one Windows agent.
- Configure FIM on a test folder: first scheduled scans, then real-time monitoring, then who-data.
- Create, modify and delete files, and trace each event in the dashboard.
- Add a noisy folder on purpose, then tune it with
ignorerules. - Write a short investigation note for each alert: what changed, who changed it and whether it was approved.
The tool is only part of the picture. Security monitoring also needs solid networking knowledge, Linux and Windows administration, log reading and a habit of asking “is this change expected?” before raising an alarm. These are the skills that help a new analyst move from clicking through a dashboard to explaining what actually happened on a server.
If you prefer a guided path, Systech Group offers networking and cybersecurity training at its Trichy, Coimbatore and Chennai branches. The Networking and Cybersecurity Training in Trichy page is a good place to see what the programme covers. You can also contact the Systech team to ask about the syllabus, batch timings and lab practice before you decide.
Frequently asked questions
How can I find out which user changed a file on a Linux server using Wazuh?
Turn on who-data monitoring for the directory with whodata="yes". On Linux, the auditd service must be installed and running, because Wazuh uses the Linux Audit system by default. After you restart the agent, run auditctl -l | grep wazuh_fim to confirm the audit rule exists. The alert then includes fields such as audit.user.name, audit.login_user.name and audit.process.name. If someone used sudo, the effective user shows as root, so check the login user to trace the person.
Should a small business with one payment server use scheduled scans or real-time monitoring in Wazuh FIM?
A sensible starting point is to use both. Put real-time monitoring on the one or two directories that hold payment files, because you want to know quickly when they change. Keep scheduled scans running as a safety net, since real-time detection pauses while a scheduled scan runs. Do not monitor the whole disk. A small, well-chosen list of paths gives you alerts you will actually read.
How often does Wazuh FIM scan by default, and can I run scans after business hours?
The default scan frequency is 12 hours (43,200 seconds). You can change it with the frequency option in the syscheck section. If you would rather scan at a fixed time, such as at night or at the weekend, use the scan_time and scan_day options instead of a fixed interval.
Can Wazuh monitor a single file in real time?
Not directly. The realtime option works only on directories, not on individual file entries. You can still watch a single file with scheduled scans. For faster detection, monitor the folder that contains the file in real time, and use the restrict attribute to limit the checks to file names that contain a given string.
Can Wazuh FIM monitor files on a Windows network drive or shared folder?
From Wazuh 4.13.0, FIM on Windows does not support UNC network paths or mapped network drives. This applies to scheduled scans, real-time monitoring and who-data. A practical option is to install the Wazuh agent on the server that actually hosts the files and monitor the local path there.
Why does my Wazuh FIM alert show no user name on Linux?
The most common reason is that who-data could not start. Check that auditd is installed and running, and that auditctl -l | grep wazuh_fim returns a rule. Look in /var/ossec/logs/ossec.log for message 6913, “Who-data engine could not start. Switching who-data to real-time.” Wazuh’s documentation also notes that a leftover -a never,task audit rule can interfere. If you find one, remove it from your audit rules, then restart auditd and the Wazuh agent.
Does Wazuh stop someone from changing or deleting a payment file?
No. Wazuh FIM detects and reports changes; it does not block them. To protect a payment file you still need correct file permissions, access controls, backups and endpoint protection. FIM then tells you quickly when something changed in spite of those controls, so you can investigate.
Is it safe to enable report_changes for files that contain customer or payment data?
Use it with care. With report_changes="yes", Wazuh can show the exact change made to a text file, but that means file content can appear in alerts. The feature is limited to text files, and files larger than the diff_size_limit (50 MB by default) do not get diff information. For sensitive files, add them to nodiff and restrict who can view alert data.
How can a student or fresher practise Wazuh FIM at home without a production server?
Build a small lab with two virtual machines: one for the Wazuh manager and dashboard, and one Linux machine with the Wazuh agent. Follow Wazuh’s official installation guide, create a harmless test folder such as /opt/fim-lab, and practise creating, editing and deleting files while you watch the alerts. Never practise on a live server that holds real business data.
I am a system administrator moving into security monitoring. What should I learn before using Wazuh FIM?
You already have a strong base. Brush up on Linux and Windows file permissions, services, log files and the audit systems each platform uses. Learn to read and edit XML configuration safely. Then add SIEM concepts such as agents, rules, alerts and triage. If you want a structured path, ask the Systech team which of their networking and cybersecurity programmes suits your experience.
Final Thoughts
Wazuh File Integrity Monitoring gives you clear visibility into changes made to important files and folders on your servers. Choose the right paths, decide between scheduled scans and real-time monitoring, enable who-data where you need to know who made a change, and review everything from one dashboard. Then validate your setup with a safe lab test and tune your exclusions carefully.
FIM works best as one layer in a wider approach that also includes access controls, application logs, vulnerability management and a clear incident-response process. For the full list of options, read the official Wazuh File Integrity Monitoring documentation.
If this guide made you want to practise tools like Wazuh in a real lab, start with small test setup this week, and explore Systech Group’s cybersecurity training build the skills around it.