Skip to content

Amcache timestamps explained: KeyLastWriteTimestamp vs LinkDate vs the rest

Amcache exposes multiple distinct timestamps, and confusing them is the single most common mistake new analysts make. Date a finding wrong and the entire timeline collapses. This page is the full reference. Every timestamp, what it actually represents, which one to pivot on for any given question.

For the keys these fields live in, see the Amcache.hve reference.

The timestamps at a glance#

Timestamp Where Stored as Represents
Key LastWrite (KeyLastWriteTimestamp in AmcacheParser) Every key, from the hive's own metadata FILETIME in the key header When the appraiser last wrote this entry. The closest thing to "when Amcache recorded this".
LinkDate InventoryApplicationFile String, e.g. 05/12/2019 08:22:13 PE TimeDateStamp: when the binary was linked. Attacker-controllable.
DriverTimeStamp InventoryDriverBinary Number (seconds since 1970) Same thing for a driver. Same caveats.
InstallDate InventoryApplication String Whatever the installer or ARP entry reported.
InstallDateMsi, InstallDateArpLastModified, InstallDateFromLinkFile InventoryApplication Strings Install date from three different sources (see below).
Legacy numbered values (11, 12, 17) Root\File on Windows 8 and early 10 hives FILETIME Last-modified and created times as the appraiser read them from the file system.

Two storage conventions share one hive. The key LastWrite is a 64-bit FILETIME (100-nanosecond intervals since 1601-01-01 UTC) that every parser converts for you. Several value-level dates are plain strings inside REG_SZ values, which a parser has to interpret. If a field looks wrong, check the value type before you trust a converted date: REG_QWORD or an 8-byte REG_BINARY is a FILETIME, REG_SZ is text.

The single most important rule:

KeyLastWriteTimestamp is the "when was this seen on this host" pivot. Everything else is a different question.

KeyLastWriteTimestamp#

The registry-level last-write time of the key containing the entry. Hive metadata. Windows updates it every time the key's contents change.

For Root\InventoryApplicationFile\<entry>, the KeyLastWriteTimestamp is updated whenever the appraiser writes or updates that entry:

  • The first time the appraiser inventories a file, the key is created and its KeyLastWriteTimestamp is the inventory time.
  • If the file's metadata changes between inventories (size, hash, version), the key is rewritten and the timestamp advances.
  • If nothing changes between inventories, the timestamp stays put. Even when the appraiser ran again and confirmed the file is still present.

That last point matters: KeyLastWriteTimestamp is not "the most recent time the appraiser saw this file". It is "the most recent time the appraiser wrote about this file". For a stable, unchanged file, the timestamp can be weeks or months old even though the file has been present that entire time.

What KeyLastWriteTimestamp is good for#

  • First-seen approximations. For a binary the attacker dropped new on a clean host, KeyLastWriteTimestamp is the appraiser-run time after the drop. Subject to:
  • The appraiser does not run instantly. Up to ~24h delay on workstations, longer on servers.
  • The binary must still be present at appraiser time. Transient binaries deleted before the next pass may never appear.
  • Resolution is whatever the appraiser writes. Typically second-precision.
  • Time-window joins. Once you have a suspicious entry, take its KeyLastWriteTimestamp ± your chosen window (one hour is a common default) and join all other CSVs (Prefetch, Sysmon, Security 4688) on that window. You get the full story of what happened around the inventory event.
  • Detecting binary replacement. If two InventoryApplicationFile rows share the same FullPath but have different Hash values and different KeyLastWriteTimestamp values, the binary at that path changed between those two times. Sort by timestamp to see the sequence.

What KeyLastWriteTimestamp is not good for#

  • "When did this binary first exist on disk?" That's a filesystem question. $STANDARD_INFORMATION.CreationTime in the MFT. KeyLastWriteTimestamp is at best an upper bound: the file existed on disk no later than the timestamp, probably earlier.
  • "When did this binary execute?" Amcache records presence, not execution. Use Prefetch.
  • Sub-second precision. Don't draw conclusions from milliseconds.

LinkDate#

The PE-header TimeDateStamp. The value the linker stamped into the binary's IMAGE_FILE_HEADER at compile/link time. Every PE has one.

What LinkDate is good for#

  • Clustering binaries by build campaign. Sort unassociated PEs on a host by LinkDate and you frequently see tight clusters: 3-10 binaries all stamped within the same day or hour. That is often a single attacker compiling their full toolkit in one sitting.
  • Spotting suspiciously old or new builds. A driver compiled in 2014 that first shows up in your Amcache today is a flag for BYOVD. A binary compiled in the future is a flag for clock-skew or sloppy tooling.
  • Confirming a build belongs to the expected campaign. "Our internal tool builds always linkdate Mondays at 03:00 UTC. This one is Tuesday at 14:00. Investigate."

What LinkDate is not good for#

  • "When did this binary appear on this host?" Attacker-controllable. The attacker can set any TimeDateStamp they want at link time, sometimes set to 0 deliberately (reproducible builds) or to a past date (to make the binary look old/established). Trusting LinkDate as a host-presence pivot produces wrong findings.
  • Cryptographic identity. LinkDate alone is not unique. Many binaries share the same link timestamp.

InstallDate and its three siblings (InventoryApplication)#

InstallDate sits under each InventoryApplication\<ProgramId> key and holds whatever the installer reported. For properly packaged software (Office, browsers, vendor MSIs) it is usually accurate. For droppers, portable tools and anything that never went through an installer, it is missing, zero or arbitrary. Use it to answer "when did this user install Chrome", not to date adversary activity.

Newer Windows 10 and 11 hives carry three more install dates for the same application, each from a different source:

  • InstallDateMsi: from the Windows Installer database, when the install used MSI.
  • InstallDateArpLastModified: the last-modified time of the Add/Remove Programs (Uninstall) entry.
  • InstallDateFromLinkFile: from the Start menu shortcut the installer created.

When they agree, the install date is solid. When they disagree by more than a few minutes, something happened after the install: a repair, an upgrade, a re-registration, or a binary replaced under a legitimate installer. AmcacheParser exports all four as columns in the program entries CSV.

Two more cross-checks:

  • Against the file records. If a file's key LastWrite is much older than its parent application's install dates, the file appears to predate the application. Worth explaining.
  • Against the epoch. Values at 1601-01-01 or 1970-01-01 mean "not set", not "installed in 1601".

Key LastWrite on the other Inventory keys#

Every Inventory key has its own LastWrite. They all mean "the appraiser refreshed this record", but their usefulness varies.

  • InventoryApplication\<ProgramId>: usually written close to install time and rarely afterwards. A corroboration check against the install-date values.
  • InventoryDriverBinary\<id> and InventoryDriverPackage\<id>: refreshed shortly after a driver lands on a normally running host. In BYOVD cases this is often the tightest bound you have on when a vulnerable signed driver was staged.
  • InventoryDeviceContainer\<id>: roughly "when Windows last refreshed this device". Too coarse alone for USB questions. Pair it with SYSTEM\ControlSet001\Enum\USBSTOR, setupapi.dev.log and Microsoft-Windows-Partition%4Diagnostic.evtx. See USB device history in Amcache.
  • InventoryApplicationShortcut\<id>: when the appraiser indexed the .lnk. The shortcut's own MAC times inside the LNK file are more informative.

Windows 7, 8, 10 and 11 differ#

The key names can look the same while the content changes.

  • Windows 7 (with the compatibility updates) and Windows 8 / 8.1: the legacy schema. Root\File\<volume GUID>\<file reference> with numbered values, and Root\Programs. The last-modified and created FILETIMEs (11, 12, 17) are file-system times as the appraiser read them, a different meaning from anything in the modern hive. Do not apply modern field names to these hives.
  • Early Windows 10 builds: still legacy, then the Inventory* family arrives. Fields such as the extra install dates are missing on older builds, and LinkDate can be empty for PEs the appraiser could not parse.
  • Current Windows 10 and Windows 11: the stable Inventory* schema most tooling targets, with additional values on newer builds. The meaning of the core timestamps has not changed.

The per-version details are in Amcache on Windows 11 and 10 and the schema table in the Amcache.hve reference.

In-place upgrades make a mess#

A feature upgrade (Windows 10 to 11, or between major builds) migrates the hive rather than rebuilding it:

  • Older entries keep their pre-upgrade LastWrite until the appraiser rescans them.
  • The post-upgrade rescan refreshes most entries within hours to days.
  • Values added by the new schema are filled on refreshed entries and empty on entries that were not.
  • Some entries for files that no longer exist are never cleaned up.

If the LastWrite distribution in a hive shows two clusters separated by a clean gap, you are probably looking at a pre-upgrade and a post-upgrade population. Confirm the upgrade date from the Setup event log or setupact.log before reading anything into it.

The standard time-bound pivot#

The investigation pattern most analysts standardise on:

  1. Identify a suspicious row in *_UnassociatedFileEntries.csv (typically via "unsigned PE in user-writable path").
  2. Take its KeyLastWriteTimestamp.
  3. Define a one-hour window centred on that timestamp.
  4. Pull from that window:
  • All other Amcache rows (cross-key: drivers, devices, shortcuts).
  • All Prefetch entries (definitive execution).
  • All Security 4688 process-creation events.
  • All Sysmon 1 (process create), 7 (image load), and 11 (file create) events.
  • All filesystem creates from the MFT and USN journal.
  1. The resulting timeline is the full picture of what happened around that inventory event.

This is the canonical "what was the attacker doing in this minute?" join, and KeyLastWriteTimestamp is the anchor that makes it possible.

A worked example#

Two Amcache rows for the same path:

FullPath: C:\Users\bob\AppData\Local\Temp\notepad.exe
Row A:  KeyLastWriteTimestamp = 2026-03-12 14:23:11 UTC
     Hash         = aaaaaaaa...
     LinkDate       = 2018-04-03 09:00:00 UTC
     Publisher       = ""

Row B:  KeyLastWriteTimestamp = 2026-04-19 02:14:55 UTC
     Hash         = bbbbbbbb...
     LinkDate       = 2018-04-03 09:00:00 UTC
     Publisher       = ""

Reading:

  • LinkDate is identical. That's the TimeDateStamp in the PE header. The attacker reused the same build identity, or used a template that linkstamps every build the same. Not evidence of build time.
  • Hash differs. Different content at the path at the two KeyLastWriteTimestamp moments.
  • KeyLastWriteTimestamp differs. Amcache saw the path twice, ~5 weeks apart, with different content each time.

Conclusion: a binary at this path was replaced between March 12 and April 19. Pivot on the April 19 timestamp ± 1h for the new binary's drop event. Pivot on March 12 ± 1h for the original drop. Two intrusion events. One path. One Amcache entry to find both.

Sanity checks before a timestamp goes into a report#

  1. Is the InventoryApplicationFile key LastWrite later than the file's NTFS creation time? If it is earlier, you are looking at timestomping, clock skew or an edited hive.
  2. Does it line up with a run of the Microsoft Compatibility Appraiser task in Microsoft-Windows-TaskScheduler%4Operational.evtx? Appraiser writes come in batches, so LastWrites cluster around task runs.
  3. Do the four install-date values for the parent application agree?
  4. Is LinkDate plausible? 1970, a future date, or a date that contradicts the rest of the host's timeline means the header was stamped, not that the file is that old.
  5. Does at least one other source agree: Prefetch run times, Sysmon 1, Security 4688, or the USN journal? If not, explain the gap before you commit to it.

Further reading#

  • Yogesh Khatri, Amcache.hve in Windows 8, the first public description of the hive and its fields.
  • Blanche Lagny (ANSSI), Analysis of the AmCache (2019), on the modern schema and what its timestamps do and do not mean.
  • Eric Zimmerman's AmcacheParser source for how each value name maps to an output column.

Related posts

← Back to all posts