Skip to content

What is Windows Prefetch? (glossary)

Windows Prefetch is the folder of .pf files the Prefetcher writes to make application startup faster. The Prefetcher records which DLLs and data files a binary loads in its first ~10 seconds, so Windows can pre-fault them next time. The forensic value is a side effect: the .pf exists if and only if the binary actually ran (assuming Prefetch is on, which it is by default on desktop builds).

That makes Prefetch the strongest Windows artefact for proving execution. It is the canonical thing to pair with Amcache when "did this binary run?" matters.

What each .pf carries#

Field Meaning
Executable name From the filename.
Path hash The suffix on the filename. Not a content hash.
Run count How many times the binary has been launched.
Last run times Up to 8 (Win 7/8/10), 10 on Win 11.
Files loaded DLLs and data files referenced in the first ~10s of execution.
Volumes referenced Source volume serial numbers.

Prefetch vs Amcache#

Prefetch Amcache
Proves execution Yes No, presence only
Records content hash No (path hash only) Yes (SHA-1)
Records run times Yes, up to 8 or 10 No
Records publisher / version No Yes
Survives binary deletion Yes Yes
Default-on desktops Yes Yes
Default-on Servers Often off On (slower cadence)

For the full comparison, see Amcache vs Prefetch.

When each one wins#

Prefetch wins on: "did this run?", "when?", "what did it load?". The files-loaded list often surfaces injected DLLs you would not otherwise see.

Amcache wins on: "what is its SHA-1?", "was it present but never run?", "what about drivers and devices?". And Amcache routinely survives much longer than Prefetch, which rolls over at around 1024 entries on modern Windows.

Parsing tools#

  • PECmd (Eric Zimmerman). Standard.
  • Windows-Prefetch-Parser. Older Python alternative, occasionally still useful.

Related posts

← Back to all posts