Add a Custom Kernel Dump Filter Driver with Regedit
This guide provides a straightforward walkthrough on configuring Windows to load a custom kernel dump filter driver using the Registry Editor (Regedit). By modifying the system’s crash control settings, you can register a filter driver to process, encrypt, or redirect kernel memory dumps during a system crash (BSOD).
Prerequisites
Before modifying the registry: * Ensure your custom filter driver
binary (.sys file) is placed in the
C:\Windows\System32\drivers directory. * Verify the driver
is properly compiled as a crash dump filter driver and digitally signed
according to Windows Driver Signature Enforcement policies.
Step-by-Step Configuration
1. Open the Registry Editor
- Press
Win + Rto open the Run dialog box. - Type
regeditand pressEnter. - Select Yes if prompted by User Account Control (UAC).
2. Navigate to CrashControl
In the address bar of the Registry Editor, paste or navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
3. Locate or Create the
DumpFilters Value
- Check the right pane for a value named
DumpFilters. - If it does not exist:
- Right-click an empty area in the right pane.
- Select New > Multi-String Value.
- Name the value
DumpFilters.
4. Add the Custom Driver
- Double-click the
DumpFiltersvalue to edit it. - In the Value data field, enter the name of your
driver without the
.sysextension (for example, if your driver ismyfilter.sys, entermyfilter). - If other filter drivers are already listed, place your driver name on a new line. The filter drivers execute in the order they are listed.
- Click OK to save the changes.
Verifying the Setup
- Restart the System: Reboot Windows to ensure the kernel recognizes the changes in the crash control configuration.
- Test Dump Generation: Use a controlled crash
mechanism (such as the
NotMyFaultutility from Sysinternals or a configured crash-on-keyboard shortcut) to trigger a dump and verify that your filter driver processes the crash data as intended.