Windows Prefetch files

Windows Prefetch files (.pf) live in C:\Windows\Prefetch. Windows creates one per executable to speed up its next launch, named after the executable and a hash of its path.

WindowsExecutionParser: prefetch16 fieldsCollected by priority triage

What Prefetch is

Each file records how many times the program ran, the last run times (up to eight on Windows 8 and later), and the files and directories it touched in its first seconds of running.

Forensic value

What Prefetch can tell an investigator:

  • Strong evidence that a program actually executed, with run count and recent run times.
  • Files and folders the program loaded, which can reveal staging directories, DLLs and data it touched.
  • Volume information that ties execution to a specific drive.

What it does not prove

  • Prefetch is often disabled on Windows Server, so its absence on a server is not meaningful.
  • Only a limited number of .pf files is kept; older ones are removed as new programs run.
  • Attackers may delete Prefetch files; the deletion itself can show in the USN Journal.

Where it is stored

Arcsentry looks for Prefetch at these locations inside a collection, disk image or mounted volume:

**/Windows/Prefetch/*.pf
**/Windows/Prefetch/Layout.ini

What Arcsentry records

Each Prefetch record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
messageVARCHARHuman-readable message
log_fileVARCHARSource log file path
artifact_read_statusVARCHARSource read failure: unreadable (the source could not be read), corrupt (its bytes failed format or stream integrity checks), unrecognized (the content does not identify a supported format), or unsupported (the format version or a required format extension is not supported); records read before a failure may still be present
process_executableVARCHARProcess executable
file_nameVARCHARFile name
hashVARCHARfile_hash
prefetch_versionVARCHARPrefetch format version
run_countBIGINTNumber of times executed
linked_file_pathVARCHARPrefetch linked file path
linked_file_mft_entryBIGINTPrefetch linked file MFT entry
linked_file_mft_sequenceBIGINTPrefetch linked file MFT sequence
volume_device_pathVARCHARPrefetch volume device path
volume_serial_numberVARCHARPrefetch volume serial number
volume_created_atTIMESTAMPPrefetch volume creation timestamp
linked_file_countBIGINTPrefetch linked file count
linked_filesVARCHAR[]Prefetch linked file paths

Time

Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting Prefetch with Arcsentry Collector

Arcsentry Collector gathers Prefetch in these triage profiles: windows::profile::triage::priority, windows::profile::triage::offline, windows::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: windows::execution::prefetch.

.\arcsentry-collect.exe collect --local -t windows::profile::triage::priority `
  -o E:\IR -f host.arcx --password-file E:\IR\pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Prefetch can come from the tools you already use.

Analysing Prefetch in Arcsentry

Ask in plain English, for example "show Prefetch records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:

filter event_type == "prefetch"
sort {-timestamp}
take 100

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Prefetch records with the same tools and cites them by event ID.

Corroborate with

No single artifact settles a question on its own. Check Prefetch against:

  • Amcache: Parses Amcache.hve application execution history.
  • BAM / DAM: Program execution times the Background and Desktop Activity Moderator services record for each user SID.
  • Windows event log: Parses Windows Event Log (.evtx) files.
  • USN Journal: Parses NTFS Update Sequence Number change journal.
  • SRUM: Parses System Resource Usage Monitor database for application metrics.

Frequently asked

How many run times does Prefetch keep?

On Windows 8 and later, up to the last eight run times, plus a total run count.

Why is there no Prefetch folder on a server?

Prefetch is commonly disabled on Windows Server editions. Use process-creation events, Amcache and BAM instead.

Does Arcsentry parse Prefetch?

Yes. Arcsentry's Prefetch parser (prefetch) reads it from Windows evidence and records 16 fields per record, with provenance back to the source file.

How do I collect Prefetch?

Arcsentry Collector gathers it with the priority triage profile (windows::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse Prefetch on your own evidence.

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

Request a trial