CB ctf-pwn
Provides binary exploitation (pwn) techniques for CTF challenges. Use when exploiting buffer overflows, format strings, heap vulnerabilities (House of Orange, Spirit, Lore, Apple 2, Einherjar, tcache stashing unlink), race conditions, kernel bugs, ROP chains, ret2libc, ret2dlresolve, shellcode, GOT overwrite, use-after-free, seccomp bypass, FSOP, stack pivot, sandbox escape, Windows SEH overwrite, VirtualAlloc ROP, SeDebugPrivilege escalation, or Linux kernel exploitation (modprobe_path, tty_struct, userfaultfd, KASLR bypass, SLUB heap spray).
As a process B 73/100 · Nearly there — weak spots: when it triggers, execution cost, running it twice
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill asks for more than the task needs: broad tool access, credential environment variables, binaries. Every extra permission widens the damage from a mistake or a compromise.
Narrow allowed-tools and the variable list to the minimum; replace binaries with readable sources or scripts.
How to improve
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 47
✓ No critical or high findings
Medium and low: 47
-
medium Broad scope
meta-broad-allowed-toolsSKILL.md:1Broad tool permissions pre-approved: Bashallowed-tools: Bash Read Write Edit Glob Grep Task WebFetch WebSearch
-
low Risky intent
intent-offensive-securityadvanced-exploits-2.md:18Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- [Full Exploitation Chain](#full-exploitation-chain)
-
low Risky intent
intent-offensive-securityadvanced-exploits-2.md:59Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploitation chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits-2.md:128Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Dangerous commands
cmd-privilegeadvanced-exploits-2.md:313Privilege escalation / world-writable permissions (documentation of a security skill)encoded_setuid = rol(libc.sym.setuid ^ pointer_guard, 0x11)
security skill -
low Dangerous commands
cmd-privilegeadvanced-exploits-2.md:320Privilege escalation / world-writable permissions (code comment; documentation of a security skill)node1 += p64(encoded_setuid) # func = setuid(0)
commentsecurity skill -
low Risky intent
intent-offensive-securityadvanced-exploits-2.md:403Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Three-layer exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits-2.md:420Offensive-security / dual-use content (legitimate for authorised testing; review intended use)### Full Exploitation Chain
-
low Risky intent
intent-offensive-securityadvanced-exploits-3.md:28Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits-3.md:71Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (quoted — discussed, not commanded)**Key insight:** 8-bit counters in read loops cause off-by-one when the buffer size equals the counter's range (64 → wraps after 64, writes byte 65). The 1-byte overflow into a size field creates a pr
quoted -
low Risky intent
intent-offensive-securityadvanced-exploits-3.md:115Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits-3.md:156Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits-4.md:343Offensive-security / dual-use content (legitimate for authorised testing; review intended use)# Exploit chain:
-
low Risky intent
intent-offensive-securityadvanced-exploits-4.md:411Offensive-security / dual-use content (legitimate for authorised testing; review intended use)# Exploit chain:
-
low Risky intent
intent-offensive-securityadvanced-exploits.md:85Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits.md:261Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits.md:332Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityadvanced-exploits.md:467Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Dangerous commands
cmd-privilegeheap-techniques.md:80Privilege escalation / world-writable permissions (code comment; documentation of a security skill)0x68: p64(0), # RDI = 0 (for setuid(0))
commentsecurity skill -
low Dangerous commands
cmd-privilegeheap-techniques.md:82Privilege escalation / world-writable permissions (documentation of a security skill)0xa8: p64(libc.sym.setuid), # RIP = setuid as first call
security skill -
low Dangerous commands
cmd-privilegeheap-techniques.md:89Privilege escalation / world-writable permissions (code comment; documentation of a security skill)libc.address + 0, # After setuid(0) returns here
commentsecurity skill -
low Risky intent
intent-offensive-securityheap-techniques.md:106Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securityheap-techniques.md:310Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploitation chain:**
-
low Risky intent
intent-offensive-securityheap-techniques.md:608Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploitation chain:**
-
low Risky intent
intent-offensive-securityheap-techniques.md:667Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Exploit chain:**
-
low Risky intent
intent-offensive-securitykernel-bypass.md:179Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| No SMEP/SMAP | (nothing) | [ret2usr](kernel.md#ret2…map) — directly call userland privesc function |
-
low Risky intent
intent-offensive-securitykernel-bypass.md:318Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (quoted — discussed, not commanded)printf("[-] privesc failed\n");quoted -
low Risky intent
intent-offensive-securitykernel-bypass.md:374Offensive-security / dual-use content (legitimate for authorised testing; review intended use)void privesc() { -
low Risky intent
intent-offensive-securitykernel-techniques.md:17Offensive-security / dual-use content (legitimate for authorised testing; review intended use)For kernel fundamentals (environment setup, heap spray structures, stack overflow, privilege escalation, modprobe_path, core_pattern), see [kernel.md](kernel.md).
-
low Risky intent
intent-offensive-securitykernel.md:18Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- [Privilege Escalation Primitives](#privilege-escalation-primitives)
-
low Risky intent
intent-offensive-securitykernel.md:265Offensive-security / dual-use content (legitimate for authorised testing; review intended use)## Privilege Escalation Primitives
-
low Risky intent
intent-offensive-securitykernel.md:279Offensive-security / dual-use content (legitimate for authorised testing; review intended use)void privesc() { -
low Risky intent
intent-offensive-securitykernel.md:303Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (quoted — discussed, not commanded)After `privesc()` returns to userland, the process has root credentials. Call `system("/bin/sh")` to get a root shell.quoted -
low Risky intent
intent-offensive-securitykernel.md:373Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (quoted — discussed, not commanded)printf("[-] privesc failed\n");quoted -
low Risky intent
intent-offensive-securityoverflow-basics.md:189Offensive-security / dual-use content (legitimate for authorised testing; review intended use)Overflow `valid` flag between buffer and canary without touching the canary. Use `./` as no-op path padding for precise length control. See [advanced-exploits.md](advanced-exploits.md#canary-aware-par
-
low Risky intent
intent-offensive-securitysandbox-escape.md:69Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Privilege escalation via passwd modification:**
-
low Risky intent
intent-offensive-securitysandbox-escape.md:85Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**File descriptor redirection (no reverse shell needed):**
-
low Risky intent
intent-offensive-securitysandbox-escape.md:106Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Key insight:** Network servers typically have the client socket on fd 3. Redirecting stdin/stdout to this fd (`exec <&3; sh >&3 2>&3`) gives an interactive shell over the existing connection without
-
low Risky intent
intent-offensive-securityskill-card.md:21Offensive-security / dual-use content (legitimate for authorised testing; review intended use)Mitigation: Install only for authorized CTF, training, or isolated lab exploitation, and require human approval before running exploit commands, making network callbacks, changing system files, weaken
-
low Risky intent
intent-offensive-securitySKILL.md:54Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- [kernel.md](kernel.md) - Linux kernel exploitation fundamentals: environment setup, QEMU debug, heap spray structures (tty_struct, poll_list, user_key_payload, seq_operations), kernel stack overflow
-
low Risky intent
intent-offensive-securitySKILL.md:148Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Pattern:** Overflow `valid` flag between buffer and canary. Use `./` as no-op path padding for precise length. See [overflow-basics.md](overflow-basics.md) and [advanced.md](advanced.md) for full ex
-
low Risky intent
intent-offensive-securitySKILL.md:464Offensive-security / dual-use content (legitimate for authorised testing; review intended use)See [advanced-exploits-2.md](advanced-exploits-2.md#sign…026) for full exploit chain, XSS bridge pattern, and RGB pixel wri
A further 5 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 16. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
body-longSKILL.md body ≈ 11022 tokens (recommended < 5000); move details to references/
Process rating: all ten parameters 73/100
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 72 mutating operations with no state check
- 40Execution cost. Instruction body is 11022 tokens: crowds the task out of the window
- 60Result and completion. Output format stated, no completion criterion
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Tools and files. Tools declared in frontmatter
- 100Steps. 48 steps
- 100Failures and branches. 4 branches, has a failure section
- 100Consistency. Name and required fields are in place
- low 81 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +2Single-language instructions
- +3Description length 549: enough signal without eating the budget
- +4Structure: 82 headings
- +3Step-by-step instructions: 48 items
- +3Output format is stated explicitly
- +4Has examples (6 code blocks)
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 78.