3.7 KiB
Binary Ninja Minidump Loader
A Minidump memory dump loader plugin for Binary Ninja.
This plugin adds a new Minidump binary view type. When a binary with the magic number MDMP is opened, this plugin will automatically try to load in the binary as a minidump, and create a new Minidump binary view to view the contents.
The architecture is determined automatically from the platform information embedded in the minidump.
The loaded minidump's memory regions and modules can be navigated via the Memory Map window. In the Minidump binary view, the meanings of "Segments" and "Sections" in the Memory Map window are modified to mean the following:
- The memory regions in the minidump are loaded as Segments. The Data Offset and Data Length fields of each segment are the corresponding addresses in the minidump file where the data for that memory region is located.
- The modules in the minidump are loaded as Sections, with the name of each section being the path to the module.
Supported Minidump Types
This plugin currently only supports loading minidump files generated by the Windows MiniDumpWriteDump API.
This includes dumps generated from:
- The
.dumpcommand in WinDbg. - The
.dumpcommand in Binary Ninja's debugger for Windows targets (which uses the same debugging engine as WinDbg).
For both of the above, it's recommended to generate a full dump:
.dump /ma dumpfile.dmp
- The
minidumpcommand in x64dbg.
minidump dumpfile.dmp
- Right clicking on a listed process and then clicking "Create dump file" / "Create full dump" from Windows Task Manager, Process Hacker, Sysinternals Process Explorer, etc...
Unsupported Features (for now)
- Loading Minidump files from platforms or APIs other than Windows'
MinidumpWriteDump, such as those generated by Google Breakpad. - Loading and applyng debug information from the minidump file. In Windows minidump files,
MinidumpModuleListstreams contain information about the PDB file which contains the debug information for the module; this isn't currently read or applied, however. - Integration with Binary Ninja's built-in debugger. Minidump files can contain information about threads, register values, and stack frames, and it would be nice in the future for minidump files to be loadable back into the debugger in order to resume a debugging session. This isn't currently done, however.
Building and Installing
This plugin currently needs to be built from source, then copied into your user plugin folder.
cargo build --release
cp target/release/libminidump_bn.so ~/.binaryninja/plugins/
The code in this plugin targets the dev branch of the Binary Ninja Rust API.
To update the Binary Ninja Rust API dependency:
cargo update -p binaryninja
cargo build --release


