DET-070 · human · confidence Medium
Linux File Access Watch
An auditd watch rule that records reads, writes, and attribute changes on chosen paths.
With -w on a directory and -p set to r, w, a, or x, auditd logs each matching access with the user, process, and result. Apply it to sensitive directories such as customer exports, source code, key stores, and config. Search with ausearch -k to list who touched what and when. Keep paths tight because read watches on busy folders create heavy log volume.
- Data sources
- Linux auditd (PATH and SYSCALL records)
- Platforms
- Linux
Logic
Rule: -w /srv/finance/exports -p rwa -k sensitive_read Hunt: ausearch -k sensitive_read -i | aureport -f --summary Flag users with 10x their usual file count, or any access outside business hours.
False positives
Backups, indexers, and batch jobs. Exclude those accounts and exe paths.
Catches 11 techniques
- TAM-H-ACT-009Editing Records to Lie
- TAM-H-ACT-020Looking at Data Without a Reason
- TAM-H-ACT-021Making Unapproved Changes to IT Systems
- TAM-H-CVR-007Deleting Files
- TAM-H-CVR-015Faking File Dates
- TAM-H-CVR-016Hiding Shell History
- TAM-H-CVR-036Switching Off the Recorder
- TAM-H-STG-016Gaining Higher Rights
- TAM-H-STG-018Gathering Keys and Passwords
- TAM-H-STG-021Installing Unapproved Software
- TAM-H-STG-025Leaving Something Behind