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
- TAM-H-ACT-008Disrupting the Business
- TAM-H-ACT-009Editing Records to Lie
- TAM-H-ACT-015Installing Malware From Inside
- TAM-H-ACT-018Leaking Sensitive Data
- TAM-H-CVR-012Editing the Logs
- TAM-H-CVR-016Hiding Shell History
- TAM-H-CVR-018Locking Files Away
- TAM-H-CVR-034Smuggling Data Inside Other Files
- TAM-H-CVR-036Switching Off the Recorder
- TAM-H-CVR-040Using a Rootkit
- TAM-H-STG-013Disguising Data Before Moving It
- TAM-H-STG-016Gaining Higher Rights
- TAM-H-STG-018Gathering Keys and Passwords
- TAM-H-STG-025Leaving Something Behind