performing-privilege-escalation-on-linux

Enumerates and exploits Linux privilege escalation vectors to elevate from low-privilege users to root.

1|1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Yenn503/Net-Runners --skill performing-privilege-escalation-on-linux-yenn503
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performing-privilege-escalation-on-linux
Source: https://github.com/Yenn503/Net-Runners/tree/main/.netrunner/skills/infra/performing-privilege-escalation-on-linux
Command: npx skills add https://github.com/Yenn503/Net-Runners --skill performing-privilege-escalation-on-linux-yenn503

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? During authorized penetration tests and red team engagements, gaining an initial foothold on a Linux host usually yields only a low-privilege shell. This Skill guides the systematic enumeration and exploitation of privilege escalation vectors so testers can reach root and demonstrate real impact. ## Core Features & Use Cases - Escalation Vector Coverage: Documents SUID/SGID binaries, sudo misconfigurations, kernel exploits (Dirty Cow, Dirty Pipe, PwnKit), cron job abuse, capabilities, and writable systemd service files. - Tooling Guidance: Maps tools like LinPEAS, LinEnum, linux-exploit-suggester, pspy, and GTFOBins to specific enumeration and exploitation tasks. - MITRE ATT&CK Mapping: Aligns each technique with ATT&CK techniques such as T1548.001, T1068, and T1053.003 for structured reporting. - Use Case: After obtaining a low-privilege shell on a lab target, run LinPEAS, review sudo -l output and SUID binaries against GTFOBins, then exploit a misconfigured cron job to gain root and document the evidence. ## Quick Start Ask the agent to enumerate privilege escalation vectors on the compromised Linux host and identify a path to root using LinPEAS and manual checks.

Frequently Asked Questions about performing-privilege-escalation-on-linux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I escalate privileges on Linux after getting a shell?▼

Start with automated enumeration using LinPEAS or LinEnum, then manually check sudo -l, SUID binaries via find / -perm -4000, cron jobs, and capabilities with getcap. Match findings against GTFOBins or known kernel exploits to reach root.

What tools find Linux privilege escalation vectors?▼

LinPEAS and LinEnum automate enumeration of misconfigurations, linux-exploit-suggester matches kernel versions to exploits, and pspy monitors processes without root. GTFOBins documents how to abuse SUID and sudo binaries.

Which Linux kernel exploits work for privilege escalation?▼

Common kernel exploits include Dirty Cow (CVE-2016-5195) for older kernels, Dirty Pipe (CVE-2022-0847) for kernel 5.8+, PwnKit (CVE-2021-4034) for pkexec, and GameOver(lay) (CVE-2023-2640, CVE-2023-32629) for Ubuntu.

Is it legal to use Linux privilege escalation techniques?▼

Privilege escalation testing is legal only on systems you own or have written authorization to test. The skill includes a legal notice stating unauthorized use may violate computer fraud laws, so always confirm scope before testing.

Why does sudo -l matter in privilege escalation?▼

sudo -l lists commands the current user may run with elevated privileges. Wildcards in sudo rules, NOPASSWD entries on dangerous binaries, or vulnerable sudo versions like CVE-2021-3156 can each provide a direct path to root.