Analyzing windows prefetch with python

From killvxk/cybersecurity-skills-zh · View interactive version

Analyzing windows prefetch with python is an AI agent skill from the GitHub repository killvxk/cybersecurity-skills-zh. 使用 windowsprefetch Python 库解析 Windows Prefetch 文件,重建应用程序执行历史,检测重命名或伪装的二进制文件,并识别可疑的程序执行模式。

How to use this skill

Skill file

使用 Python 分析 Windows Prefetch

概述

Windows Prefetch 文件(.pf)记录应用程序执行数据,包括可执行文件名称、运行次数、时间戳、已加载 DLL 及已访问目录。本技能涵盖使用 windowsprefetch Python 库解析 Prefetch 文件以重建执行时间线,通过比较可执行文件名称与加载的资源来检测重命名或伪装的二进制文件,以及识别可能表示恶意软件执行或横向移动的可疑程序。

前置条件

步骤

步骤 1:收集 Prefetch 文件

从目标系统的 C:\Windows\Prefetch\ 目录收集 .pf 文件。

步骤 2:解析执行历史

提取可执行文件名、运行次数、最后执行时间戳及卷信息。

步骤 3:检测可疑执行

标记已知攻击工具(mimikatz、psexec 等)、重命名的二进制文件和异常执行模式。

步骤 4:构建执行时间线

从所有 Prefetch 文件重建按时间顺序排列的执行时间线。

预期输出

包含执行历史、可疑可执行文件、重命名二进制文件指标及时间线重建的 JSON 报告。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.