0Pricing
Ethical Hacking Academy · Lesson

Windows Architecture

Processes and services.

Windows Architecture is a free Ethical Hacking Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Why Windows Internals

Most enterprise environments run Windows. Understanding how it works inside - processes, services, and privilege boundaries - is essential for attacking and defending it.

This lesson covers the core architecture you will reason about during an engagement.

User Mode vs Kernel Mode

Windows splits execution into two rings:

  • User mode - applications run here with limited access.
  • Kernel mode - the OS core and drivers run with full hardware access.

Exploits that reach kernel mode (for example via a vulnerable driver) give total control.

Processes and Threads

A process is a running program with its own memory; a thread is a unit of execution inside it. Each process has a unique PID.

List processes from a command prompt or PowerShell.

tasklist
Get-Process | Sort-Object CPU -Descending

Key System Processes

Several processes always run; impostors here signal malware:

  • System (PID 4) - kernel threads.
  • smss.exe - session manager.
  • csrss.exe - client/server runtime.
  • lsass.exe - holds credentials, a prime attacker target.
  • winlogon.exe, services.exe.

lsass and Credentials

lsass.exe (Local Security Authority Subsystem) manages authentication and caches credential material in memory.

Tools like Mimikatz dump lsass to steal password hashes and Kerberos tickets - one of the most important attacks to understand.

Services

A service is a background program managed by the Service Control Manager, often running with high privilege at boot.

Misconfigured services (weak permissions, unquoted paths) are classic privilege escalation routes.

sc query
Get-Service | Where-Object Status -eq 'Running'

The Windows API

Applications talk to the OS through the Windows API exposed by DLLs like kernel32.dll and ntdll.dll.

Malware and offensive tooling call these APIs directly (CreateProcess, VirtualAlloc, WriteProcessMemory) to inject code and evade detection.

Access Tokens

Every process carries an access token describing its user, groups, and privileges. Windows checks the token for every secured action.

Attackers steal or impersonate tokens to act as higher-privileged users - the basis of many privilege escalation techniques.

whoami /priv
whoami /groups

Integrity Levels and UAC

Windows assigns integrity levels (Low, Medium, High, System). User Account Control (UAC) runs admins at Medium until they elevate.

UAC bypasses are a common step to jump from Medium to High integrity without a prompt.

DLLs and Search Order

Programs load shared code from DLLs. Windows searches specific directories in order to find them.

If a writable directory comes first, an attacker can plant a malicious DLL - this is DLL hijacking / search-order abuse.

Inspecting with Sysinternals

Microsoft's Sysinternals suite is invaluable for both defenders and attackers:

  • Process Explorer - deep process tree and handles.
  • Process Monitor - live file/registry/process events.
  • Autoruns - every auto-start location (great for finding persistence).

Quick Check

Recall the credential-holding process.

Recap

You mapped Windows architecture:

  • User vs kernel mode; reaching kernel means full control.
  • Key processes, especially lsass.exe for credentials.
  • Services, access tokens, integrity levels and UAC.
  • DLL search order abuse and Sysinternals for inspection.

Next: the Windows Registry.

Frequently asked questions

Is the “Windows Architecture” lesson free?

Yes — the full text of “Windows Architecture” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.

What will I learn in “Windows Architecture”?

Processes and services. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Ethical Hacking Academy?

No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Windows Architecture” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Ethical Hacking Academy lesson?

Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Windows Architecture
  2. The Registry
  3. Windows Authentication
  4. PowerShell for Attackers
← Back to Ethical Hacking Academy