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