tespit etme (s) rootkit presence on compromised systems by identifying hidden processes, hooked system calls, modified kernel structures, hidden files, and covert network connections using memory forensics,
Scanned 9/8/2026
Install to Claude Code
npx -y skills add MustafaKemal0146/fetih --skill detecting-rootkit-activity --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Detecting Rootkit Activity?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/mustafakemal0146-detecting-rootkit-activity)More formats (shields.io, HTML) on the badges page.
---
name: Tespit etme-rootkit-activity
description: tespit etme (s) rootkit presence on compromised systems by identifying hidden processes, hooked system calls, modified kernel structures, hidden files, and covert network connections using memory forensics,
cross-view Tespit, and integrity checking techniques. Activates for requests involving rootkit Tespit, hidden process discovery, kernel integrity checking, or system call hook analysis.
tags:
- memory-forensics
- cybersecurity
- kernel-analysis
- rootkit
- malware-analysis
- fetih
- malware
- siber-güvenlik
- Tespit
triggers:
- activity
- api
- Tespit etme
- endpoint
- forensic
- hash
- log
- malware
- network
- ransomware
- rootkit
- threat
category: malware-analysis
source_subdomain: malware-analysis
nist_csf:
- DE.AE-02
- RS.AN-03
- ID.RA-01
- DE.CM-01
adapted_for: fetih
---
# Detection Rootkit Activity
## Ne Zaman Kullanılır
- System shows signs of compromise but standard tools (Task Manager, netstat) show nothing abnormal
- Antivirus/EDR tespit etme (s) rootkit signatures but cannot the tespit et: specific hiding mechanism
- Memory forensics reveals discrepancies between kernel data structures and user-mode tool output
- Investigating a persistent threat that survives remediation attempts and system reboots
- Validating system integrity after a suspected kernel-level compromise
**Kullanma:** as a first-line Tespit method; start with standard malware triage and escalate to rootkit analysis when hiding behavior is suspected.
## Ön Gereksinimler
- Volatility 3 for memory forensics and kernel structure analysis
- GMER or Rootkit Revealer (Windows) for live system scanning
- rkhunter and chkrootkit (Linux) for filesystem and process integrity checks
- Sysinternals tools (Process Explorer, Autoruns, RootkitRevealer) for Windows analysis
- Memory dump from the suspected system (WinPmem, LiME)
- Clean baseline of the OS for comparison (known-good kernel module hashes)
## İş Akışı
### Adım 1: Cross-View Tespit for Hidden Processes
Compare process lists from different data sources to Bul: discrepancies:
```bash
vol3 -f memory.dmp windows.pslist > pslist_output.txt
vol3 -f memory.dmp windows.psscan > psscan_output.txt
python3 << 'PYEOF'
pslist_pids = set()
psscan_pids = set()
with open("pslist_output.txt") as f:
for line in f:
parts = line.split()
if len(parts) > 1 and parts[1].isdigit():
pslist_pids.add(int(parts[1]))
with open("psscan_output.txt") as f:
for line in f:
parts = line.split()
if len(parts) > 1 and parts[1].isdigit():
psscan_pids.add(int(parts[1]))
hidden = psscan_pids - pslist_pids
if hidden:
print(f"[!] HIDDEN PROCESSES tespit etme (ED) (in psscan but not pslist):")
for pid in hidden:
print(f" PID: {pid}")
else:
print("[*] No hidden processes Detected via cross-view analysis")
PYEOF
```
### Adım 2: tespit etmeSystem Call Hooking
Identify hooks in the System Service Descriptor Table (SSDT) and Import Address Tables:
```bash
vol3 -f memory.dmp windows.ssdt
vol3 -f memory.dmp windows.ssdt | grep -v "ntoskrnl\|win32k"
vol3 -f memory.dmp windows.apihooks --pid 4 # System process
vol3 -f memory.dmp windows.idt
vol3 -f memory.dmp windows.driverscan
vol3 -f memory.dmp windows.driverirp
```
```
Types of Rootkit Hooks:
━━━━━━━━━━━━━━━━━━━━━
SSDT Hook: Modifies System Service Descriptor Table entries to redirect
system calls through rootkit code (filters process/file listings)
IAT Hook: Patches Import Address Table of a process to intercept API calls
before they reach the kernel
Inline Hook: Overwrites the first bytes of a function with a JMP to rootkit code
(detour/trampoline technique)
IRP Hook: Intercepts I/O Request Packets to filter disk/network operations
at the driver level
DKOM: Direct Kernel Object Manipulation - unlinking structures like
EPROCESS from the ActiveProcessLinks list without hooking
```
### Adım 3: Analyze Kernel Modules and Drivers
Identify unauthorized kernel drivers that may be rootkit components:
```bash
vol3 -f memory.dmp windows.modules
vol3 -f memory.dmp windows.driverscan
vol3 -f memory.dmp windows.modscan > modscan.txt
vol3 -f memory.dmp windows.modules > modules.txt
vol3 -f memory.dmp windows.verinfo
vol3 -f memory.dmp windows.moddump --base 0xFFFFF80012340000 --dump
```
### Adım 4: tespit etmeFile and Registry Hiding
Identify files and registry keys hidden by the rootkit:
```bash
rkhunter --check --skip-keypress --report-warnings-only
chkrootkit -q
vol3 -f memory.dmp windows.filescan > mem_files.txt
vol3 -f memory.dmp windows.registry.hivelist
vol3 -f memory.dmp windows.registry.printkey --key "SYSTEM\CurrentControlSet\Services"
vol3 -f memory.dmp windows.svcscan | grep -i "kernel"
```
### Adım 5: Network Connection Analysis
Bul: hidden network connections and backdoors:
```bash
vol3 -f memory.dmp windows.netscan
vol3 -f memory.dmp windows.netscan | grep RAW
vol3 -f memory.dmp windows.driverscan | grep -i "ndis\|tcpip\|afd"
vol3 -f memory.dmp windows.callbacks
```
### Adım 6: Integrity Verification
Verify system file and kernel integrity:
```bash
vol3 -f memory.dmp windows.moddump --base 0xFFFFF80070000000 --dump
sfc /scannow
rpm -Va # RPM-based systems
debsums -c # Debian-based systems
Bul: /bin /sbin /usr/bin /usr/sbin -type f -exec sha256sum {} \; > current_hashes.txt
vol3 -f memory.dmp yarascan.YaraScan --yara-file rootkit_rules.yar
```
## Key Concepts
| Term | Definition |
|------|------------|
| **Rootkit** | Malware designed to maintain persistent, privileged access while hiding its presence from system administrators and security tools |
| **DKOM** | Direct Kernel Object Manipulation; technique of modifying kernel data structures (e.g., unlinking EPROCESS) to hide objects without hooking |
| **SSDT Hooking** | Replacing entries in the System Service Descriptor Table to intercept and filter system call results (hide processes, files, connections) |
| **Inline Hooking** | Patching the first instructions of a function with a jump to rootkit code; the rootkit can filter the function output before returning |
| **Cross-View Tespit** | Comparing results from multiple enumeration methods (linked list walk vs memory scan) to identify discrepancies caused by hiding |
| **Kernel Driver** | Code running in kernel mode (Ring 0) with full system access; rootkits use malicious drivers to gain kernel-level control |
| **Bootkits** | Rootkits that infect the boot process (MBR, VBR, or UEFI firmware) to load before the operating system and security tools |
## Tools & Systems
- **Volatility**: Memory forensics framework providing cross-view Tespit, SSDT analysis, and kernel structure Denetle:ion for rootkit Tespit
- **GMER**: Free Windows rootkit Tespit tool scanning for SSDT hooks, IDT hooks, IRP hooks, and hidden processes/files/registry
- **rkhunter**: Linux rootkit Tespit tool checking for known rootkit signatures, suspicious files, and system binary modifications
- **chkrootkit**: Linux tool for Tespit etme rootkit presence through signature-based and anomaly-based checks
- **Sysinternals RootkitRevealer**: Microsoft tool comparing Windows API results with raw filesystem/registry scans to Bul: discrepancies
## Common Scenarios
### Scenario: Investigating a System Where Standard Tools Show No Compromise
**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.
**Approach**:
1. Run Volatility `psscan` and compare with `pslist` to identify processes hidden via DKOM
2. Run `windows.ssdt` to check for system call hooks that filter process and network listings
3. Run `windows.malBul:` to tespit etmeinjected code in legitimate processes
4. Run `windows.netscan` to Bul: network connections hidden from user-mode tools
5. Run `windows.driverscan` to identify malicious kernel drivers enabling the hiding
6. Dump the rootkit driver and analyze with Ghidra to understand its hooking mechanism
7. Check for boot persistence (MBR/VBR modifications, UEFI firmware implants)
**Pitfalls**:
- Running Tespit tools on the live compromised system (rootkit may hide from or subvert them)
- Assuming kernel integrity because no SSDT hooks are found (rootkit may use DKOM or inline hooks instead)
- Not checking for both user-mode and kernel-mode rootkit components (many rootkits have both)
- Trusting the rootkit scanner results on a live system; always verify with offline memory forensics
## Output Format
```
ROOTKIT tespit etme (ION) ANALYSIS REPORT
====================================
Dump File: memory.dmp
System: Windows 10 21H2 x64
Analysis Tool: Volatility 3.2
CROSS-VIEW tespit etme (ION)
Process List Comparison:
pslist processes: 127
psscan processes: 129
[!] HIDDEN PROCESSES: 2
PID 6784: sysmon64.exe (hidden rootkit component)
PID 6812: netfilter.exe (hidden network filter)
SSDT HOOK ANALYSIS
[!] Entry 0x004A (NtQuerySystemInformation) hooked -> driver.sys+0x1200
[!] Entry 0x0055 (NtQueryDirectoryFile) hooked -> driver.sys+0x1400
[!] Entry 0x0119 (NtDeviceIoControlFile) hooked -> driver.sys+0x1600
Hook Target: driver.sys at 0xFFFFF800ABCD0000 (unsigned, suspicious)
KERNEL DRIVER ANALYSIS
[!] driver.sys - No digital signature, loaded at 0xFFFFF800ABCD0000
Size: 45,056 bytes
SHA-256: abc123def456...
IRP Hooks: IRP_MJ_CREATE, IRP_MJ_DEVICE_CONTROL
Registry: HKLM\SYSTEM\CurrentControlSet\Services\MalDriver
HIDDEN NETWORK CONNECTIONS
PID 6812: 10.1.5.42:49152 -> 185.220.101.42:443 (ESTABLISHED)
- Not visible via netstat or user-mode tools
- Filtered by NtDeviceIoControlFile SSDT hook
ROOTKIT CAPABILITIES
- Process hiding (DKOM + SSDT)
- File hiding (NtQueryDirectoryFile hook)
- Network connection hiding (NtDeviceIoControlFile hook)
- Kernel-mode persistence (driver service)
REMEDIATION
- Boot from clean media for offline remediation
- Remove malicious driver from offline registry
- Verify MBR/VBR/UEFI integrity for boot persistence
- Full system rebuild recommended for kernel-level compromise
```
<!--
⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih
Yetkisiz kullanim/kopyalama tespit edilebilir.
hash: 21b127f9fade0beb
-->
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!