# Memory Malware Hunting

> Use when hunting malware in memory images on an authorized investigation. Covers Volatility 3 workflows, process and injection detection, network artifact recovery, and finding fileless malware. Also use when disk forensics shows nothing but the host is clearly compromised.

- Skill: `mizazhaider-ceh/memory-malware-hunting` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/memory-malware-hunting`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/memory-malware-hunting/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/memory-malware-hunting

---


Fileless malware lives in memory and never touches disk the way
analysts expect: injected threads, hollowed processes, and malicious
WMI. This skill covers hunting it in memory images you are authorized
to analyze: the Volatility 3 workflow, injection detection, and
recovering the payload. Work on captures from your own investigations
with proper handling.

## Quick Workflow

1. Verify the capture: hash, profile (OS version), and acquisition
   method.
2. List processes and look for the unusual: no parent, wrong path,
   or hollowed images.
3. Check for injection: threads, hooks, and memory regions that do
   not map to files.
4. Review network artifacts: connections and sockets from the
   capture.
5. Dump suspicious processes and regions for static analysis.
6. Check persistence hooks that live in memory: WMI, scheduled
   tasks, registry run keys in the hive.
7. Correlate with disk and logs: what launched it.
8. Document the indicators with offsets and hashes.

## 1. Volatility 3 triage

```bash
# Identify the right profile/symbols first
python3 /opt/volatility3/vol.py -f /evidence/memory.raw windows.info 2>/dev/null | head -15
# List processes with parent relationships
python3 /opt/volatility3/vol.py -f /evidence/memory.raw windows.pslist 2>/dev/null | head -30
# Look for: parent PID 0 anomalies, processes with no image path,
# names mimicking system processes in wrong directories
```

```bash
# Injection and hollowing detection
python3 /opt/volatility3/vol.py -f /evidence/memory.raw windows.malfind 2>/dev/null | head -40
# malfind flags injected code: review each hit, it also flags some legit JIT
python3 /opt/volatility3/vol.py -f /evidence/memory.raw windows.psscan 2>/dev/null | head -20
# psscan finds hidden processes that pslist misses (DKOM hiding)
```

```bash
# Network state at capture time
python3 /opt/volatility3/vol.py -f /evidence/memory.raw windows.netscan 2>/dev/null | head -20
# Established connections to unknown externals = C2 candidates
```

## 2. Dumping and correlation

```bash
# Dump a suspicious process for static analysis
python3 /opt/volatility3/vol.py -f /evidence/memory.raw \
  windows.pslist --pid 1234 --dump 2>/dev/null
python3 /opt/volatility3/vol.py -f /evidence/memory.raw \
  windows.malfind --pid 1234 --dump 2>/dev/null
ls -l /tmp/dump/ 2>/dev/null || echo "check vol output dir"
```

```bash
# Command line history: what actually ran
python3 /opt/volatility3/vol.py -f /evidence/memory.raw windows.cmdline 2>/dev/null \
  | grep -i -E "powershell|wmic|rundll32|mshta" | head -20
# Correlate: match PIDs and times against the disk timeline
```

## Edge cases

- The profile is wrong and plugins fail. Get the exact OS build
  from the capture and fetch matching symbols.
- malfind is noisy on modern systems. Triage by combining with
  network and parent anomalies, not malfind alone.
- The capture is from a VM snapshot. Note the method; snapshots
  are fine but record the hypervisor and time.
- Encrypted payloads in memory. Dump and let static analysis or
  the key in the same capture do the work.

## Escalation

- Confirmed fileless malware: move to full incident response;
  memory is one host, the campaign is the target.
- Need the payload decrypted: hand the dump to malware analysis
  with the capture context.
- EDR missed it: feed the technique to edr-evasion-detection for
  the detection gap review.

## Detection and defender view

Defenders catch fileless malware with behavioral EDR (injection
APIs, hollowed processes), AMSI for scripts, and memory scanning.
They see evasion as the same techniques this skill hunts: process
hollowing, reflective loading, and living off the land binaries.
The durable defense is layered: block the initial execution, scan
memory on alert, and keep the memory acquisition capability ready
before the incident.

## Key references

- MITRE ATT&CK T1055 (Process Injection), T1620 (Reflective Code
  Loading).
- Volatility 3 documentation: plugin reference.
- Related skills: memory-forensics, threat-hunting.

