Some files should almost never change. When they do, you want to know within minutes, not at the next audit.
File integrity monitoring (FIM) watches important files and settings and tells you when they change. It sounds simple, and it is. That is why it works so well.
Why it matters
Many attacks leave changes behind: a new startup entry, a modified system file, a web page with injected code, a changed configuration. Antivirus may not flag these, but a change to a file that should be stable is a strong signal on its own.
What to watch on Windows
- Startup locations and services in the registry
- The hosts file
- System folders such as System32
- Application folders for your critical software
What to watch on Linux
- /etc, including passwd, shadow, sudoers and SSH settings
- /usr/bin and /usr/sbin
- Web server folders and configuration
- Scheduled jobs (cron)
Keep the noise down
Log files, caches and temporary folders change all the time. Leave them out. Watch the places that should be stable, and expect changes there only during planned updates.
Connect changes to people
A change is much easier to judge when you know who made it and when. Pair FIM with sign-in records so you can see whether a change happened during a planned update or at 3 a.m. from an account that does not usually touch that server.
Where HexaLogs fits
HexaLogs SIEM includes file integrity monitoring for Windows and Linux. Changes to critical files raise alerts with the device, the file and the time, next to the other events from the same device.