PISA Pakistan — Community CERT

← ⚙️ Cyber Threat Intelligence Foundations

29. Memory Forensics for Threat Intelligence: Extracting Deep IOCs with Volatility

⏱ 10 min

Introduction to Memory Forensics in CTI

When malware attempts to evade disk-based analysis, volatile memory often holds the clearest evidence of an attacker's activities. For CTI professionals, memory forensics using Volatility 3 transforms raw memory dumps into high-fidelity intelligence—revealing hidden processes, network connections, and API call patterns that disk forensics miss. In Pakistan's threat landscape, memory dumps from compromised ATMs or banking workstations have exposed TA456-style espionage toolkits targeting easypaisa and JazzCash infrastructure.

Setting Up Your Volatility Environment

Begin by installing Volatility 3 on an Ubuntu 22.04 analysis workstation:

pip install volatility3
git clone https://github.com/volatilityfoundation/volatility3
vol.py –help

Acquire memory images using WinPmem (Windows) or LiME (Linux) and transfer them via write-blocker to maintain chain of custody for your MISP instance.

Extracting IOCs from Memory Dumps

Key Volatility commands for CTI extraction:

  • windows.pslist — Reveals injected or hidden processes used by Pakistan-targeted Remote Access Trojans (RATs)
  • windows.netscan — Identifies covert network connections matching C2 infrastructure documented in your MISP galaxy
  • windows.malfind — Detects shellcode injection in memory, critical for identifying 0-day payload delivery
  • linux.malfind — Linux-specific process injection detection for server compromises

For Daraz/OlX scam campaigns, memory dumps from victim workstations often reveal Telegram bot APIs and phishing page hosting scripts invisible on disk.

Correlating Memory IOCs with MISP

Export Volatility findings as STIX 2.1 observables and push to your MISP instance:

vol.py -f memory.dmp windows.pslist > pslist.txt
python3 ioc_extractor.py --input pslist.txt --output stix_bundles.json
misp-push --stix stix_bundles.json

Cross-reference discovered C2 IPs with your existing NCCIA 1799 threat feed subscriptions.

Do / Don't

  • Do document memory acquisition timestamps for legal admissibility if law enforcement involvement follows
  • Do use windows.dlllist to identify malicious DLLs loaded by banking trojans
  • Don't analyze memory dumps on the same system that generated them—use isolated analysis VMs
  • Don't skip windows.malfind; it catches 60% of in-memory shellcode in Pakistan-targeted attacks

Takeaway

Today: Download a publicly available memory sample (MDF via NIST), run Volatility's windows.psscan and windows.netscan, and add discovered IOCs to your MISP event. This single memory dump exercise trains you to extract actionable intelligence from volatile artifacts that disk forensics cannot reach.

← PrevNext →