DET-073 · human · confidence Medium
Linux Timestamp Change Watch
An auditd rule that records each time a file's timestamps are changed.
Timestomping on Linux uses touch -t or system calls such as utimensat. An auditd rule on those calls creates a record with the user, process, and file. Adding it with a key such as timestamp-changed lets you search with ausearch -k. Scope it with filters to avoid noise. A user touching files in /var/log, /etc, or a project directory shortly after changing them is worth a look.
- Data sources
- Linux auditd (SYSCALL records)
- Platforms
- Linux
Logic
Rule: -a always,exit -F arch=b64 -S utimensat,utimes,futimesat -F auid>=1000 -F auid!=-1 -k timestamp-changed Hunt: ausearch -k timestamp-changed --start today | aureport -f -i Focus on paths outside /home and /tmp.
False positives
Build tools, rsync, tar extraction, and package managers set times legitimately. Exclude by process.