For the complete documentation index, see llms.txt. This page is also available as Markdown.
Decoding Prefetch Files with Eric Zimmerman's PECmd Tool
Prefetch files in Windows are used to speed up the loading of software. Analyzing these files can provide insights about program execution history, which is valuable in digital forensics.
The tool will parse the Prefetch files and display the output in the Command Prompt.
Information includes application run times, execution counts, and accessed files.
Step 6: Export the Results
To export to a CSV file:
Step 7: Analyze the CSV Output
Open the CSV in your preferred program and analyze the data for execution patterns.
Additional Options
For a list of all commands:
Using PECmd.exe on a CSV of Prefetch Names
Sometimes, when I'm conducting incident response, I only ahve access to CrowdStrike Real Time Response (RTR) which tends to be more often than not. Depending on your permissions level, you may not have access to run PECmd.exe within a live response option or on the host.
In cases like this, I grab an output of all of the file names within the hosts prefetch and parse them on my workstation.
To use PECmd.exe on a CSV of Prefetch file names:
Ensure your CSV file is formatted properly, with each Prefetch file path on a separate line.
Use a script to read each line from the CSV and pass it to PECmd.exe for processing.