API Reference: Hunting for Timestomping (T1070.006)
NTFS Timestamp Attributes
| Attribute |
Modifiable By |
Updated On |
| $STANDARD_INFORMATION |
User-level APIs (SetFileTime) |
Create, modify, access, MFT change |
| $FILE_NAME |
Windows kernel only |
File create, rename, move |
Detection Logic
| Indicator |
Description |
| SI < FN Created |
$SI creation before $FN creation (most reliable) |
| Zero nanoseconds |
.0000000 in timestamp (tool artifacts) |
| Future timestamp |
Date beyond current time |
| Pre-OS timestamp |
$SI before OS install but $FN after |
| Round seconds |
No fractional seconds (unusual for NTFS) |
analyzeMFT (Python)
MFTECmd (Eric Zimmerman)
CSV Columns
| Column |
Description |
| Record Number |
MFT entry number |
| Filename |
File name |
| SI Created/Modified/Accessed |
$STANDARD_INFORMATION timestamps |
| FN Created/Modified/Accessed |
$FILE_NAME timestamps |
| In Use |
Active record flag |
USN Journal Analysis
Timestomping Tools (for detection awareness)
| Tool |
Method |
| timestomp (Metasploit) |
SetFileTime API |
| PowerShell Set-ItemProperty |
.NET DateTime |
| NirSoft BulkFileChanger |
Batch timestamp edit |
| $STANDARD_INFORMATION patch |
Direct MFT edit |
MITRE ATT&CK
- T1070.006 - Indicator Removal: Timestomp
- Tactic: Defense Evasion
- Platforms: Windows