How kazuto2007/undetected-driver works
This repository is a Windows kernel-driver and user-mode client base for process-memory inspection and modification; the README warns that it is no longer undetected. The demonstrated workflow is the client opening the driver interface, locating a target process and reading its image and memory. The kernel side defines a matching request protocol and contains handlers for memory operations, module lookup, allocation, and signature scanning. Source excerpts show the client calls and kernel setup, but not the dispatch implementation or handler call sites, so those connections are marked unverified rather than asserted.
Main entry points: driver-execute/entrypoint.cpp Driver initialization · modules.h Kernel modules · driver-communication/entrypoint.cpp Client workflow · driver.hpp Driver API
Components 17
User-mode client
- Client workflow
driver-communication/entrypoint.cpp - Driver API
driver-communication/impl/driver/driver.hpp
Kernel driver
- Driver initialization
driver-execute/entrypoint.cpp - Request protocol
driver-execute/impl/communication/interface.h
Driver operations
- Memory reading
driver-execute/requests/read_physical_memory.cpp - Memory writing
driver-execute/requests/write_physical_memory.cpp - Module lookup
driver-execute/requests/get_module_base.cpp - Virtual allocation
driver-execute/requests/virtual_allocate.cpp - Signature request
driver-execute/requests/signature_scanner.cpp - Signature scan handler
driver-execute/requests/signature_scanner.cpp
Kernel internals
- Pattern scanning
driver-execute/impl/scanner.h - Kernel modules
driver-execute/impl/modules.h - Runtime helpers
driver-execute/impl/crt.h - Kernel import resolver
driver-execute/impl/imports.h - Kernel structures
driver-execute/kernel/structures.hpp - String obfuscation
driver-execute/kernel/xor.h
Other components
- Client user
Connections 14
- Client user → Client workflow: runs
- Client workflow → Driver API: calls
driver-communication/entrypoint.cpp - Driver API → Driver initialization: sends requests
- Driver initialization → Request protocol: uses definitions
driver-execute/entrypoint.cpp - Driver initialization → Memory reading: dispatches
driver-execute/entrypoint.cpp - Driver initialization → Memory writing: dispatches
driver-execute/entrypoint.cpp - Driver initialization → Module lookup: dispatches
driver-execute/entrypoint.cpp - Driver initialization → Virtual allocation: dispatches
driver-execute/entrypoint.cpp - Driver initialization → Signature scan handler: dispatches
driver-execute/entrypoint.cpp - Signature scan handler → Pattern scanning: uses
- Memory reading → Kernel modules: uses
- Memory writing → Kernel modules: uses
- Driver initialization → Kernel modules: initializes through
driver-execute/entrypoint.cpp - Driver initialization → String obfuscation: includes
driver-execute/entrypoint.cpp