How to detect timestomping on Windows

Attackers backdate the timestamps on the files they drop, so a tool installed last night looks like it has been part of Windows for years. Here is how it works, how to spot it, and the legitimate cases that can look the same.

A file that appears years old in Explorer, beside its two NTFS timestamp sets showing the standard information dates were backdated
Explorer shows one clock. NTFS keeps two.

What timestomping is

Timestomping means changing a file's timestamps to hide when it really arrived. Investigators often start by sorting files by date around the time of an incident; a file backdated by a few years simply drops out of that view. It is a common technique, recorded in the MITRE ATT&CK framework as "Timestomp" (T1070.006).

It is also easy to do. Windows lets any program set a file's created, modified and accessed times through a standard API, and many attacker tools, and even a single PowerShell command, can do it.

Why it can be detected: NTFS keeps two sets of timestamps

On an NTFS volume, every file's record in the master file table holds two separate sets of timestamps, each with four values: created, modified, record changed and accessed.

Timestamp setWhat uses itWho can change it
$STANDARD_INFORMATIONWhat Explorer, dir, PowerShell and most tools show youAny program, through the standard Windows API
$FILE_NAMEKept with the file's name; not shown by normal toolsSet by Windows itself when the file is created, renamed or moved

A typical timestomping tool changes only the first set. The second set still records when the file really arrived. Comparing the two is the classic way to catch it.

Signs to look for

Legitimate causes that look similar

Not every mismatch is an attack. Expect some of these on a normal machine:

That is why context matters: an old creation date on a signed Microsoft file restored from backup means little; the same pattern on an unsigned executable that a new service points to means a lot.

How to check

Windows' own tools only show the $STANDARD_INFORMATION times, so they can't reveal timestomping by themselves. You need something that reads the master file table directly. Forensic analysts commonly use free tools such as Eric Zimmerman's MFTECmd, which parses the master file table and flags records where the two sets disagree or have zeroed fractions. That works well for a one-off investigation on a collected copy of the file table.

Bear in mind that a skilled attacker can make the two sets agree, for example by moving a file after changing its times. So treat a clean result as "no obvious sign", not "proof of innocence", and look at the other evidence too: the change journal, event logs, and how the file is launched.

Where Tracknosis fits

Tracknosis is a lightweight agent for Windows that reads every file record directly from the master file table on every scan, so timestomping checks happen automatically, across the whole disk, without collecting anything by hand:

The backwards-timestamp check needs a previous scan to compare against, which is one more reason to take a baseline before you need it.

Catch backdated files automatically

Request a guided trial: we install Tracknosis with you on one of your Windows machines and walk you through your first results.

Request a guided trial More: attacks without signatures