How 0x3xp/lethe works
Lethe is a Windows kernel-mode implant controlled by a small command-line client over a named pipe. The documented workflow is to start the client, load the driver, then issue a command; the driver’s timer/DPC/work-item mechanism processes requests autonomously. Major command capabilities include credential dumping and token manipulation; EDR callback removal is documented as not yet supported. Driver initialization also performs stealth and persistence actions. The graph follows README-described flows where source excerpts do not show the full implementation; it does not imply unshown calls between command handlers.
Main entry points: lethe.c Driver initialization · client.c Command client
Components 15
Client channel
- Command client
client/client.c - Named pipe
Kernel runtime
- Driver initialization
driver/lethe.c - Periodic timer
driver/lethe.c - DPC callback
driver/lethe.c - Worker execution
driver/lethe.c - Command dispatch
driver/lethe.c
Command capabilities
- Ping response
driver/lethe.c - Credential dump
driver/lethe.c - Token manipulation
driver/lethe.c - EDR callback removal
driver/lethe.c
Stealth and persistence
- Module-list unlink
driver/lethe.c - Driver cache clear
driver/lethe.c - Registry persistence
driver/lethe.c
Other components
- Operator
Connections 15
- Operator → Command client: issues command
README.md - Command client → Named pipe: creates and writes
client/client.c - Named pipe → Command client: returns result
client/client.c - Driver initialization → Named pipe: opens pipe
driver/lethe.c - Driver initialization → Periodic timer: starts periodic execution
README.md - Periodic timer → DPC callback: queues
README.md - DPC callback → Worker execution: queues
README.md - Worker execution → Command dispatch: processes request
driver/lethe.c - Command dispatch → Ping response: handles ping
driver/lethe.c - Command dispatch → Credential dump: handles command
README.md - Command dispatch → Token manipulation: handles command
README.md - Command dispatch → EDR callback removal: handles command
README.md - Driver initialization → Module-list unlink: unlinks module
driver/lethe.c - Driver initialization → Driver cache clear: clears cache
driver/lethe.c - Driver initialization → Registry persistence: installs persistence
driver/lethe.c