Prefetch
A Windows artifact proving a program ran, and when.
What it is
Prefetch files are created by Windows to speed up application launches. Each one records the executable name, a run count, and the last several execution times.
Where it lives
C:\Windows\Prefetch\*.pf
Why it matters
Prefetch is one of the cleanest proofs of execution on Windows. It can show that a now-deleted tool ran, how many times, and when, helping build an attacker timeline.
In practice
A prefetch entry for a malicious binary that no longer exists on disk, confirming it executed three times last Tuesday.
What to look for
- A .pf file for a tool that should not be on the host.
- Run counts and the last eight run times on Windows 8 and later.
- Files and directories the program touched in its first seconds.
Common mistake
Treating a missing prefetch file as proof something never ran. Prefetch can be disabled, is often off on servers, and ages out.
Use it in CyberKit
- Windows Artifact Reader
Read a Prefetch file, a shortcut, a Recycle Bin $I file, or a carved MFT or USN record. It detects which one you dropped.
- Windows Host Case
An alert on a live Windows workstation: read the event logs and the Registry, rebuild the timeline, then decide what to collect.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Autopsy Open source
A graphical forensics platform that parses file systems and common artifacts. Our notes.
-
Plaso Open source
Builds a super timeline from many artifacts in one image. Our notes.
-
Velociraptor Open source
Collects the same artifacts remotely, without pulling a full disk image. Our notes.
Tools practitioners use
- Eric Zimmerman Tools: MFTECmd, Registry Explorer, PECmd, EvtxECmd & more
Read next
- Master File Table: The NTFS index of every file, and a goldmine of timestamps.
- Windows Event Log: Windows' record of logons, process starts, and system activity.
- Living off the Land: Attackers abuse built-in, trusted tools instead of dropping malware.