Skills for Real Engineers. Straight from my .agents directory.
offensive-linux-privesc
Agent skill fromSnailSploit/Claude-Red
Comprehensive Linux privilege escalation methodology for offensive security engagements. Covers the full attack surface from a low-privilege shell to root: SUID/SGID binary abuse via GTFOBins, Linux capabilities exploitation (cap_setuid, cap_dac_override, cap_dac_read_search), sudo misconfigurations including NOPASSWD rules and Baron Samedit (CVE-2021-3156), cron job abuse through writable scripts, PATH hijacking, and wildcard injection with tar/rsync/chown. Includes writable /etc/passwd attacks, NFS no_root_squash exploitation, kernel exploits (DirtyPipe CVE-2022-0847, DirtyCow CVE-2016-5195, PwnKit CVE-2021-4034), Docker group container escapes, LD_PRELOAD and LD_LIBRARY_PATH hijacking for shared library injection, systemd service misconfigurations, and sensitive file enumeration for credential harvesting. Integrates automated enumeration with LinPEAS, linux-exploit-suggester, pspy for process monitoring, and GTFOBins for binary exploitation. Each technique includes detection signatu
How to install offensive-linux-privesc
npx skills add SnailSploit/Claude-Red# or add only this skill to Claude Code: copy the folder
Skills/privesc/offensive-linux-privesc/
# into
~/.claude/skills/offensive-linux-privesc/ (all projects)
.claude/skills/offensive-linux-privesc/ (one project)
1# Linux Privilege Escalation23You have a low-privilege shell on a Linux target. Your objective is to escalate to root through systematic enumeration and exploitation of misconfigurations, vulnerable software, and kernel flaws. This skill provides a structured methodology that moves from passive reconnaissance through increasingly aggressive techniques, prioritizing reliability and stealth.45Every engagement starts with situational awareness. Know what you have, what the system exposes, and what defenders can see. Chain low-severity findings into high-impact escalation paths.67## Quick Workflow891. Run automated enumeration (LinPEAS, linux-exploit-suggester) to surface quick wins.102. Check sudo permissions, SUID/SGID binaries, and capabilities first -- these are the highest-probability vectors.113. Enumerate cron jobs, writable scripts, and PATH ordering for hijack opportunities.124. Inspect file permissions on /etc/passwd, /etc/shadow, service configs, and SSH keys.135. Check for NFS shares with no_root_squash and Docker group membership.146. Fingerprint the kernel version and search for applicable kernel exploits as a last resort.157. Validate the escalation path, document the chain, and clean up artifacts.1617---1819## Automated Enumeration2021Before manual inspection, run automated tools to surface the broadest set of findings. Pipe output to a file for offline review and cross-referencing.2223```bash24# LinPEAS -- transfer and execute25…
Excerpt shown under the repository's MIT license.
More skills in Claude-Red
Similar skill repositories
An agentic skills framework & software development methodology that works.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
