User Mode
Cheat sheet · https://pcornel.dk/topic.php?topic=2928
Answer
User mode is the normal execution environment for applications and many Windows services. Each process receives its own virtual address space and handle table, and it must request protected operating-system operations through defined APIs/system calls instead of directly executing privileged kernel operations.
Remember
- User mode is a CPU/OS protection level, not “non-admin user.”
- An elevated Administrator process still normally executes application code in user mode.
- Processes have private virtual address spaces, which limits direct cross-process memory corruption.
- Protected resources are reached through handles and system services with security checks.
- A user-mode crash usually terminates or damages that process/service rather than the whole OS.
First checks
Get-Process | Sort CPU -Desc | Select -First 10— top user-mode processesGet-WinEvent -LogName Application -MaxEvents 20— application errorstasklist /m <dll>— processes using a DLLwhoami /priv— privileges of the current token
Verify in this order
process in user mode → calls Windows APIs → system calls into kernel → result or error returned
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
User-mode properties
| Property | Meaning |
|---|---|
| Private virtual address space | normal processes cannot directly address another process's private memory |
| Handle table | access to OS objects is mediated through handles/rights |
| Access token | identity and authorization context used for security decisions |
| API/system service boundary | privileged operations are requested rather than executed directly |
| Process-local failure scope | many crashes terminate only the affected user-mode process |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2928