acquiring-disk-image-w…
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Analyzes RAM memory dumps from compromised systems using the Volatility framework to identify malicious processes,
$ npx -y skills add Mikaru0Mystic/sectinel --skill analyzing-memory-dumps-with-volatility --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/analyzing-memory-dumps-with-volatilityContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyzes RAM memory dumps from compromised systems using the Volatility framework to identify malicious processes,
name: analyzing-memory-dumps-with-volatility description: 'Analyzes RAM memory dumps from compromised systems using the Volatility framework to identify malicious processes, injected code, network connections, loaded modules, and extracted credentials. Supports Windows, Linux, and macOS memory forensics. Activates for requests involving memory forensics, RAM analysis, volatile data examination, process injection detection, or memory-resident malware investigation. ' domain: cybersecurity subdomain: malware-analysis tags: - malware - memory-forensics - Volatility - RAM-analysis - incident-response mitre_attack: - T1055 - T1003 - T1059 - T1620 version: 1.0.0 author: mahipal license: Apache-2.0 nist_csf: - DE.AE-02 - RS.AN-03 - ID.RA-01 - DE.CM-01
**Do not use** for disk image analysis; use Autopsy, FTK, or Sleuth Kit for disk forensics.
Determine the operating system and version from the memory dump:
# Volatility 3: Automatic OS detection vol3 -f memory.dmp windows.info # List available plugins vol3 -f memory.dmp --help # If symbols are needed, download from: # https://downloads.volatilityfoundation.org/volatility3/symbols/ # For Volatility 2 (legacy): vol2 -f memory.dmp imageinfo vol2 -f memory.dmp kdbgscan
List all processes and identify suspicious entries:
# List all processes vol3 -f memory.dmp windows.pslist # Process tree (parent-child relationships) vol3 -f memory.dmp windows.pstree # Scan for hidden/unlinked processes (rootkit detection) vol3 -f memory.dmp windows.psscan # Compare pslist vs psscan to find hidden processes # Processes in psscan but not pslist are potentially hidden by rootkits # Check for process hollowing vol3 -f memory.dmp windows.pslist --dump # Then verify the dumped EXE matches the expected binary on disk
Suspicious Process Indicators: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - svchost.exe not spawned by services.exe (wrong parent) - csrss.exe/lsass.exe with unusual parent process - Multiple instances of lsass.exe (should be only one) - Processes with misspelled names (scvhost.exe, lssas.exe) - cmd.exe or powershell.exe spawned by WINWORD.EXE or browser - Processes running from unusual paths (%TEMP%, %APPDATA%) - Processes with no parent (orphaned - parent terminated)
Scan for injected code and process hollowing:
# Detect injected code in processes (malfind) vol3 -f memory.dmp windows.malfind # Malfind looks for: # - Memory regions with PAGE_EXECUTE_READWRITE protection # - Memory regions containing PE headers (MZ/PE signature) # - VAD (Virtual Address Descriptor) anomalies # Dump injected memory regions for analysis vol3 -f memory.dmp windows.malfind --dump --pid 2184 # List loaded DLLs per process vol3 -f memory.dmp windows.dlllist --pid 2184 # Detect hollowed processes by comparing mapped image to disk vol3 -f memory.dmp windows.hollowfind # Scan for loaded drivers (potential rootkit drivers) vol3 -f memory.dmp windows.driverscan # List kernel modules vol3 -f memory.dmp windows.modules
Extract active and closed network connections:
# List all network connections (active and listening) vol3 -f memory.dmp windows.netscan # Output columns: Offset, Protocol, LocalAddr, LocalPort, ForeignAddr, ForeignPort, State, PID, Owner # Filter for established connections to external IPs vol3 -f memory.dmp windows.netscan | grep ESTABLISHED # For older Windows (XP/2003): vol3 -f memory.dmp windows.netstat # Cross-reference PIDs with process list # Suspicious: svchost.exe connected to external IP on non-standard port # Suspicious: notepad.exe or calc.exe with network connections
Recover sensitive data from memory:
# Dump process memory for a specific PID vol3 -f memory.dmp windows.memmap --dump --pid 2184 # Extract command-line history vol3 -f memory.dmp windows.cmdline # Extract environment variables vol3 -f memory.dmp windows.envars --pid 2184 # Registry analysis (extract Run keys for persistence) vol3 -f memory.dmp windows.registry.printkey \ --key "Software\Microsoft\Windows\CurrentVersion\Run" # Extract hashed/cached credentials vol3 -f memory.dmp windows.hashdump vol3 -f memory.dmp windows.cachedump vol3 -f memory.dmp windows.lsadump # Extract clipboard contents vol3 -f memory.dmp windows.clipboard # File extraction from memory vol3 -f memory.dmp windows.filescan | grep -i "payload\|malware\|suspicious" vol3 -f memory.dmp windows.dumpfiles --virtaddr 0xFA8001234560
Apply YARA signatures to detect known malware in memory:
# Scan entire memory dump with YARA rules vol3 -f memory.dmp yarascan.YaraScan --yara-file malware_rules.yar # Scan specific process memory vol3 -f memory.dmp yarascan.YaraScan --yara-file malware_rules.yar --pid 2184 # Built-i
Open-source security arsenal for AI coding agents: 784 cybersecurity skills, scanner integrations, and a security MCP for Claude Code, Cursor, opencode, Gemini CLI, Cline, and any agentskills.io agent. Mapped to OWASP, MITRE ATT&CK, NIST CSF, D3FEND, ATLAS.
Repo: Mikaru0Mystic/sectinel
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass,
Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative