Windows Internals for Defenders

Learn the Windows concepts that show up in every enterprise investigation: accounts, UAC, the registry, services, event logs and PowerShell.

Beginner · about 8 hours · difficulty 2/5

Learn first: The Security Mindset and the CIA Triad

Most corporate endpoints run Windows, so most alerts a SOC analyst sees come from Windows machines. You need to know where things live and what normal looks like.

Accounts and privileges

Local accounts are stored in the SAM database; domain accounts live in Active Directory. Administrators run with a filtered token until UAC elevates them. Special identities like SYSTEM have more power than any admin. Access to files and objects is controlled by ACLs.

Where Windows keeps state

  • Registry: hierarchical config store. Hives such as HKLM\Software and HKCU. Run keys (...\CurrentVersion\Run) are a common persistence spot.
  • Services and scheduled tasks: long-running or timed programs, also popular for persistence.
  • Processes: learn the normal parent-child tree (for example services.exe spawning svchost.exe). An Office app spawning powershell.exe is a classic red flag.

Event logs

Security logs record logons and privilege use. Event IDs worth knowing: 4624 (logon success), 4625 (logon failure), 4688 (process creation), 4720 (account created), 7045 (service installed). Microsoft Sysmon adds much richer telemetry and is widely used in SOCs.

Tools

Task Manager and Event Viewer are a start; Sysinternals tools (Process Explorer, Autoruns, TCPView) are what analysts actually use.

Pitfalls

  • Assuming a process is safe because it is called svchost.exe. Check its path and parent.

Good enough: on a Windows VM you can list autostart locations, find recent logons in Event Viewer, and explain what normal process ancestry looks like.

Key concepts

  • Local accounts, SAM and UAC
  • NTFS permissions and ACLs
  • Registry hives and Run keys
  • Services and scheduled tasks
  • Normal process tree
  • Security event IDs
  • Sysmon
  • Sysinternals suite

Mini project

Install Sysmon on a Windows VM with a community config, run a few normal activities, and document which events each activity generated.

Check yourself

What does event ID 4625 mean, and what pattern of them would suggest a password-spraying attack?

Free resources