meltedinhex/analyst-ai-pack / skills/dissecting-boot-and-kernel-rootkits
dissecting-boot-and-kernel-rootkits
VerifiedAnalyzes bootkit and rootkit samples by identifying boot-process tampering (MBR/VBR/ UEFI), kernel-mode components, and stealth hooking techniques from static indicators. Activates for requests to analyze a bootkit or rootkit, examine MBR/UEFI tampering, or identify kernel-mode stealth components.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.8 KB |
| references/api-reference.md | markdown | 1.3 KB |
| scripts/analyst.py | script | 3.4 KB |
references/api-reference.md
View on GitHub# API Reference: Analyzing Bootkit and Rootkit Samples
## Overview
`scripts/analyst.py` classifies a sample as an MBR/VBR boot sector, UEFI module, or kernel driver
(via boot signature, PE subsystem, and kernel imports), then surfaces boot-tampering, kernel
hooking, and DKOM indicators from strings. It reads bytes statically and executes nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | struct, regex, JSON, file IO |
## Core functions
### `classify(path)`
Returns the artifact type, boolean type flags, indicator lists, and the inferred persistence vector.
### `_is_mbr(data)` / `_is_pe(data)`
Boot-signature (`0x55AA` at 0x1FE) and PE/subsystem detection.
## Indicator classes
- Boot tampering: `Int 13h`, partition-table strings, `bootmgr`.
- Kernel hooking: SSDT/IRP, `PsSetCreateProcessNotifyRoutine`, `ObRegisterCallbacks`.
- DKOM: `EPROCESS`, `ActiveProcessLinks`.
## Usage
```bash
python scripts/analyst.py classify sample.bin
```
## Sources
- MITRE ATT&CK T1542.003 Bootkit; T1014 Rootkit — https://attack.mitre.org/
- PE subsystem values (native=1, EFI=10–13) — https://learn.microsoft.com/windows/win32/debug/pe-format
- MBR `0x55AA` boot signature and kernel callback/hooking primitives from public OS/RE documentation
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |