# Windows Internals for Defenders

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

Canonical: https://www.internhack.in/roadmaps/tracks/cybersecurity/windows-fundamentals
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/cybersecurity/security-mindset)

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

- [Microsoft Sysinternals](https://learn.microsoft.com/en-us/sysinternals/) (Microsoft)
- [Windows Security Log Encyclopedia](https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/) (Ultimate Windows Security)
- [TryHackMe Windows fundamentals rooms](https://tryhackme.com/) (TryHackMe)

Previous: [Linux Users, Permissions and Processes](https://www.internhack.in/roadmaps/tracks/cybersecurity/linux-permissions-processes) · Next: [Active Directory Fundamentals](https://www.internhack.in/roadmaps/tracks/cybersecurity/active-directory-basics)

## More in Operating Systems for Security

- [Linux Command Line Essentials](https://www.internhack.in/roadmaps/tracks/cybersecurity/linux-cli)
- [Linux Users, Permissions and Processes](https://www.internhack.in/roadmaps/tracks/cybersecurity/linux-permissions-processes)
- [Windows Internals for Defenders](https://www.internhack.in/roadmaps/tracks/cybersecurity/windows-fundamentals)
- [Active Directory Fundamentals](https://www.internhack.in/roadmaps/tracks/cybersecurity/active-directory-basics)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Cybersecurity Roadmap](https://www.internhack.in/roadmaps/tracks/cybersecurity)
