[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6B2HSABVC147R493FFND4":3,"skill-same:01M7A6B2HSABVC147R493FFND4":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A6B2HSABVC147R493FFND4","detecting-rootkit-activity",null,"Detects rootkit presence on compromised systems by identifying hidden processes, hooked system calls, modified kernel structures, and covert network connections using Volatility memory forensics, cross-view detection, and tools like GMER, rkhunter, chkrootkit, and RootkitRevealer. Use when standard tools (Task Manager, netstat, AV\u002FEDR) show nothing abnormal but compromise is suspected.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-rootkit-activity\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-rootkit-activity\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-rootkit-activity\ndescription: 'Detects rootkit presence on compromised systems by identifying hidden\n  processes, hooked system calls, modified kernel structures, and covert network\n  connections using Volatility memory forensics, cross-view detection, and tools\n  like GMER, rkhunter, chkrootkit, and RootkitRevealer. Use when standard tools\n  (Task Manager, netstat, AV\u002FEDR) show nothing abnormal but compromise is suspected.\n\n  '\ndomain: cybersecurity\nsubdomain: malware-analysis\ntags:\n- malware\n- rootkit\n- detection\n- kernel-analysis\n- memory-forensics\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.AE-02\n- RS.AN-03\n- ID.RA-01\n- DE.CM-01\nmitre_attack:\n- T1014\n- T1547.006\n- T1564.001\n- T1574.006\n---\n\n# Detecting Rootkit Activity\n\n## When to Use\n\n- System shows signs of compromise but standard tools (Task Manager, netstat) show nothing abnormal\n- Antivirus\u002FEDR detects rootkit signatures but cannot identify the specific hiding mechanism\n- Memory forensics reveals discrepancies between kernel data structures and user-mode tool output\n- Investigating a persistent threat that survives remediation attempts and system reboots\n- Validating system integrity after a suspected kernel-level compromise\n\n**Do not use** as a first-line detection method; start with standard malware triage and escalate to rootkit analysis when hiding behavior is suspected.\n\n## Prerequisites\n\n- Volatility 3 for memory forensics and kernel structure analysis\n- GMER or Rootkit Revealer (Windows) for live system scanning\n- rkhunter and chkrootkit (Linux) for filesystem and process integrity checks\n- Sysinternals tools (Process Explorer, Autoruns, RootkitRevealer) for Windows analysis\n- Memory dump from the suspected system (WinPmem, LiME)\n- Clean baseline of the OS for comparison (known-good kernel module hashes)\n\n## Workflow\n\n### Step 1: Cross-View Detection for Hidden Processes\n\nCompare process lists from different data sources to find discrepancies:\n\n```bash\n# Volatility: Compare process enumeration methods\n# pslist - walks ActiveProcessLinks (EPROCESS linked list - what rootkits manipulate)\nvol3 -f memory.dmp windows.pslist > pslist_output.txt\n\n# psscan - scans physical memory for EPROCESS pool tags (rootkit-resistant)\nvol3 -f memory.dmp windows.psscan > psscan_output.txt\n\n# Compare outputs to find hidden processes\npython3 \u003C\u003C 'PYEOF'\npslist_pids = set()\npsscan_pids = set()\n\nwith open(\"pslist_output.txt\") as f:\n    for line in f:\n        parts = line.split()\n        if len(parts) > 1 and parts[1].isdigit():\n            pslist_pids.add(int(parts[1]))\n\nwith open(\"psscan_output.txt\") as f:\n    for line in f:\n        parts = line.split()\n        if len(parts) > 1 and parts[1].isdigit():\n            psscan_pids.add(int(parts[1]))\n\nhidden = psscan_pids - pslist_pids\nif hidden:\n    print(f\"[!] HIDDEN PROCESSES DETECTED (in psscan but not pslist):\")\n    for pid in hidden:\n        print(f\"    PID: {pid}\")\nelse:\n    print(\"[*] No hidden processes detected via cross-view analysis\")\nPYEOF\n```\n\n### Step 2: Detect System Call Hooking\n\nIdentify hooks in the System Service Descriptor Table (SSDT) and Import Address Tables:\n\n```bash\n# Check SSDT for hooked system calls\nvol3 -f memory.dmp windows.ssdt\n\n# Identify hooks pointing outside ntoskrnl.exe or win32k.sys\nvol3 -f memory.dmp windows.ssdt | grep -v \"ntoskrnl\\|win32k\"\n\n# Check for Inline hooks (detour patching)\nvol3 -f memory.dmp windows.apihooks --pid 4  # System process\n\n# IDT (Interrupt Descriptor Table) analysis\nvol3 -f memory.dmp windows.idt\n\n# Check for IRP (I\u002FO Request Packet) hooking on drivers\nvol3 -f memory.dmp windows.driverscan\nvol3 -f memory.dmp windows.driverirp\n```\n\n```\nTypes of Rootkit Hooks:\n━━━━━━━━━━━━━━━━━━━━━\nSSDT Hook:         Modifies System Service Descriptor Table entries to redirect\n                   system calls through rootkit code (filters process\u002Ffile listings)\n\nIAT Hook:          Patches Import Address Table of a process to intercept API calls\n                   before they reach the kernel\n\nInline Hook:       Overwrites the first bytes of a function with a JMP to rootkit code\n                   (detour\u002Ftrampoline technique)\n\nIRP Hook:          Intercepts I\u002FO Request Packets to filter disk\u002Fnetwork operations\n                   at the driver level\n\nDKOM:              Direct Kernel Object Manipulation - unlinking structures like\n                   EPROCESS from the ActiveProcessLinks list without hooking\n```\n\n### Step 3: Analyze Kernel Modules and Drivers\n\nIdentify unauthorized kernel drivers that may be rootkit components:\n\n```bash\n# List all loaded kernel modules\nvol3 -f memory.dmp windows.modules\n\n# Scan for drivers in memory (including hidden\u002Funlinked)\nvol3 -f memory.dmp windows.driverscan\n\n# Compare module lists to find hidden drivers\nvol3 -f memory.dmp windows.modscan > modscan.txt\nvol3 -f memory.dmp windows.modules > modules.txt\n\n# Check driver signatures and verify against known-good baselines\nvol3 -f memory.dmp windows.verinfo\n\n# Dump suspicious driver for static analysis\nvol3 -f memory.dmp windows.moddump --base 0xFFFFF80012340000 --dump\n```\n\n### Step 4: Detect File and Registry Hiding\n\nIdentify files and registry keys hidden by the rootkit:\n\n```bash\n# Linux rootkit detection with rkhunter\nrkhunter --check --skip-keypress --report-warnings-only\n\n# chkrootkit scanning\nchkrootkit -q\n\n# Windows: Compare filesystem views\n# Live system file listing vs Volatility filescan\nvol3 -f memory.dmp windows.filescan > mem_files.txt\n\n# Check for hidden registry keys\nvol3 -f memory.dmp windows.registry.hivelist\nvol3 -f memory.dmp windows.registry.printkey --key \"SYSTEM\\CurrentControlSet\\Services\"\n\n# Look for hidden services (loaded but not in service registry)\nvol3 -f memory.dmp windows.svcscan | grep -i \"kernel\"\n```\n\n### Step 5: Network Connection Analysis\n\nFind hidden network connections and backdoors:\n\n```bash\n# Memory-based network connection enumeration\nvol3 -f memory.dmp windows.netscan\n\n# Compare with live netstat (if available) to find hidden connections\n# Hidden connections: present in memory but not shown by netstat\n\n# Look for raw sockets (often used by rootkits for covert communication)\nvol3 -f memory.dmp windows.netscan | grep RAW\n\n# Check for network filter drivers (NDIS hooks)\nvol3 -f memory.dmp windows.driverscan | grep -i \"ndis\\|tcpip\\|afd\"\n\n# Analyze callback routines registered by drivers\nvol3 -f memory.dmp windows.callbacks\n```\n\n### Step 6: Integrity Verification\n\nVerify system file and kernel integrity:\n\n```bash\n# Check kernel code integrity (compare in-memory kernel to on-disk copy)\nvol3 -f memory.dmp windows.moddump --base 0xFFFFF80070000000 --dump\n# Compare SHA-256 of dumped ntoskrnl.exe with known-good copy\n\n# Windows: System File Checker (on live system)\nsfc \u002Fscannow\n\n# Linux: Package integrity verification\nrpm -Va  # RPM-based systems\ndebsums -c  # Debian-based systems\n\n# Compare critical system binaries\nfind \u002Fbin \u002Fsbin \u002Fusr\u002Fbin \u002Fusr\u002Fsbin -type f -exec sha256sum {} \\; > current_hashes.txt\n# Compare against baseline: diff baseline_hashes.txt current_hashes.txt\n\n# YARA scan for known rootkit signatures\nvol3 -f memory.dmp yarascan.YaraScan --yara-file rootkit_rules.yar\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Rootkit** | Malware designed to maintain persistent, privileged access while hiding its presence from system administrators and security tools |\n| **DKOM** | Direct Kernel Object Manipulation; technique of modifying kernel data structures (e.g., unlinking EPROCESS) to hide objects without hooking |\n| **SSDT Hooking** | Replacing entries in the System Service Descriptor Table to intercept and filter system call results (hide processes, files, connections) |\n| **Inline Hooking** | Patching the first instructions of a function with a jump to rootkit code; the rootkit can filter the function output before returning |\n| **Cross-View Detection** | Comparing results from multiple enumeration methods (linked list walk vs memory scan) to identify discrepancies caused by hiding |\n| **Kernel Driver** | Code running in kernel mode (Ring 0) with full system access; rootkits use malicious drivers to gain kernel-level control |\n| **Bootkits** | Rootkits that infect the boot process (MBR, VBR, or UEFI firmware) to load before the operating system and security tools |\n\n## Tools & Systems\n\n- **Volatility**: Memory forensics framework providing cross-view detection, SSDT analysis, and kernel structure inspection for rootkit detection\n- **GMER**: Free Windows rootkit detection tool scanning for SSDT hooks, IDT hooks, IRP hooks, and hidden processes\u002Ffiles\u002Fregistry\n- **rkhunter**: Linux rootkit detection tool checking for known rootkit signatures, suspicious files, and system binary modifications\n- **chkrootkit**: Linux tool for detecting rootkit presence through signature-based and anomaly-based checks\n- **Sysinternals RootkitRevealer**: Microsoft tool comparing Windows API results with raw filesystem\u002Fregistry scans to find discrepancies\n\n## Common Scenarios\n\n### Scenario: Investigating a System Where Standard Tools Show No Compromise\n\n**Context**: An endpoint shows network beaconing to a known C2 IP in firewall logs, but the local EDR, Task Manager, and netstat show no suspicious processes or connections. A memory dump has been acquired for analysis.\n\n**Approach**:\n1. Run Volatility `psscan` and compare with `pslist` to identify processes hidden via DKOM\n2. Run `windows.ssdt` to check for system call hooks that filter process and network listings\n3. Run `windows.malfind` to detect injected code in legitimate processes\n4. Run `windows.netscan` to find network connections hidden from user-mode tools\n5. Run `windows.driverscan` to identify malicious kernel drivers enabling the hiding\n6. Dump the rootkit driver and analyze with Ghidra to understand its hooking mechanism\n7. Check for boot persistence (MBR\u002FVBR modifications, UEFI firmware implants)\n\n**Pitfalls**:\n- Running detection tools on the live compromised system (rootkit may hide from or subvert them)\n- Assuming kernel integrity because no SSDT hooks are found (rootkit may use DKOM or inline hooks instead)\n- Not checking for both user-mode and kernel-mode rootkit components (many rootkits have both)\n- Trusting the rootkit scanner results on a live system; always verify with offline memory forensics\n\n## Output Format\n\n```\nROOTKIT DETECTION ANALYSIS REPORT\n====================================\nDump File:        memory.dmp\nSystem:           Windows 10 21H2 x64\nAnalysis Tool:    Volatility 3.2\n\nCROSS-VIEW DETECTION\nProcess List Comparison:\n  pslist processes:  127\n  psscan processes:  129\n  [!] HIDDEN PROCESSES: 2\n    PID 6784: sysmon64.exe (hidden rootkit component)\n    PID 6812: netfilter.exe (hidden network filter)\n\nSSDT HOOK ANALYSIS\n[!] Entry 0x004A (NtQuerySystemInformation) hooked -> driver.sys+0x1200\n[!] Entry 0x0055 (NtQueryDirectoryFile) hooked -> driver.sys+0x1400\n[!] Entry 0x0119 (NtDeviceIoControlFile) hooked -> driver.sys+0x1600\nHook Target: driver.sys at 0xFFFFF800ABCD0000 (unsigned, suspicious)\n\nKERNEL DRIVER ANALYSIS\n[!] driver.sys - No digital signature, loaded at 0xFFFFF800ABCD0000\n    Size: 45,056 bytes\n    SHA-256: abc123def456...\n    IRP Hooks: IRP_MJ_CREATE, IRP_MJ_DEVICE_CONTROL\n    Registry: HKLM\\SYSTEM\\CurrentControlSet\\Services\\MalDriver\n\nHIDDEN NETWORK CONNECTIONS\nPID 6812: 10.1.5.42:49152 -> 185.220.101.42:443 (ESTABLISHED)\n  - Not visible via netstat or user-mode tools\n  - Filtered by NtDeviceIoControlFile SSDT hook\n\nROOTKIT CAPABILITIES\n- Process hiding (DKOM + SSDT)\n- File hiding (NtQueryDirectoryFile hook)\n- Network connection hiding (NtDeviceIoControlFile hook)\n- Kernel-mode persistence (driver service)\n\nREMEDIATION\n- Boot from clean media for offline remediation\n- Remove malicious driver from offline registry\n- Verify MBR\u002FVBR\u002FUEFI integrity for boot persistence\n- Full system rebuild recommended for kernel-level compromise\n```\n","# Detecting Rootkit Activity\n\n## When to Use\n\n- System shows signs of compromise but standard tools (Task Manager, netstat) show nothing abnormal\n- Antivirus\u002FEDR detects rootkit signatures but cannot identify the specific hiding mechanism\n- Memory forensics reveals discrepancies between kernel data structures and user-mode tool output\n- Investigating a persistent threat that survives remediation attempts and system reboots\n- Validating system integrity after a suspected kernel-level compromise\n\n**Do not use** as a first-line detection method; start with standard malware triage and escalate to rootkit analysis when hiding behavior is suspected.\n\n## Prerequisites\n\n- Volatility 3 for memory forensics and kernel structure analysis\n- GMER or Rootkit Revealer (Windows) for live system scanning\n- rkhunter and chkrootkit (Linux) for filesystem and process integrity checks\n- Sysinternals tools (Process Explorer, Autoruns, RootkitRevealer) for Windows analysis\n- Memory dump from the suspected system (WinPmem, LiME)\n- Clean baseline of the OS for comparison (known-good kernel module hashes)\n\n## Workflow\n\n### Step 1: Cross-View Detection for Hidden Processes\n\nCompare process lists from different data sources to find discrepancies:\n\n```bash\n# Volatility: Compare process enumeration methods\n# pslist - walks ActiveProcessLinks (EPROCESS linked list - what rootkits manipulate)\nvol3 -f memory.dmp windows.pslist > pslist_output.txt\n\n# psscan - scans physical memory for EPROCESS pool tags (rootkit-resistant)\nvol3 -f memory.dmp windows.psscan > psscan_output.txt\n\n# Compare outputs to find hidden processes\npython3 \u003C\u003C 'PYEOF'\npslist_pids = set()\npsscan_pids = set()\n\nwith open(\"pslist_output.txt\") as f:\n    for line in f:\n        parts = line.split()\n        if len(parts) > 1 and parts[1].isdigit():\n            pslist_pids.add(int(parts[1]))\n\nwith open(\"psscan_output.txt\") as f:\n    for line in f:\n        parts = line.split()\n        if len(parts) > 1 and parts[1].isdigit():\n            psscan_pids.add(int(parts[1]))\n\nhidden = psscan_pids - pslist_pids\nif hidden:\n    print(f\"[!] HIDDEN PROCESSES DETECTED (in psscan but not pslist):\")\n    for pid in hidden:\n        print(f\"    PID: {pid}\")\nelse:\n    print(\"[*] No hidden processes detected via cross-view analysis\")\nPYEOF\n```\n\n### Step 2: Detect System Call Hooking\n\nIdentify hooks in the System Service Descriptor Table (SSDT) and Import Address Tables:\n\n```bash\n# Check SSDT for hooked system calls\nvol3 -f memory.dmp windows.ssdt\n\n# Identify hooks pointing outside ntoskrnl.exe or win32k.sys\nvol3 -f memory.dmp windows.ssdt | grep -v \"ntoskrnl\\|win32k\"\n\n# Check for Inline hooks (detour patching)\nvol3 -f memory.dmp windows.apihooks --pid 4  # System process\n\n# IDT (Interrupt Descriptor Table) analysis\nvol3 -f memory.dmp windows.idt\n\n# Check for IRP (I\u002FO Request Packet) hooking on drivers\nvol3 -f memory.dmp windows.driverscan\nvol3 -f memory.dmp windows.driverirp\n```\n\n```\nTypes of Rootkit Hooks:\n━━━━━━━━━━━━━━━━━━━━━\nSSDT Hook:         Modifies System Service Descriptor Table entries to redirect\n                   system calls through rootkit code (filters process\u002Ffile listings)\n\nIAT Hook:          Patches Import Address Table of a process to intercept API calls\n                   before they reach the kernel\n\nInline Hook:       Overwrites the first bytes of a function with a JMP to rootkit code\n                   (detour\u002Ftrampoline technique)\n\nIRP Hook:          Intercepts I\u002FO Request Packets to filter disk\u002Fnetwork operations\n                   at the driver level\n\nDKOM:              Direct Kernel Object Manipulation - unlinking structures like\n                   EPROCESS from the ActiveProcessLinks list without hooking\n```\n\n### Step 3: Analyze Kernel Modules and Drivers\n\nIdentify unauthorized kernel drivers that may be rootkit components:\n\n```bash\n# List all loaded kernel modules\nvol3 -f memory.dmp windows.modules\n\n# Scan for drivers in memory (including hidden\u002Funlinked)\nvol3 -f memory.dmp windows.driverscan\n\n# Compare module lists to find hidden drivers\nvol3 -f memory.dmp windows.modscan > modscan.txt\nvol3 -f memory.dmp windows.modules > modules.txt\n\n# Check driver signatures and verify against known-good baselines\nvol3 -f memory.dmp windows.verinfo\n\n# Dump suspicious driver for static analysis\nvol3 -f memory.dmp windows.moddump --base 0xFFFFF80012340000 --dump\n```\n\n### Step 4: Detect File and Registry Hiding\n\nIdentify files and registry keys hidden by the rootkit:\n\n```bash\n# Linux rootkit detection with rkhunter\nrkhunter --check --skip-keypress --report-warnings-only\n\n# chkrootkit scanning\nchkrootkit -q\n\n# Windows: Compare filesystem views\n# Live system file listing vs Volatility filescan\nvol3 -f memory.dmp windows.filescan > mem_files.txt\n\n# Check for hidden registry keys\nvol3 -f memory.dmp windows.registry.hivelist\nvol3 -f memory.dmp windows.registry.printkey --key \"SYSTEM\\CurrentControlSet\\Services\"\n\n# Look for hidden services (loaded but not in service registry)\nvol3 -f memory.dmp windows.svcscan | grep -i \"kernel\"\n```\n\n### Step 5: Network Connection Analysis\n\nFind hidden network connections and backdoors:\n\n```bash\n# Memory-based network connection enumeration\nvol3 -f memory.dmp windows.netscan\n\n# Compare with live netstat (if available) to find hidden connections\n# Hidden connections: present in memory but not shown by netstat\n\n# Look for raw sockets (often used by rootkits for covert communication)\nvol3 -f memory.dmp windows.netscan | grep RAW\n\n# Check for network filter drivers (NDIS hooks)\nvol3 -f memory.dmp windows.driverscan | grep -i \"ndis\\|tcpip\\|afd\"\n\n# Analyze callback routines registered by drivers\nvol3 -f memory.dmp windows.callbacks\n```\n\n### Step 6: Integrity Verification\n\nVerify system file and kernel integrity:\n\n```bash\n# Check kernel code integrity (compare in-memory kernel to on-disk copy)\nvol3 -f memory.dmp windows.moddump --base 0xFFFFF80070000000 --dump\n# Compare SHA-256 of dumped ntoskrnl.exe with known-good copy\n\n# Windows: System File Checker (on live system)\nsfc \u002Fscannow\n\n# Linux: Package integrity verification\nrpm -Va  # RPM-based systems\ndebsums -c  # Debian-based systems\n\n# Compare critical system binaries\nfind \u002Fbin \u002Fsbin \u002Fusr\u002Fbin \u002Fusr\u002Fsbin -type f -exec sha256sum {} \\; > current_hashes.txt\n# Compare against baseline: diff baseline_hashes.txt current_hashes.txt\n\n# YARA scan for known rootkit signatures\nvol3 -f memory.dmp yarascan.YaraScan --yara-file rootkit_rules.yar\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Rootkit** | Malware designed to maintain persistent, privileged access while hiding its presence from system administrators and security tools |\n| **DKOM** | Direct Kernel Object Manipulation; technique of modifying kernel data structures (e.g., unlinking EPROCESS) to hide objects without hooking |\n| **SSDT Hooking** | Replacing entries in the System Service Descriptor Table to intercept and filter system call results (hide processes, files, connections) |\n| **Inline Hooking** | Patching the first instructions of a function with a jump to rootkit code; the rootkit can filter the function output before returning |\n| **Cross-View Detection** | Comparing results from multiple enumeration methods (linked list walk vs memory scan) to identify discrepancies caused by hiding |\n| **Kernel Driver** | Code running in kernel mode (Ring 0) with full system access; rootkits use malicious drivers to gain kernel-level control |\n| **Bootkits** | Rootkits that infect the boot process (MBR, VBR, or UEFI firmware) to load before the operating system and security tools |\n\n## Tools & Systems\n\n- **Volatility**: Memory forensics framework providing cross-view detection, SSDT analysis, and kernel structure inspection for rootkit detection\n- **GMER**: Free Windows rootkit detection tool scanning for SSDT hooks, IDT hooks, IRP hooks, and hidden processes\u002Ffiles\u002Fregistry\n- **rkhunter**: Linux rootkit detection tool checking for known rootkit signatures, suspicious files, and system binary modifications\n- **chkrootkit**: Linux tool for detecting rootkit presence through signature-based and anomaly-based checks\n- **Sysinternals RootkitRevealer**: Microsoft tool comparing Windows API results with raw filesystem\u002Fregistry scans to find discrepancies\n\n## Common Scenarios\n\n### Scenario: Investigating a System Where Standard Tools Show No Compromise\n\n**Context**: An endpoint shows network beaconing to a known C2 IP in firewall logs, but the local EDR, Task Manager, and netstat show no suspicious processes or connections. A memory dump has been acquired for analysis.\n\n**Approach**:\n1. Run Volatility `psscan` and compare with `pslist` to identify processes hidden via DKOM\n2. Run `windows.ssdt` to check for system call hooks that filter process and network listings\n3. Run `windows.malfind` to detect injected code in legitimate processes\n4. Run `windows.netscan` to find network connections hidden from user-mode tools\n5. Run `windows.driverscan` to identify malicious kernel drivers enabling the hiding\n6. Dump the rootkit driver and analyze with Ghidra to understand its hooking mechanism\n7. Check for boot persistence (MBR\u002FVBR modifications, UEFI firmware implants)\n\n**Pitfalls**:\n- Running detection tools on the live compromised system (rootkit may hide from or subvert them)\n- Assuming kernel integrity because no SSDT hooks are found (rootkit may use DKOM or inline hooks instead)\n- Not checking for both user-mode and kernel-mode rootkit components (many rootkits have both)\n- Trusting the rootkit scanner results on a live system; always verify with offline memory forensics\n\n## Output Format\n\n```\nROOTKIT DETECTION ANALYSIS REPORT\n====================================\nDump File:        memory.dmp\nSystem:           Windows 10 21H2 x64\nAnalysis Tool:    Volatility 3.2\n\nCROSS-VIEW DETECTION\nProcess List Comparison:\n  pslist processes:  127\n  psscan processes:  129\n  [!] HIDDEN PROCESSES: 2\n    PID 6784: sysmon64.exe (hidden rootkit component)\n    PID 6812: netfilter.exe (hidden network filter)\n\nSSDT HOOK ANALYSIS\n[!] Entry 0x004A (NtQuerySystemInformation) hooked -> driver.sys+0x1200\n[!] Entry 0x0055 (NtQueryDirectoryFile) hooked -> driver.sys+0x1400\n[!] Entry 0x0119 (NtDeviceIoControlFile) hooked -> driver.sys+0x1600\nHook Target: driver.sys at 0xFFFFF800ABCD0000 (unsigned, suspicious)\n\nKERNEL DRIVER ANALYSIS\n[!] driver.sys - No digital signature, loaded at 0xFFFFF800ABCD0000\n    Size: 45,056 bytes\n    SHA-256: abc123def456...\n    IRP Hooks: IRP_MJ_CREATE, IRP_MJ_DEVICE_CONTROL\n    Registry: HKLM\\SYSTEM\\CurrentControlSet\\Services\\MalDriver\n\nHIDDEN NETWORK CONNECTIONS\nPID 6812: 10.1.5.42:49152 -> 185.220.101.42:443 (ESTABLISHED)\n  - Not visible via netstat or user-mode tools\n  - Filtered by NtDeviceIoControlFile SSDT hook\n\nROOTKIT CAPABILITIES\n- Process hiding (DKOM + SSDT)\n- File hiding (NtQueryDirectoryFile hook)\n- Network connection hiding (NtDeviceIoControlFile hook)\n- Kernel-mode persistence (driver service)\n\nREMEDIATION\n- Boot from clean media for offline remediation\n- Remove malicious driver from offline registry\n- Verify MBR\u002FVBR\u002FUEFI integrity for boot persistence\n- Full system rebuild recommended for kernel-level compromise\n```\n",{"name":5,"tags":25,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":39,"description":40,"mitre_attack":41},[26,27,28,29,30],"malware","rootkit","detection","kernel-analysis","memory-forensics","mahipal","cybersecurity","1.0.0",[35,36,37,38],"DE.AE-02","RS.AN-03","ID.RA-01","DE.CM-01","malware-analysis","Detects rootkit presence on compromised systems by identifying hidden processes, hooked system calls, modified kernel structures, and covert network connections using Volatility memory forensics, cross-view detection, and tools like GMER, rkhunter, chkrootkit, and RootkitRevealer. Use when standard tools (Task Manager, netstat, AV\u002FEDR) show nothing abnormal but compromise is suspected.\n",[42,43,44,45],"T1014","T1547.006","T1564.001","T1574.006","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fdetecting-rootkit-activity","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add NeelakshSaxena\u002FVayu --skill detecting-rootkit-activity",{"tool":59,"command":60},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill detecting-rootkit-activity",{"tool":62,"command":63},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill detecting-rootkit-activity","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-rootkit-activity\u002FSKILL.md",true,[67,71,77],{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",2367,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-rootkit-activity\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",8236,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-rootkit-activity\u002Fscripts\u002Fagent.py",[84,91,98,105,112,119],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]