Timestomping: how attackers fake file times, and how to detect it

Timestomping is the anti-forensics technique of changing a file's timestamps, usually to make a dropped tool look as old as the Windows files around it, so that a timeline of recent activity skips over it. MITRE ATT&CK lists it as T1070.006. On NTFS it is rarely perfect: the file system keeps more timestamps than most tools change, and other artifacts record the real times.

GlossaryAnti-forensicsMITRE ATT&CK T1070.006Checked 2 December 2026

Why attackers timestomp

Investigators find new files by sorting on time: what was created or modified around the intrusion? A backdoor dropped in C:\Windows\System32 yesterday stands out among files dated years ago. Setting its times to match kernel32.dll hides it from that view. Malware families, offensive frameworks (Metasploit's timestomp, Cobalt Strike's timestomp command) and simple PowerShell one-liners all do it.

Timestomping does not remove a file, so it is aimed at one thing: making a timeline review miss it. A responder who knows where the real times survive can usually show both the fake time and the true one, and a file with faked times becomes stronger evidence of intent than one without.

How NTFS stores file times

Each file's record in the $MFT holds two sets of four timestamps (modified, accessed, MFT record changed, born or created, often written MACB):

AttributeWho updates itChanged by timestomping tools?
$STANDARD_INFORMATION ($SI)Windows on most file operations; also any program through the SetFileTime and NtSetInformationFile APIsYes: this is what Explorer, dir and most tools show, and what the APIs change
$FILE_NAME ($FN)The NTFS driver itself, when the file is created, renamed or movedNot through the normal APIs; only by indirect tricks

Because ordinary programs can only reach the $SI times, a typical timestomp leaves the $FN times telling the truth. That asymmetry is the basis of the classic detection.

How to detect timestomping

  • $SI created earlier than $FN created. $FN times are set when the file is created or moved, so a genuine file's $SI creation time is normally the same as or later than its $FN creation time. An $SI creation time years before the $FN one is the classic sign.
  • Zeroed fractions of a second. NTFS stores time in 100-nanosecond units, so genuine timestamps have random-looking fractions. Many tools and scripts set whole seconds, leaving .0000000. A file whose $SI times all end in zeros, among neighbours that do not, deserves a look.
  • The USN Journal. Changing a file's times writes a USN Journal record with the reason BASIC_INFO_CHANGE, stamped with the real time of the change. A file whose $SI says 2019 but whose USN history shows it created and then given a basic-info change yesterday has been timestomped.
  • MFT record numbers. NTFS reuses free records, but files created close together often get nearby record numbers. A file "from 2019" whose record sits among files created during the intrusion is suspect.
  • Other artifacts. Prefetch run times, Amcache entries, ShimCache (which may have cached the file's modification time before it was changed), LNK files pointing at it, and its own PE compile time: a program "created" before it was compiled has a fake date.
  • Sysmon event 2. Where Sysmon is deployed and configured for it, "A process changed a file creation time" names the process, the file and both the old and the new creation time.

What timestomping looks like in the $MFT

An illustrative record for a backdoor dropped during an intrusion and then timestomped to match a system DLL (not from a case):

Timestamp$STANDARD_INFORMATION$FILE_NAME
Created2019-12-07 09:09:56.00000002026-11-30 22:41:13.5531207
Modified2019-12-07 09:09:56.00000002026-11-30 22:41:13.5531207
MFT record changed2026-11-30 22:41:15.09188422026-11-30 22:41:13.5531207
Accessed2019-12-07 09:09:56.00000002026-11-30 22:41:13.5531207

Three signs appear at once: the $SI created time is seven years before the $FN created time, the $SI times end in whole seconds, and the $SI "MFT record changed" time, which most tools do not set, still shows the real moment of the change two seconds after creation. A USN Journal record for the file with the reason BASIC_INFO_CHANGE at 22:41:15 would complete the picture.

How careful attackers go further

The $SI-versus-$FN check is well known, so some tools work around it. One known technique sets the $SI times, then moves the file to another folder and back: the move makes NTFS write fresh $FN values, and on some Windows versions those are taken from the already-faked $SI times. Others write the $MFT directly with raw disk access, which needs administrative rights and leaves its own traces. A third approach changes the system clock, creates the file, and sets the clock back; on Windows the clock change itself is logged as Security event 4616, and the USN Journal sequence numbers keep increasing regardless of the clock.

None of these removes every trace. The USN Journal, the $LogFile, execution artifacts and other hosts' logs are written by different components with different clocks and counters, and they rarely all agree with a forged date.

Timestomping on Linux

On Linux, touch -t 201901011200 file or touch -r /bin/ls file sets the access and modification times. The change time (ctime) cannot be set this way: it always records when the inode last changed, so it shows the moment of the timestomp. A file whose modification time is years old but whose ctime is during the intrusion has had its times altered or its permissions changed recently. On ext4 the birth time (crtime) is also kept and cannot be set with touch. Changing ctime requires altering the system clock or editing the file system offline, both of which leave other traces. On a live system, stat shows all four times for a file at once, and debugfs -R 'stat <path>' on ext4 includes the birth time, which makes a quick check possible before a full collection.

Reporting a timestomped file

A timestomped file needs two times in a report: the time it claims and the time the evidence supports. State the real time with its sources ("created at 22:41:13 according to the $FILE_NAME attribute and the USN Journal; its $STANDARD_INFORMATION times were set to 7 December 2019"), and treat the timestomping itself as a finding: it shows intent to hide, and it is an indicator to sweep for on other hosts, where the same tool often leaves the same fake date.

Be careful with the opposite mistake. Files extracted from archives, restored from backup or copied by some tools keep earlier timestamps legitimately, and a whole folder of them will show the same $SI-before-$FN pattern. Timestomping is a conclusion about one file in context, not about every mismatch.

Finding timestomped files in Arcsentry

Arcsentry's $MFT parser keeps both timestamp sets for every record (file_mft_si_created, file_mft_fn_created and their modified, accessed and MFT-changed counterparts), and the USN Journal parser records each change with its reason. This query lists files whose $SI creation time is earlier than their $FN creation time:

filter file_mft_si_created < file_mft_fn_created
select {file_path, file_mft_si_created, file_mft_fn_created, file_mft_entry}
sort {-file_mft_fn_created}

Expect some legitimate results: installers and archive tools restore original timestamps when they extract files, and that looks the same. Focus on executables and scripts in user-writable folders, recent $FN times and whole-second $SI times, then confirm with the USN Journal.

Artifacts that expose timestomping

Each of these records file times or activity independently of the timestamps a timestomping tool changes:

ArtifactWhat Arcsentry extracts
MFTParses NTFS Master File Table entries with timestamps and metadata.
USN JournalParses NTFS Update Sequence Number change journal.
NTFS LogFileParses NTFS $LogFile transaction journal entries.
PrefetchParses Windows Prefetch (.pf) execution artifacts.
AmcacheParses Amcache.hve application execution history.
ShimcacheParses Application Compatibility Cache (Shimcache) entries.

Frequently asked

What does timestomping mean?

Changing a file's timestamps (created, modified, accessed) to hide when it really appeared or changed, usually to make malware look as old as legitimate system files. It is MITRE ATT&CK technique T1070.006.

How do you detect timestomping?

Compare the $STANDARD_INFORMATION and $FILE_NAME timestamps in the $MFT, look for whole-second timestamps, check the USN Journal for basic-info changes, and compare with Prefetch, Amcache, ShimCache and the file's compile time.

What is the difference between $STANDARD_INFORMATION and $FILE_NAME timestamps?

Both are sets of four timestamps in a file's $MFT record. $STANDARD_INFORMATION is what Windows shows and what programs can change through normal APIs. $FILE_NAME is maintained by the NTFS driver on creation, rename and move, so it usually survives timestomping.

Does timestomping change the $FILE_NAME timestamps?

Usually not. Ordinary programs can only change the $STANDARD_INFORMATION times through the Windows APIs. $FILE_NAME times change only through indirect tricks such as moving the file after stomping it, or by writing the $MFT directly with raw disk access.

Is timestomping always malicious?

No. Archive tools, installers and backup restores legitimately set older timestamps. Timestomping is suspicious when it affects an executable or script in an unusual location, uses whole-second times, or matches the timing of other attacker activity.

Can timestomping be done on Linux?

Yes, with touch, which sets access and modification times. The change time (ctime) and the ext4 birth time cannot be set that way, so they usually reveal the change.

Sources

  • MITRE ATT&CK: T1070.006 Indicator Removal: Timestomp
  • Microsoft Learn: SetFileTime function; NTFS file times
  • Microsoft Learn: 4616(S) The system time was changed
  • Sysinternals: Sysmon event 2 (file creation time changed)

Checked 2 December 2026 by Venema Labs. Parser coverage is generated from the Arcsentry build the artifact library describes.

Spot timestomped files across every host in a case

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial