From memory-forensics
Recover credentials and detect credential-theft tradecraft from a memory image — SAM hashes, LSA secrets, cached domain credentials, Kerberos tickets, LSASS access, Mimikatz/Dumpert/NanoDump artifacts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/memory-forensics:credential-theft-huntThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Maps to [MITRE ATT&CK T1003](https://attack.mitre.org/techniques/T1003/) (OS Credential Dumping). Cite the relevant sub-technique in findings: T1003.001 LSASS Memory, .002 Security Account Manager, .003 NTDS, .004 LSA Secrets, .005 Cached Domain Credentials, .006 DCSync.
Maps to MITRE ATT&CK T1003 (OS Credential Dumping). Cite the relevant sub-technique in findings: T1003.001 LSASS Memory, .002 Security Account Manager, .003 NTDS, .004 LSA Secrets, .005 Cached Domain Credentials, .006 DCSync.
| Store | What's in it | Tool |
|---|---|---|
| SAM | Local account NT hashes | volatility_hashdump |
| LSA secrets | Service account passwords (cleartext after decrypt), DPAPI masterkey seeds | volatility_run_plugin windows.lsadump.Lsadump |
| MSCache (DCC2) | Last N domain logons, hashed | volatility_run_plugin windows.cachedump.Cachedump |
| LSASS memory | Live tickets, plaintext, NTLM, TGT/TGS | Dump + offline tooling |
Run all three in parallel:
volatility_hashdumpvolatility_run_plugin windows.lsadump.Lsadumpvolatility_run_plugin windows.cachedump.CachedumpNote: Vol3's hashdump/lsadump/cachedump are Windows-only and require SYSTEM+SECURITY hives in memory (they normally are).
volatility_run_plugin windows.getsids.GetSIDs — SIDs attached to each process reveal the user context. Cross-reference with:
volatility_processes for explorer.exe, winlogon.exe, lsass.exe SIDsvolatility_run_plugin windows.sessions.Sessions for interactive sessionsAn attacker-spawned cmd.exe running as a different user than explorer.exe = token impersonation or runas.
LSASS dumping is the #1 credential-theft TTP. Look for:
Process tree around lsass.exe:
volatility_process_tree — anything parented under lsass is abnormal (lsass shouldn't spawn children except very specific telemetry agents)lsass.exe as a target handle → candidate dumperHandle analysis:
volatility_handles(object_types=["Process"])
Filter for handles where the target is lsass.exe and the granted access mask includes PROCESS_VM_READ (0x10) or PROCESS_QUERY_INFORMATION (0x400). The classic dumper grabs 0x1010 or 0x1FFF.
Dumping tool signatures in cmdline/filesystem:
procdump.exe -ma lsass.exe, -accepteula flagrundll32.exe comsvcs.dll, MiniDump <PID> <path> full (living-off-the-land)tasklist /svc, sqldumper.exe, createdump.exe, werfault -u -p <lsass>ImageFileExecutionOptions\lsass.exe with GlobalFlag=0x200 and SilentProcessExit subkeyvolatility_yara_scan with rules for:
sekurlsa::logonpasswords, mimikatz, gentilkiwiNanoDump, dumpert, ProcessMitigationImageTypemimidrv.sys, mimilib.dllMiniDumpWriteDump via dbghelp!MiniDumpWriteDump dynamic importInline rule starter:
rule CredTheft_Mimikatz_Strings {
strings:
$s1 = "sekurlsa::logonpasswords" ascii wide
$s2 = "mimikatz" ascii wide
$s3 = "gentilkiwi" ascii wide
$s4 = "kerberos::list" ascii wide
$s5 = "lsadump::sam" ascii wide
condition:
2 of them
}
rule CredTheft_LSASS_Dump_Tooling {
strings:
$s1 = "MiniDumpWriteDump" ascii wide
$s2 = "comsvcs.dll" ascii wide
$s3 = "MiniDump" ascii wide
$s4 = "lsass.dmp" ascii wide nocase
condition:
3 of them
}
If attacker had SYSTEM + Mimikatz-class tooling, tickets are in LSASS. The memory image still holds them until overwritten.
volatility_dump_process(image, pid=<lsass_pid>, output_dir="/tmp/lsass-vad", mode="vad")
Then offline with pypykatz / mimikatz against the dumped VAD set. (Don't try to sekurlsa in-image — we're dumping for offline analysis.)
DPAPI_SYSTEM — this is the seed to decrypt every user's DPAPI-protected blob (browser creds, Wi-Fi, saved RDP).%APPDATA%\Microsoft\Protect\<SID>\*) — in memory these appear as file handles held by svchost.exe/lsass.exe.For every credential recovered: user, source (SAM/LSA/MSCache/LSASS), format (NT/DCC2/cleartext/TGT), and confidence (direct dump vs. inferred). Pair with access timeline (did this user log on during the incident window?).
Guest / DefaultAccount hashes are built-in, not interestingNL$KM — the cache key, not a passwordGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub s3cr1z/capabilities --plugin memory-forensics