Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Detect kernel-level rootkits in Linux memory dumps using Volatility3 linux plugins (check_syscall, lsmod, hidden_modules), rkhunter system scanning, and /proc vs /sys discrepancy analysis to identify hooked syscalls, hidden kernel modules, and tampered system structures.
.claude/skills/analyzing-linux-kernel-rootkits/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | — | — |
| case-06 | ✗→✓ | ▲ Improved | — | — |
| case-19 | ✓→✓ | = Same ✓ | — | — |
| case-11 | ✗→✗ | = Same ✗ | — | — |
| case-10 | ✗→✗ | = Same ✗ | — | — |
Linux kernel rootkits operate at ring 0, modifying kernel data structures to hide processes, files, network connections, and kernel modules from userspace tools. Detection requires either memory forensics (analyzing physical memory dumps with Volatility3) or cross-view analysis (comparing /proc, /sys, and kernel data structures for inconsistencies). This skill covers using Volatility3 Linux plugins to detect syscall table hooks, hidden kernel modules, and modified function pointers, supplemented by live system scanning with rkhunter and chkrootkit.
Capture Linux physical memory using LiME kernel module or AVML for cloud instances.
Run linux.check_syscall, linux.lsmod, linux.hidden_modules, and linux.check_idt plugins to detect rootkit artifacts.
Compare module lists from /proc/modules, lsmod, and /sys/module to identify modules hidden from one view but present in another.
Run rkhunter and chkrootkit to detect known rootkit signatures, suspicious files, and modified system binaries.
JSON report containing detected syscall hooks, hidden kernel modules, modified IDT entries, suspicious /proc discrepancies, and rkhunter findings.
text$ sudo python3 rootkit_analyzer.py --memory /evidence/linux-mem.lime --profile Ubuntu2204 Linux Kernel Rootkit Analysis Report ===================================== Memory Image: /evidence/linux-mem.lime Kernel Version: 5.15.0-91-generic (Ubuntu 22.04 LTS) Analysis Time: 2024-01-18 09:15:32 UTC [+] Scanning syscall table for hooks... Syscall Table Base: 0xffffffff82200300 Total syscalls checked: 449 HOOKED SYSCALLS DETECTED: ┌─────────┬──────────────────┬──────────────────────┬──────────────────────┐ │ NR │ Syscall │ Expected Address │ Current Address │ ├─────────┼──────────────────┼──────────────────────┼──────────────────────┤ │ 0 │ sys_read │ 0xffffffff8139a0e0 │ 0xffffffffc0a12000 │ │ 2 │ sys_open │ 0xffffffff8139b340 │ 0xffffffffc0a12180 │ │ 78 │ sys_getdents64 │ 0xffffffff813f5210 │ 0xffffffffc0a12300 │ │ 62 │ sys_kill │ 0xffffffff8110c4a0 │ 0xffffffffc0a12480 │ └─────────┴──────────────────┴──────────────────────┴──────────────────────┘ WARNING: 4 syscall hooks detected - rootkit behavior confirmed [+] Checking for hidden kernel modules... Loaded modules (lsmod): 147 Modules in kobject list: 149 HIDDEN MODULES: - "netfilter_helper" at 0xffffffffc0a10000 (size: 12288) - "kworker_sched" at 0xffffffffc0a14000 (size: 8192) [+] Scanning /proc for discrepancies... Processes in task_struct list: 234 Processes visible in /proc: 231 HIDDEN PROCESSES: - PID 31337 cmd: "[kworker/0:3]" (disguised as kernel thread) - PID 31442 cmd: "rsyslogd" (fake, real rsyslogd is PID 892) - PID 31500 cmd: "" (unnamed process) [+] Checking IDT entries... IDT entries scanned: 256 Modified entries: 0 (clean) [+] Running rkhunter scan... Checking for known rootkits: 68 variants checked Diamorphine rootkit: WARNING - signatures match System binary checks: /usr/bin/ps: MODIFIED (SHA-256 mismatch) /usr/bin/netstat: MODIFIED (SHA-256 mismatch) /usr/bin/ls: MODIFIED (SHA-256 mismatch) /usr/sbin/ss: OK [+] Network analysis... Hidden connections (not in /proc/net/tcp): ESTABLISHED 0.0.0.0:0 -> 198.51.100.47:4443 (PID 31337) ESTABLISHED 0.0.0.0:0 -> 198.51.100.47:8080 (PID 31442) Summary: Rootkit Type: Loadable Kernel Module (LKM) Probable Family: Diamorphine variant Syscall Hooks: 4 (read, open, getdents64, kill) Hidden Modules: 2 Hidden Processes: 3 Hidden Connections: 2 (C2: 198.51.100.47) Modified Binaries: 3 (/usr/bin/ps, netstat, ls) Risk Level: CRITICAL
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.