Skip to content

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

What 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

TypeDefault locationNotes
Kernel / complete / automatic dump%SystemRoot%\MEMORY.DMPPath in DumpFile under SYSTEM\CurrentControlSet\Control\CrashControl
Small memory dump (minidump)%SystemRoot%\Minidump\*.dmpPath in MinidumpDir
User-mode dumps (WER LocalDumps)%LOCALAPPDATA%\CrashDumps\*.dmpConfigured under SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
WER report attachmentsC:\ProgramData\Microsoft\Windows\WER\See Windows Error Reporting
Manual / attacker dumpsAnywhere (%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.exe shows 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

ElementMeaning
Signature PAGEDU64 / PAGEDUMP64-bit / 32-bit kernel dump header
Signature MDMPUser-mode minidump (also used by procdump and comsvcs.dll MiniDump)
Bug check code and parametersReason for the blue screen
System time in headerTime of the crash

Timestamps

TimestampSet whenFormatPitfalls
Dump header system timeCrash or dump creationUTCRead with WinDbg (.time) or a parser
File $SI timesDump written to diskNTFS, UTCMEMORY.DMP is written at the reboot after the crash, from the page file
System event 1001 (BugCheck)Reboot after a bug checkUTCGives the bug check code and dump path

Retention and clearing

  • MEMORY.DMP is overwritten by the next kernel dump (unless Overwrite is 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 .dmp files created and deleted.

Collection

  • KAPE targets: MemoryFiles (minidumps, plus hiberfil/pagefile) and WER (MEMORY.DMP and other *.dmp in C:\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 -v for the crash cause, lm for loaded modules, .time for 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 .dmp files with lsass in the name or an MDMP header 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

Glossary terms

Guides

All artifacts on one page: cheat sheet