Windows Privilege Escalation

Overview

This room introduces common Windows privilege escalation paths, starting with account context and credential harvesting, then moving into practical misconfigurations such as writable scheduled task binaries, weak service permissions, and unquoted service paths.

Core idea: Windows privilege escalation often comes down to finding a place where a higher-privileged process trusts a path, file, or configuration that a lower-privileged user can influence.

1) Windows Account Types

The room starts by separating normal user context from high-privilege system context.

2) Credential Harvesting Quick Wins

Before exploiting anything complex, the room points out several places where passwords or reusable credentials may already exist.

Practical takeaway: credential theft is often simpler and less noisy than a full exploit chain, so check these first.

3) Scheduled Tasks

Writable scheduled task actions can produce a straightforward privilege escalation path.

If you can modify the binary or batch file executed by the task, you can often force it to run your payload as the configured higher-privileged user.

4) AlwaysInstallElevated

This is a classic Windows installer misconfiguration where .msi packages are allowed to install with elevated rights.

Typical exploitation uses msfvenom to generate a malicious MSI and msiexec to run it.

5) Windows Services Basics

Services are managed by the Service Control Manager and are a major source of Windows privilege escalation issues.

6) Insecure Permissions on Service Executables

If a service executable is writable by low-privileged users, escalation is usually trivial.

Why it works: the service will execute your replacement binary using the privileges of the account configured for that service.

7) Unquoted Service Paths

Unquoted paths with spaces can be exploitable when Windows tries to guess which executable should run.

This is why both the path format and the directory permissions matter.

8) Practical Enumeration Mindset

This room is less about one single trick and more about checking the common Windows trust boundaries.

Exam Notes (PT1)