analyzing-bootkit-and-rootkit-samples

analyzing-bootkit-and-rootkit-samples is a skill for Claude Code from killvxk/cybersecurity-skills-zh. It costs 114 tokens per session (3,962 once invoked), scanned A, original, Apache-2.0.

A malware-analysis guide for bootkits and rootkits, malicious software that hides or persists below or alongside the operating system. It covers master boot records, volume boot records, UEFI firmware, and kernel-level evidence.

In plain words
What is it for?
Use it to collect and inspect disk boot sectors and firmware, compare them with clean versions, analyze suspicious code, and detect hidden persistence.
Why use it?
It supports investigations where malware survives an operating-system reinstall or avoids normal antivirus and endpoint detection.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cybersecurity-skills-zh plugin — 58 skills shipped together

Good fit Use it to collect and inspect disk boot sectors and firmware, compare them with clean versions, analyze suspicious code, and detect hidden persistence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add killvxk/cybersecurity-skills-zh --skill analyzing-bootkit-and-rootkit-samples
Clone the repo
git clone --depth 1 https://github.com/killvxk/cybersecurity-skills-zh

Made for: Claude Code.

Or install cybersecurity-skills-zh, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyzing-bootkit-and-rootkit-samples

README.md
[![agentmods](https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples/github.svg)](https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples)
Your own site
<a href="https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples"><img src="https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyzing-bootkit-and-rootkit-samples

Your own site · 80×15
<a href="https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples"><img src="https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-bootkit-and-rootkit-samples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,962 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.03962
Opus 5 $0.00057 $0.01981
Sonnet 5 $0.00023 $0.00792
Haiku 4.5 $0.00011 $0.00396

Measured 10d ago against content hash 99bfd4d3fb33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

analyzing-bootkit-and-rootkit-samples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analyzing-bootkit-and-rootkit-samples/SKILL.md · 343 lines

How it starts

The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.

分析 Bootkit 和 Rootkit 样本

适用场景

  • 系统在操作系统重装后仍存在持续性被攻陷迹象
  • 尽管有明确的被攻陷证据,但杀毒软件和 EDR 均无法检测到恶意软件
  • UEFI Secure Boot 已被禁用或显示完整性违规
  • 内存取证(Memory Forensics)揭示 rootkit 行为(隐藏进程、系统调用挂钩)
  • 调查已知部署 bootkit 的国家级威胁(APT28、APT41、方程式组织)

不适用于标准用户态恶意软件;bootkit 和 rootkit 运行在完全不同的层级,需要专门的分析技术。

前置条件

  • 磁盘镜像工具(dd、FTK Imager)用于获取 MBR/VBR 扇区
  • UEFITool 用于 UEFI 固件卷分析和模块提取
  • chipsec 用于硬件级固件安全评估
  • Ghidra,支持 x86 实模式和 16 位模式用于 MBR 代码分析
  • Volatility 3 用于内核级 rootkit 工件检测
  • 可引导的 Linux Live USB 用于离线系统分析

工作流程

步骤 1:获取引导扇区和固件

提取 MBR、VBR 和 UEFI 固件用于离线分析:

# 获取 MBR(磁盘前 512 字节)
dd if=/dev/sda of=mbr.bin bs=512 count=1

# 获取第一磁道(通常包含 MBR 之外的 bootkit 代码)
dd if=/dev/sda of=first_track.bin bs=512 count=63

# 获取 VBR(卷引导记录 - 分区的第一个扇区)
dd if=/dev/sda1 of=vbr.bin bs=512 count=1

# 获取 UEFI 系统分区
mkdir /mnt/efi
mount /dev/sda1 /mnt/efi
cp -r /mnt/efi/EFI /analysis/efi_backup/

# 转储 UEFI 固件(需要 chipsec 或 flashrom)
# 使用 chipsec:
python chipsec_util.py spi dump firmware.rom

# 使用 flashrom:
flashrom -p internal -r firmware.rom

# 验证固件转储完整性
sha256sum firmware.rom

步骤 2:分析 MBR/VBR 中的 Bootkit 代码

检查引导扇区代码中的恶意修改:

# 反汇编 MBR 代码(16 位实模式)
ndisasm -b16 mbr.bin > mbr_disasm.txt

# 与已知正常的 Windows MBR 对比
# 标准 Windows MBR 以 EB 5A 90(JMP 0x5C, NOP)开头
# 标准 Windows 10 MBR:33 C0 8E D0 BC 00 7C(XOR AX,AX; MOV SS,AX; MOV SP,7C00h)

python3 << 'PYEOF'
with open("mbr.bin", "rb") as f:
    mbr = f.read()

# 检查 MBR 签名(510-511 字节应为 0x55AA)
if mbr[510:512] == b'\x55\xAA':
    print("[*] 有效的 MBR 签名 (0x55AA)")
else:
    print("[!] 无效的 MBR 签名")

# 检查已知 bootkit 签名
bootkit_sigs = {
    b'\xE8\x00\x00\x5E\x81\xEE': "TDL4/Alureon bootkit",
    b'\xFA\x33\xC0\x8E\xD0\xBC\x00\x7C\x8B\xF4\x50\x07': "标准 Windows MBR(干净)",
    b'\xEB\x5A\x90\x4E\x54\x46\x53': "标准 NTFS VBR(干净)",
}

for sig, name in bootkit_sigs.items():
    if sig in mbr:
        print(f"[{'!' if '干净' not in name else '*'}] 签名匹配:{name}")

# 检查分区表条目
print("\n分区表:")
for i in range(4):
    offset = 446 + (i * 16)
    entry = mbr[offset:offset+16]
    if entry != b'\x00' * 16:
        boot_flag = "活动" if entry[0] == 0x80 else "非活动"
        part_type = entry[4]
        start_lba = int.from_bytes(entry[8:12], 'little')
        size_lba = int.from_bytes(entry[12:16], 'little')
        print(f"  分区 {i+1}: 类型=0x{part_type:02X} {boot_flag} 起始=LBA {start_lba} 大小={size_lba} 扇区")
PYEOF

Read the full file on GitHub · 343 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 343 lines · 114 tokens per session scan A 99bfd4d3fb33

Subscribe to this mod's changes

analyzing-bootkit-and-rootkit-samples is a skill published in the GitHub repository killvxk/cybersecurity-skills-zh (44 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 114 tokens to every session and 3,962 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analyzing-bootkit-and-rootkit-samples

Analyzes bootkit and advanced rootkit malware infecting the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware for below-OS persistence, covering boot sector analysis, UEFI module inspection, and anti-rootkit detection. Use when compromise survives OS reinstallation or antivirus/EDR fails to detect…

mukul975/Anthropic-Cybersecurity-Skills · 85 tokens

analyzing-bootkit-and-rootkit-samples

Use when analyzing bootkit and advanced rootkit malware that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware to gain persistence below the operating system. Covers boot sector analysis, UEFI module inspection, and anti-rootkit detection techniques. Activates for requests involving…

oyi77/1ai-skills · 95 tokens

analyzing-bootkit-and-rootkit-samples

Analyzes bootkit and advanced rootkit malware that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware to gain persistence below the operating system. Covers boot sector analysis, UEFI module inspection, and anti-rootkit detection techniques. Activates for requests involving bootkit…

26zl/cybersec-toolkit · 94 tokens

analyzing-bootkit-and-rootkit-samples

Analyzes bootkit and advanced rootkit malware that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware to gain persistence below the operating system. Covers boot sector analysis, UEFI module inspection, and anti-rootkit detection techniques. Activates for requests involving bootkit…

adriannoes/awesome-agentic-ai · 94 tokens

analyzing-bootkit-and-rootkit-samples

Analyzes bootkit and advanced rootkit malware that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware to gain persistence below the operating system. Covers boot sector analysis, UEFI module inspection, and anti-rootkit detection techniques. Activates for requests involving bootkit…

plurigrid/asi · 94 tokens

analyzing-bootkit-and-rootkit-samples

Analyzes bootkit and advanced rootkit malware that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware to gain persistence below the operating system. Covers boot sector analysis, UEFI module inspection, and anti-rootkit detection techniques. Activates for requests involving bootkit…

autohandai/community-skills · 94 tokens