
Windows Security
Windows privilege escalation techniques, group exploitation, system hardening, and vulnerability exploitation for penetration testing and red team operations.
Dec 11, 2025
Updated Nov 22, 2026
2 min read
Overview
Most enterprise networks run on Windows, so most internal tests end up on a Windows host sooner or later. These notes cover local privilege escalation, privileged group abuse, known Windows vulnerabilities and hardening.
Privilege escalation techniques
Windows privileges
- SeImpersonate Privilege - Exploit token impersonation for SYSTEM access
- SeBackup Privilege - Read any file through backup rights
- SeDebug Privilege - Abuse debugging privileges for process manipulation
- SeTakeOwnership Privilege - Take ownership of files and registry keys
Service exploitation
- Service Hijacking - Hijack vulnerable Windows services
- Unquoted Service Path - Exploit improperly quoted service paths
Task exploitation
- Scheduled Tasks - Abuse misconfigured scheduled tasks
Privileged groups
Administrative groups
- Event Log Readers - Exploit Event Log Readers group membership
- Print Operators - Abuse Print Operators group privileges
- Server Operators - Abuse Server Operators service control
- Hyper-V Administrators - Exploit Hyper-V administrative access
Code injection
- DLL Injection - Code injection via Dynamic Link Libraries
Known vulnerabilities
- PrintNightmare - Print Spooler driver install to SYSTEM
- LLMNR and NBT-NS Poisoning - Credential capture via name resolution poisoning
- Bring Your Own Vulnerable Driver (BYOVD) - Kernel-level exploitation via vulnerable drivers
System hardening
- Windows Hardening - Security best practices for Windows systems
Attack methodology
Phase 1: Enumeration
- Identify system information (OS version, patches, architecture)
- Enumerate user privileges and group memberships
- Check running services and scheduled tasks
- Review installed software and versions
Phase 2: Privilege identification
- Look for dangerous privileges (SeImpersonate, SeBackup, SeDebug)
- Identify misconfigured services and paths
- Check for vulnerable drivers
- Enumerate privileged group memberships
Phase 3: Exploitation
- Exploit the privilege or misconfiguration you found
- Prefer built-in Windows functionality over dropped binaries
Phase 4: Persistence
- Create scheduled tasks
- Modify services
- Registry autoruns
- WMI event subscriptions
Tools
| Tool | Primary Use |
|---|---|
| Mimikatz | Credential extraction and Kerberos attacks |
| PowerView | AD enumeration and exploitation |
| Impacket | Windows protocol exploitation |
| NetExec | Network enumeration and lateral movement |
Related notes
- Active Directory Attacks - Domain-level exploitation
- Network Protocol Attacks - SMB and RDP attacks
- Linux Security - Cross-platform privilege escalation
XML External Entity (XXE) Injection
Exploiting XML external entities for file reads, SSRF and blind out-of-band exfiltration, including XXE through SVG and Office uploads.
Bring Your Own Vulnerable Driver (BYOVD)
Loading a vulnerable signed driver on Windows to get kernel access, kill security software and bypass kernel protections.