VOLATILITY 3 SYNTAX
vol3> pslist
vol3> pstree
vol3> psscan
vol3> malfind
vol3> netscan
vol3> cmdline
vol3> dlllist -pid 2196
vol3> strings -pid 2196
vol3> filescan
vol3> handles -pid 2196
PROCESS ANOMALIES
Look for: processes with unusual parent processes, misspelled names (svch0st vs svchost), processes running from temp directories, unexpected process counts (e.g. two lsass.exe), unusual process paths (svchost should always be System32).
Normal svchost.exe parents: services.exe
Normal explorer.exe parent: userinit.exe or winlogon.exe
MALFIND
Identifies memory regions with Execute+Write permissions that contain code — a signature of process injection. Legitimate DLLs are read-only after loading. Writable executable memory = shellcode or injected payload.
PROCESS INJECTION INDICATORS
VAD with PAGE_EXECUTE_READWRITE
MZ header at start of non-module region
High entropy memory regions
No backing file on disk
Sysmon Event ID 8 (CreateRemoteThread)
YARA RULE STRUCTURE
rule RuleName {
meta:
author = "analyst"
description = "Detects X"
strings:
$s1 = "suspicious string"
$s2 = { 4D 5A 90 00 } // hex
$re1 = /update-[a-z]+\.net/
condition:
$s1 and $s2
// or: any of them
// or: 2 of ($s*)
}
COMMON C2 INDICATORS IN STRINGS
Domain names / IP addresses in plain text
HTTP User-Agent strings
Encoded commands (Base64)
Registry persistence keys
Mutex names (prevent double-infection)
Hardcoded credentials or keys