In short.
Analyzing Windows Prefetch with Python is a forensic assistant skill for security analysts, but its bundled script does less than the guide's examples suggest. The source defines local parsing, execution records, file hashes and name-based alerts. DLL-based masquerading detection is absent, legitimate Windows utilities can receive critical alerts, and the exported timeline contains at most 50 entries. Runtime compatibility and detection accuracy have not been assessed; nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied skill folder: SKILL.md, references/api-reference.md, scripts/agent.py and the local LICENSE, together with the repository-level LICENSE, at commit 54a798831d2266a3ca61ce68a7acb80b81160d57. Other repository skills, dependency internals, externally linked pages and changes after that commit are outside this scope. Runtime behavior, assistant integration, actual Windows-format compatibility, detection accuracy and performance were not assessed. The downloadable file is the unchanged scripts/agent.py source with applicable license notices; it does not contain the companion instructions or reference.
The overview
Identity
The resource is the skills/analyzing-windows-prefetch-with-python folder in mukul975/Anthropic-Cybersecurity-Skills. It contains SKILL.md instructions, references/api-reference.md, scripts/agent.py and a local license. Skill metadata identifies version 1.0 and author mahipal; the license notices identify mukul975.
The original source location is [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/main/skills/analyzing-windows-prefetch-with-python]. No particular assistant host, model or loading procedure is specified.
Assessment
The strongest supported use is organizing Prefetch records for an investigator to examine. The script exposes useful metadata and includes artifact hashes, but its alerts require interpretation and its exported timeline is truncated.
The guide describes comparing loaded resources to identify renamed binaries. The implementation instead compares the executable name with the Prefetch filename prefix and retains only a resource count. The richer detection shown in the documentation is therefore unsupported by the supplied code.
Users
The intended users include incident responders, digital forensic investigators and security operations analysts investigating application execution. Prefetch files are Windows records containing details such as executable names, run counts and execution timestamps.
Beginners receive a short collection-to-report procedure, but will still need help interpreting forensic evidence and separating suspicious names from confirmed malicious activity. Developers can inspect or adapt the Python implementation; the supplied files do not establish its suitability for unattended incident decisions.
Capabilities
The code defines extraction of executable names, run counts, available timestamps, volume names and serial numbers, resource counts, Prefetch file sizes and SHA-256 hashes. It also records the hash suffix from each Prefetch filename, which is separate from the SHA-256 of the file's contents.
It includes exact-name checks for selected security tools and Windows utilities, a filename-prefix mismatch check and a timestamp-sorted timeline. The report is written as prefetch_analysis_report.json and printed to standard output. Full resource paths, DLL lists, incident-window filtering and first-time execution analysis are not implemented.
Using it
Requirements
The guide specifies Python 3.9 or later, the windowsprefetch package and collected .pf files. The reference identifies C:\Windows\Prefetch\ as the usual source directory and says reading that directory requires administrator privileges.
The documentation lists Prefetch formats 17, 23, 26 and 30, with up to eight timestamps for the newer listed formats. These are documentation claims; compatibility with actual files and current dependency releases was not assessed. No dependency version is pinned.
Mechanism
The script finds files using glob('*.pf') in the supplied directory, without recursion, and passes each file to windowsprefetch.Prefetch. It reads available object attributes, calculates a SHA-256 hash and stores an execution record. Exceptions raised by the parser constructor cause that file to be silently skipped.
Detection uses fixed executable-name sets and a prefix comparison between the reported executable and the Prefetch filename. Timeline generation converts timestamps to strings, sorts them in descending order and ultimately exports at most 50 entries. The supplied script contains no model calls or network requests; the dependency's internal behavior was not assessed.
Setup
The documented dependency installation command is pip install windowsprefetch. From a local copy of the skill folder, the supplied script's interface is python scripts/agent.py /evidence/Windows/Prefetch --output-dir /analysis/prefetch_report. These commands were not executed.
The input directory is positional and the output option is --output-dir. The guide's example instead names prefetch_analyzer.py and uses --dir and --output, which do not match the supplied script. Installation into a particular assistant environment is not documented.
Example
An investigator could supply a directory of collected Prefetch files and examine the resulting execution_history, execution_timeline and findings fields. The code would label an exact mimikatz executable-name match as critical and include its recorded run count and last-run value; the name match alone would not establish what the program actually did.
The guide's illustrated 234-file investigation, Cobalt Strike DLL alert and first-time execution counts are example text, not measured results. Its displayed analyzer version 2.1 does not establish the version of scripts/agent.py, and its prefetch_timeline.json filename differs from the implementation.
Assessment & evidence
Limitations
Several legitimate Windows utilities, including certutil and rundll32, appear in the suspicious-name set and receive critical alerts regardless of run count or context. The separate medium-severity high-usage rule applies only when the earlier name check does not match. False-positive and false-negative rates are unknown.
Parser-construction failures are silently omitted, while total_prefetch_files counts all matching files. The field total_unique_executables counts parsed records without deduplicating executable names, so multiple Prefetch files for one executable can inflate it.
Timestamp collection can duplicate a last-run value already present in the timestamp list. No timezone normalization is implemented, and the exported timeline contains only the first 50 entries after string sorting. The filename-prefix check does not verify binary identity or inspect DLL combinations, and there is no recorded accuracy or performance evaluation.
Reasoning
The source supports treating this resource as an aid to triage: it gathers metadata and generates leads for an investigator. That assessment follows from the directly visible extraction code and simple alert rules.
Confidence in stronger conclusions is limited because the implementation lacks the resource-based detection described in the guide, can overstate coverage through its counters and truncates the exported timeline. Its usefulness depends on independent interpretation and validation of the underlying records.
Alternatives
The reference links to Windows Prefetch Parser [https://github.com/PoorBillionaire/Windows-Prefetch-Parser] and libscca/pyscca [https://github.com/libyal/libscca]. These are candidates for further investigation, but their contents, maintenance, compatibility and comparative accuracy were not assessed.
For developers who need extraction without this script's alert rules, the included reference also illustrates direct use of windowsprefetch.Prefetch. That approach would require implementing and validating reporting and interpretation separately.
Evidence
The source basis consists of the skill instructions, API reference, Python implementation and both applicable license files at commit 54a798831d2266a3ca61ce68a7acb80b81160d57. The instructions establish intended capabilities; the implementation establishes the actual code paths and their limits.
No sample Prefetch inputs, execution receipts, automated tests, dependency source or benchmark results were supplied. External references were not opened. Nothing was installed or executed, so successful parsing, output generation and compatibility remain unverified.
Access & freshness
Costs
Overall operating cost is unknown. The supplied files contain no price schedule, resource measurements or assistant-host pricing. The script has no paid-service integration in its source.
Apache-2.0 grants no-charge, royalty-free rights under its terms. That license grant does not establish the costs of an assistant environment, computing resources or analyst work.
Rights
Both the repository-level and skill-local LICENSE files contain Apache License 2.0, and the skill metadata also declares Apache-2.0. The license permits use, modification and redistribution, subject to its conditions.
Redistribution requires a license copy, retention of applicable notices and prominent notices in modified files. Applicable NOTICE attributions must also accompany redistributed derivatives if such a file is included in the work. The license grants no general trademark permission and provides the work without warranties. Separate dependency licensing was not supplied.
Freshness
The supplied snapshot was captured on 2026-11-17 at 09:51:34.424 UTC and identifies commit 54a798831d2266a3ca61ce68a7acb80b81160d57. A fixed source location is [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/analyzing-windows-prefetch-with-python].
The skill declares version 1.0, but the files do not establish a release date, dependency version or support schedule. Changes after the captured commit and compatibility with current dependency releases are unknown.
Actions
Use the supplied script's positional input directory and --output-dir option when preparing an evaluation. Establish a compatible dependency version and compare extracted names, counts and timestamps against known Prefetch examples before relying on its reports.
For dependable reporting, account for rejected files, deduplicate executable counts and timestamps, preserve the required timeline coverage and check timezone handling. Review the critical name-based alerts against legitimate activity, and corroborate any suspected masquerading with evidence beyond the filename-prefix check.
