offensive-windows-privesc

offensive-windows-privesc is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 203 tokens per session (6,128 once invoked), scanned B, original, Apache-2.0.

A guide to Windows privilege escalation, the process of moving from an ordinary user account to the highest local system account. It covers token impersonation, service and permission issues, and named tools including JuicyPotato, PrintSpoofer, GodPotato, and SweetPotato.

In plain words
What is it for?
It is for authorized Windows penetration tests, privilege-escalation reviews, and checking service, token, and permission configurations that may expose administrator-level access.
Why use it?
It helps security testers examine how a limited Windows account might gain more control through weak permissions or system features. This organizes the path from an initial shell to the SYSTEM account.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for authorized Windows penetration tests, privilege-escalation reviews, and checking service, token, and permission configurations that may expose administrator-level access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miosa-osa/osa/offensive-windows-privesc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Miosa-osa/OSA --skill offensive-windows-privesc
Clone the repo
git clone --depth 1 https://github.com/Miosa-osa/OSA

Made for: Claude Code, Codex.

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 offensive-windows-privesc

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-windows-privesc/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/offensive-windows-privesc)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-windows-privesc"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-windows-privesc/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 offensive-windows-privesc

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-windows-privesc"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-windows-privesc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00203 $0.06128
Opus 5.5 $0.00081 $0.02451
Sonnet 5.5 $0.00041 $0.01226
Haiku 4.5 $0.00020 $0.00613

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

Security

Grade B, and why

offensive-windows-privesc scanned grade B with 1 finding 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 1mo ago.

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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

8. Harvest credentials from SAM, DPAPI, LSA secrets, and Credential Manager.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

priv/skills/offensive-windows-privesc/SKILL.md · 621 lines

How it starts

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

Windows Privilege Escalation

You have a standard user shell on a Windows target. Your objective is to escalate to NT AUTHORITY\SYSTEM or local Administrator through systematic enumeration and exploitation of misconfigurations, vulnerable services, and unpatched software. This skill provides a structured methodology that moves from passive reconnaissance through increasingly aggressive techniques.

Windows privilege escalation differs fundamentally from Linux. The attack surface centers on services, tokens, the registry, DLL loading mechanics, and the Windows access control model. Master these primitives and you can chain findings from any enumeration tool into a working escalation path.

Quick Workflow

  1. Run automated enumeration (WinPEAS, PowerUp, Seatbelt) to surface misconfigurations.
  2. Check current privileges -- SeImpersonate/SeAssignPrimaryToken are immediate wins.
  3. Enumerate services for unquoted paths, weak DACLs, and writable binaries.
  4. Check AlwaysInstallElevated registry keys for MSI-based escalation.
  5. Identify DLL hijacking opportunities in privileged processes.
  6. Attempt UAC bypass if running as a local admin without elevated context.
  7. Inspect scheduled tasks, registry autoruns, and writable PATH directories.
  8. Harvest credentials from SAM, DPAPI, LSA secrets, and Credential Manager.
  9. Check for PrintNightmare and other unpatched vulnerabilities as a last resort.

Automated Enumeration

Run automated tools first to build a comprehensive picture of the attack surface. Review output methodically -- these tools surface findings you would otherwise miss.

# WinPEAS
.\winPEASx64.exe > C:\Users\Public\winpeas.txt 2>&1
.\winPEASx64.exe servicesinfo  # Specific checks only

# PowerUp
Import-Module .\PowerUp.ps1
Invoke-AllChecks | Out-File -FilePath C:\Users\Public\powerup.txt

# SharpUp / Seatbelt / BeRoot
.\SharpUp.exe audit
.\Seatbelt.exe -group=all > C:\Users\Public\seatbelt.txt
.\beRoot.exe

Token Impersonation

Read the full file on GitHub · 621 lines

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. 1mo ago First seen · 621 lines · 203 tokens per session scan B 1b4405ac0126

Subscribe to this mod's changes

offensive-windows-privesc is a skill published in the GitHub repository Miosa-osa/OSA (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 203 tokens to every session and 6,128 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.