Skip to content
Back to skills

Privilege Escalation

ASecurity

Use after gaining an initial foothold to escalate privileges on a Linux or Windows host — enumerating misconfigurations, weak permissions, sudo/SUID issues, service and scheduled-task abuse, credential harvesting, kernel/software vulns, and token/capability abuse. Maps to MITRE ATT&CK Privilege Escalation, with detection and remediation. Authorized engagements only.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 15, 2026
securitygitsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 15, 2026

npx -y skills add noahfranklin/gideon --skill privilege-escalation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Privilege Escalation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Privilege Escalation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/noahfranklin-privilege-escalation/badge)](https://www.skillsdirectory.com/skills/noahfranklin-privilege-escalation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: privilege-escalation
description: "Use after gaining an initial foothold to escalate privileges on a Linux or Windows host — enumerating misconfigurations, weak permissions, sudo/SUID issues, service and scheduled-task abuse, credential harvesting, kernel/software vulns, and token/capability abuse. Maps to MITRE ATT&CK Privilege Escalation, with detection and remediation. Authorized engagements only."
---

# Local Privilege Escalation (Linux & Windows)

Turning a low-privilege foothold into higher (root/SYSTEM/admin) access on a host. Mapped to **MITRE ATT&CK (Privilege Escalation)**. Enumerate systematically before attempting anything.

## 0. Authorization gate
- [ ] Foothold is in scope; escalation authorized on this host.
- [ ] Note anything changed for clean rollback.

## 1. Linux
- **Enumeration:** users/groups, sudo rights, SUID/SGID binaries, capabilities, cron/systemd timers, writable service files & PATH, world-writable sensitive files, mounted secrets, kernel version, running services, container context.
- **Common paths:**
  - `sudo` misconfig / exploitable allowed commands (GTFOBins-style).
  - SUID/SGID or capability abuse.
  - Writable cron/systemd units or scripts they run.
  - Weak file permissions on credentials/keys/config.
  - Kernel or local-service vulns (validate applicability before running).
- **Fix:** least-privilege sudo, remove needless SUID/capabilities, secure cron/service file perms, patch, secrets hygiene.

## 2. Windows
- **Enumeration:** privileges/tokens (`whoami /priv`), services (unquoted paths, weak perms, writable binaries), scheduled tasks, AlwaysInstallElevated, autoruns, DLL hijack opportunities, stored creds (registry, files, credential manager), UAC config.
- **Common paths:**
  - Service misconfig (weak service/binary permissions, unquoted service paths).
  - Token privilege abuse (e.g., SeImpersonate → potato-style local escalation).
  - DLL hijacking / writable PATH.
  - Credential harvesting from files/registry/memory.
  - Missing patches for known local escalations.
- **Fix:** correct service/file ACLs, quote service paths, remove AlwaysInstallElevated, patch, restrict dangerous privileges, credential hygiene, LAPS.

## 3. Credential-based escalation
Harvested credentials/keys/hashes often beat exploits: reuse locally or to move laterally (→ `post-exploitation`, `active-directory-pentest`).

## 4. Tooling
linpeas/linenum, pspy (Linux); winPEAS, PowerUp/SharpUp, Seatbelt (Windows). Treat automated output as leads to validate, not conclusions.

## 5. Reporting
Per finding: host, misconfig/vuln, escalation achieved, severity, remediation. Feed chains into `vuln-chaining`. Checklist: `references/privesc-checklist.md`.

---
<sub>© 2026 noahfranklin · Part of the [Gideon](https://github.com/noahfranklin/gideon) security suite · MIT License · Original work.</sub>

Files in this skill

  • SKILL.md2.8 KB
  • references/privesc-checklist.md748 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.