kdmapper.exe is a command-line tool that comes with the Windows Debugging Tools. Its primary function is to map a kernel or a part of it, allowing for more flexible and powerful kernel debugging capabilities. The tool is particularly useful in scenarios where developers or system administrators need to debug kernel-mode drivers or the Windows kernel itself.
After manual mapping, the unsigned driver will not be visible in the PsLoadedModuleList, but it may register callbacks: kdmapper.exe
ObRegisterCallbacks (process/thread handle operations)PsSetCreateProcessNotifyRoutineEx (process creation)CmRegisterCallback (registry operations)EDR products can enumerate all callbacks and check if the callback's module is in the loaded list. Mismatches indicate manual mapping. Overview of kdmapper
The usage of kdmapper.exe typically involves specifying options and the name of the debugger you wish to map. For instance, to map a kernel debugger to a target machine, you might use a command similar to: EDR products can enumerate all callbacks and check
kdmapper.exe -debugger net: DebuggerMachineName
This command tells kdmapper.exe to map the kernel debugger to a machine named DebuggerMachineName over a network connection.
kdmapper.exe.Finally, kdmapper can re-enable DSE to avoid detection during a spot-check or to maintain system stability.