DET-044 · human · confidence Medium
Executable Timestamp Cross-Check
Compare file timestamps in the NTFS master file table against the Shimcache to spot executables whose dates were rewritten to look old.
Two Windows artifacts record when an executable was last modified. The Master File Table (MFT) stores it in the standard information attribute and the file name attribute. Shimcache (AppCompatCache) stores the file's last modified time as it was when the program was seen by the system. Despite common belief, Shimcache does not record when something ran.
Timestomping edits the easy-to-change timestamps after the fact. If the Shimcache entry holds a modified time that disagrees with the MFT, or the MFT's two attribute sets disagree with each other, the file was probably touched after it first executed. An insider hiding a tool or script they brought in is a common reason.
- Data sources
- Parsed $MFTShimcache (AppCompatCache) registry hiveEDR file events
- Platforms
- Windows
Logic
1. Parse $MFT (MFTECmd) and SYSTEM hive Shimcache (AppCompatCacheParser). 2. Join on full path. 3. Flag rows where Shimcache last-modified differs from MFT $STANDARD_INFORMATION modified time, or where $SI created is earlier than $FILE_NAME created. 4. Pivot on rows in user-writable folders (Downloads, AppData, Temp, USB drives).
False positives
Files patched in place by installers, or restored from backup with preserved dates, can show a mismatch. Volume copies between disks also shift timestamps.