Execution
Crash dumps (MEMORY.DMP, minidumps)
Crash dump cheat sheet: MEMORY.DMP and minidump locations, CrashControl dump types, user-mode dumps, LSASS dumping traces and tools to analyse them.
- Location
- C:\Windows\MEMORY.DMP
- Proves
- Memory state at a crash, which driver or process crashed, and attacker process dumps
- Timestamps
- Dump header system time in UTC; dump file NTFS times (MEMORY.DMP is written at the reboot after the crash); System event 1001
- Retention
- MEMORY.DMP overwritten by the next kernel dump and may be deleted when disk space is low; minidumps capped by count, oldest removed
- Access
- Administrator for dumps under the Windows and ProgramData folders; user-mode dumps sit in the user profile
- Evidence of
- Execution
- Type
- File / file system
- Windows
- XPVista / 78 / 8.11011
- KAPE target
- MemoryFilesWER
- Velociraptor
- Windows.Triage.Targets:MemoryFilesWER
Tools
Compare all toolsWhat it is
A crash dump is a copy of memory written when something fails. Kernel crashes (blue screens) produce MEMORY.DMP and/or a small minidump; application crashes can produce user-mode dumps through Windows Error Reporting. Dumps are also created on purpose: administrators debug with them, and attackers dump the memory of lsass.exe to steal credentials. Forensically, a kernel dump is a memory image of the machine at crash time, and any .dmp file of lsass is a strong compromise indicator.
Location
| Type | Default location | Notes |
|---|---|---|
| Kernel / complete / automatic dump | %SystemRoot%\MEMORY.DMP | Path in DumpFile under SYSTEM\CurrentControlSet\Control\CrashControl |
| Small memory dump (minidump) | %SystemRoot%\Minidump\*.dmp | Path in MinidumpDir |
| User-mode dumps (WER LocalDumps) | %LOCALAPPDATA%\CrashDumps\*.dmp | Configured under SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps |
| WER report attachments | C:\ProgramData\Microsoft\Windows\WER\ | See Windows Error Reporting |
| Manual / attacker dumps | Anywhere (%TEMP%\lsass.DMP from Task Manager, custom paths) | Search by extension and signature |
CrashDumpEnabled in CrashControl: 0 none, 1 complete, 2 kernel, 3 small, 7 automatic (the default on Windows 8 and later).
What it proves
- A kernel dump shows what was loaded and running at crash time: processes, drivers (including a malicious or vulnerable driver that caused the crash), network structures and kernel objects.
- A minidump identifies the bug check code and the faulting driver or module.
- A user-mode dump of
lsass.exeshows that someone dumped credential memory; its file-system timestamps date the theft attempt. - A complete dump contains user-mode memory too; a kernel dump does not include user process pages.
Key fields
| Element | Meaning |
|---|---|
Signature PAGEDU64 / PAGEDUMP | 64-bit / 32-bit kernel dump header |
Signature MDMP | User-mode minidump (also used by procdump and comsvcs.dll MiniDump) |
| Bug check code and parameters | Reason for the blue screen |
| System time in header | Time of the crash |
Timestamps
| Timestamp | Set when | Format | Pitfalls |
|---|---|---|---|
| Dump header system time | Crash or dump creation | UTC | Read with WinDbg (.time) or a parser |
| File $SI times | Dump written to disk | NTFS, UTC | MEMORY.DMP is written at the reboot after the crash, from the page file |
| System event 1001 (BugCheck) | Reboot after a bug check | UTC | Gives the bug check code and dump path |
Retention and clearing
MEMORY.DMPis overwritten by the next kernel dump (unlessOverwriteis disabled); Windows may delete it automatically when disk space is low.- Minidumps accumulate, oldest removed when the configured number is exceeded.
- Disk Cleanup and WER queue management delete old dumps; attackers delete their LSASS dumps after exfiltrating them, so check the $MFT and USN journal for
.dmpfiles created and deleted.
Collection
- KAPE targets:
MemoryFiles(minidumps, plus hiberfil/pagefile) andWER(MEMORY.DMPand other*.dmpinC:\Windows, WER folders,CrashDumps). - Velociraptor (
Windows.Triage.Targets):MemoryFiles,WER. - Built-in:
reg query HKLM\SYSTEM\CurrentControlSet\Control\CrashControl
dir /s /a C:\*.dmp
wevtutil qe System /q:"*[System[(EventID=1001)]]" /f:text /c:5
Parsing tools
- WinDbg (Microsoft):
!analyze -vfor the crash cause,lmfor loaded modules,.timefor the crash time. - Volatility 3: reads Windows crash dumps as a memory layer and runs the
windows.*plugins (process lists, drivers, network). - MemProcFS (open source): mounts memory images and crash dumps as a file system.
- BlueScreenView (NirSoft): lists minidumps with bug check codes and faulting drivers.
The RAM Parser handles full (complete / kernel) crash dumps directly.
Investigation tips
- Hunt for
.dmpfiles withlsassin the name or anMDMPheader anywhere on disk, and for the tools that make them:procdump -ma lsass.exe,rundll32.exe comsvcs.dll, MiniDump, Task Manager's "Create dump file". These are classic LOLBin credential-theft patterns. - A blue screen right after a new driver was installed can be a failed rootkit or a "bring your own vulnerable driver" attempt: check the faulting module and services.
- Use the kernel dump as a memory image: compare its process and driver lists with Prefetch and Amcache.
- Extract suspicious modules from the dump and triage them as PE files.
Related artifacts
- Windows Error Reporting (WER)Windows Error Reporting cheat sheet: Report.wer folders, AppPath and SHA-1 fields, Application events 1000/1001/1002, LocalDumps crash dumps and retention.
- hiberfil.sys (hibernation file)hiberfil.sys cheat sheet: what hibernation and Fast Startup save, compression by Windows version, converting it to a raw memory image and what it can reveal.
- pagefile.sys and swapfile.syspagefile.sys and swapfile.sys cheat sheet: paged-out memory on disk, what can be recovered, ClearPageFileAtShutdown, compression caveats and carving tools.
- Windows event logs (EVTX)Windows event log cheat sheet: EVTX locations, must-know event IDs for logons, processes, services and log clearing, retention, audit policy and parsing tools.
- PE files (Windows executables)PE file triage cheat sheet: hashes, imphash and Rich header, compile timestamp caveats, sections and entropy, version info, signatures, PDB paths and tools.
Glossary terms
- Order of VolatilityThe principle of collecting the most volatile evidence first, before it is lost, as described in RFC 3227.
- Windows event IDThe number identifying an event type within a given provider; it only has meaning when paired with its provider and log channel.
- LOLBin (living-off-the-land binary)A legitimate, signed Windows binary that attackers abuse to download, execute or hide payloads without dropping their own tools.