跳到正文
Skillpedia
安全6.5k · #14174

reverser-rootkit-analysis

它能做什么

它介绍如何查找和研究隐藏进程、驱动程序和启动代码的 Rootkit。适用于检查获授权调查的系统的事件响应人员和恶意软件分析人员。

适用场景

  • ✓当响应人员怀疑计算机在隐藏普通任务列表中不显示的进程时。
  • ✓当分析人员需要检查固件或启动代码是否有意外更改时。
  • ✓当团队想在 Windows 电脑上查找未签名或可疑的内核驱动程序时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/rootkit-analysis/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/rootkit-analysis/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 Windows 电脑显示了一些任务管理器里看不到的进程。会不会是 Rootkit?”

每周 5 个新技能,1 分钟读完。

工作原理

该技能引导 AI 比较内存转储和实时视图中的进程列表,检查驱动程序和固件是否有变化,并总结任何可疑之处。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Rootkit Analysis

Detect and analyze rootkits operating at kernel, boot, and firmware levels — from user-mode hiding techniques through UEFI implants and hypervisor-based rootkits.

Quick Reference

# Quick kernel rootkit scan (Windows, run as admin)
gmer.exe /scan

# System-wide hidden process / driver detection
volatility3 -f memory.raw windows.pslist vs windows.psscan
# Processes in psscan but NOT in pslist → hidden by DKOM

# UEFI firmware extraction and analysis
chipsec_util.py spi dump firmware.bin
UEFIExtract firmware.bin

# Check for unsigned kernel drivers
sigcheck -u -e C:\Windows\System32\drivers\*.sys

# Scan for SSDT hooks
volatility3 -f memory.raw windows.ssdt

MITRE ATT&CK Mapping

Technique ID How It Appears
System Firmware T1542.001 UEFI rootkit implanted in SPI flash (LoJax, MosaicRegressor, CosmicStrand)
Bootkit T1542.003 MBR/VBR modification to load malicious code before OS (TDL4, Rovnix, ESPecter)
Rootkit T1014 Kernel object manipulation to hide processes, files, registry keys
Boot or Logon Autostart: Kernel Modules T1547.006 Malicious kernel driver loaded at boot via service registry key
Exploitation for Defense Evasion T1211 Vulnerable driver exploit (BYOVD) to load unsigned kernel code
Virtualization/Sandbox Evasion T1497 Hypervisor rootkit detecting/evading analysis environment

1. User-Mode Rootkit Detection

Detect rootkits that hook user-mode APIs to hide artifacts.

# Compare API hook status — IAT/EAT/inline hooks
# Use API Monitor or manually check ntdll.dll integrity

# Volatility: detect IAT hooks in processes
vol3 -f memory.raw windows.iat --pid <PID>

# Check for LD_PRELOAD / dylib injection (Linux/macOS)
# Linux:
cat /proc/<PID>/maps | grep -v "$(ls /lib/ /usr/lib/ 2>/dev/null | tr '\n' '|')"
echo $LD_PRELOAD
cat /etc/ld.so.preload

# Windows: compare loaded DLLs against known-good baseline
vol3 -f memory.raw windows.dlllist --pid <PID>
# Look for: DLLs loaded from temp dirs, DLLs not on disk, unknown publishers

# Cross-view detection: compare user-mode API results vs kernel data
# If FindFirstFile misses files that raw NTFS parsing finds → user-mode hook
python3 << 'EOF'
import os, subprocess
# User-mode listing
user_files = set(os.listdir("C:\\Windows\\System32\\drivers"))
# Raw NTFS listing (bypasses API hooks)
raw = subprocess.check_output(["rawcopy", "/listdir", "C:\\Windows\\System32\\drivers"])
raw_files = set(raw.decode().strip().split('\n'))
hidden = raw_files - user_files
if hidden:
    print(f"[!] Hidden files detected: {hidden}")
EOF

2. Kernel Rootkit Detection

Detect DKOM, SSDT hooks, and malicious drivers.

# GMER scan (Windows — gold standard for kernel rootkit detection)
# Run gmer.exe as Administrator
# Checks: SSDT hooks, IDT hooks, IRP hooks, inline hooks,
#          hidden processes, hidden drivers, hidden files, hidden registry

# Volatility cross-view process detection
vol3 -f memory.raw windows.pslist > pslist.txt
vol3 -f memory.raw windows.psscan > psscan.txt
# Diff: processes in psscan but not pslist are DKOM-hidden
comm -23 <(sort psscan.txt) <(sort pslist.txt)

# SSDT hook detection
vol3 -f memory.raw windows.ssdt
# All entries should point to ntoskrnl.exe or win32k.sys
# Entries pointing elsewhere → hooked

# Driver analysis
vol3 -f memory.raw windows.drvscan
vol3 -f memory.raw windows.modules
# Look for:
# - Drivers not on disk (loaded from memory only)
# - Drivers loaded from unusual paths (temp, appdata)
# - Drivers with no digital signature

# IRP hook detection — malicious drivers hooking filesystem IRPs
vol3 -f memory.raw windows.driverirp
# NTFS driver IRP_MJ_DIRECTORY_CONTROL hooked → file hiding
# NTFS driver IRP_MJ_CREATE hooked → file access interception

# Linux kernel rootkit detection
# Check loaded kernel modules
lsmod
cat /proc/modules
# Verify module signature
modinfo <MODULE_NAME> | grep sig

# Check syscall table integrity (requires kernel symbol access)
cat /proc/kallsyms | grep sys_call_table
# Compare function addresses against known-good System.map

# chkrootkit / rkhunter (automated Linux rootkit scanners)
chkrootkit
rkhunter --check --skip-keypress

3. BYOVD (Bring Your Own Vulnerable Driver) Analysis

# Attackers load a signed-but-vulnerable driver to gain kernel access
# Then use the driver's read/write primitives to disable security

# Known vulnerable drivers database: loldrivers.io
# Common BYO
常见问题

什么是 Rootkit?

Rootkit 是一种隐藏自身存在和活动的软件,通常位于较低层级。

它提到了哪些工具?

它提到了 GMER、Volatility、chipsec 和 UEFITool。

它会说明如何清除 Rootkit 吗?

不会。该技能侧重于检测和分析。

详情

作者的原始描述

Rootkit detection and analysis — UEFI rootkits, kernel-level rootkits, bootkits, DKOM techniques, SSDT/IDT/IRP hooking, hypervisor rootkits, and firmware implant detection using GMER, Volatility, chipsec, and UEFITool.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14174
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能