User Mode and Kernel Mode are two operational states of a CPU in Windows: - User Mode: Limited privileges, restricted CPU instructions, access only to the process’s own virtual memory. - Kernel Mode: Full privileges, access to all memory and hardware.
Modern CPUs use ring levels: - Ring 3: User Mode - Ring 0: Kernel Mode
User processes use system calls to request kernel operations.
Image source: Microsoft
Source
– Microsoft Docs
DKOM involves modifying kernel objects directly to bypass OS mechanisms: - Kernel objects include: processes, threads, files, devices, network connections. - Uses: privilege escalation, hiding processes, disabling security features.
Applications interact with drivers using
DeviceIoControl().
Contains: - Device object - Control code (IOCTL) - Input/output buffers - Status
DeviceIoControl() called by app.Image source: Microsoft Press Store
Source
– Microsoft Press
_LIST_ENTRYUsed for doubly linked lists: ```cpp // 0x10 bytes (sizeof), src: Vergilius Project struct _LIST_ENTRY { struct _LIST_ENTRY* Flink; // 0x0 struct _LIST_ENTRY* Blink; // 0x8 };