Skip to content

meltedinhex/analyst-ai-pack / skills/dissecting-boot-and-kernel-rootkits

dissecting-boot-and-kernel-rootkits

Verified

Analyzes 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.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.8 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript3.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
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 197kUpdated Claude CodeCodexVerifiedInstall
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: 197kUpdated Claude CodeCodexVerifiedInstall
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: 197kUpdated Claude CodeCodexVerifiedInstall