analyzing-windows-prefetch-with-python

Featured

Parse Windows Prefetch files using the windowsprefetch Python library to reconstruct application execution history, detect renamed or masquerading binaries, and identify suspicious program execution patterns.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Analyzing Windows Prefetch with Python ## Overview Windows Prefetch files (.pf) record application execution data including executable names, run counts, timestamps, loaded DLLs, and accessed directories. This skill covers parsing Prefetch files using the windowsprefetch Python library to reconstruct execution timelines, detect renamed or masquerading binaries by comparing executable names with loaded resources, and identifying suspicious programs that may indicate malware execution or lateral movement. ## When to Use - When investigating security incidents that require analyzing windows prefetch with python - When building detection rules or threat hunting queries for this domain - When SOC analysts need structured procedures for this analysis type - When validating security monitoring coverage for related attack techniques ## Prerequisites - Python 3.9+ with `windowsprefetch` library (pip install windowsprefetch) - Windows Prefetch files from C:\Windows\Prefetch\ (versions 17-30 supported) - Understanding of Windows Prefetch file naming conventions (EXECUTABLE-HASH.pf) ## Steps ### Step 1: Collect Prefetch Files Gather .pf files from target system's C:\Windows\Prefetch\ directory. ### Step 2: Parse Execution History Extract executable name, run count, last execution timestamps, and volume information. ### Step 3: Detect Suspicious Execution Flag known attack tools (mimikatz, psexec, etc.), renamed binaries, and unusual execution patterns. ### Step 4: Build Exe...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category