DET-046 · human · confidence High

File Change Monitoring

Track changes to important files and settings with file integrity monitoring to catch tampering, staging and destructive activity.

File integrity monitoring compares files to a known-good state, using hashes, size, permissions and times. Good tools also watch ownership and permission changes, backdated timestamps, and run in real time using operating system events such as USN Journal, ETW, auditd or fanotify. They record who and which process made the change.

For insider cases, cover scripts and program folders, system configuration, logs and agent files, secrets and credential stores, and backup tooling. A burst of file changes on shared storage can flag a sabotage or ransomware-style event before it finishes.

Data sources
File integrity monitoringauditdWindows USN JournalEDR file events
Platforms
WindowsLinuxmacOS

Logic

file_modify | where path matches (audit_log_dirs, agent_dirs, backup_script_dirs, .env files) | stats count by user, process, path | where count > 0 AND user NOT IN (change_automation_accounts)

False positives

Patching, deployments and log rotation change files routinely. Tie to change windows.

Catches 14 techniques