T1070.006sub-technique of T1070 Indicator Removal
Timestomp
ESXi · Linux · macOS · Windows3 pieces on this siteT1070.006 on attack.mitre.org
Adversaries may modify file time attributes to hide new files or changes to existing files. Timestomping is a technique that modifies the timestamps of a file (the modify, access, create, and change times), often to mimic files that are in the same folder and blend malicious files with legitimate files. In Windows systems, both the `$STANDARD_INFORMATION` (`$SI`) and `$FILE_NAME` (`$FN`) attributes record times in a Master File Table (MFT) file.
The evidence it leaves
Where the traces live, and what each source proves and does not.
$MFT and the timestamp pair
Read
Analyses, case studies, guides, references and interview questions.
The operator set the clock, and set only one of them
Timestomping is a decision, not an accident, and the decision is visible. NTFS keeps eight timestamps per file and the ordinary Windows API writes four of them. What the other four say about the tool the operator chose, the checklist they were working from, and where they stopped.
Forensic timeline cheat sheet: which clock, whose time zone, and what each timestamp really records
A timeline is only as good as your understanding of what each timestamp means. The artifacts that carry time on Windows, what event each one actually records, the zone it is stored in, and the commands to build and cut a super timeline.
how MITRE says to see it
Cross-Platform Behavioral Detection of File Timestomping via Metadata Tampering
- Detects attempts to modify file timestamps via API usage (e.g., `SetFileTime`), CLI tools (e.g., `w32tm`, PowerShell), or double-timestomp behavior where $SI and $FN timestamps are mismatched or reverted.
- Detects use of timestamp-altering commands like `touch -a -m -t` or `touch -r`, particularly when executed by unusual users or in suspicious directories.
- Detects timestamp changes using `touch`, `SetFile`, or direct metadata tampering (e.g., xattr manipulation) from Terminal, scripts, or low-level APIs.
- Detects abuse of busybox commands (e.g., `touch`) or log timestamp tampering during backdoor persistence or evasion.