# Active Pentest

> Use when you need to actually run security tests against a running application you own or are authorized to test — the shared execution harness for lab/proxy/scanner setup, safe non-destructive execution, and standardized proof-of-concept capture that the find/exploit specialist skills rely on.

- Skill: `mn-youssef/active-pentest` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add mn-youssef/active-pentest`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mn-youssef/active-pentest/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: mn-youssef (https://skillmd.com/u/mn-youssef)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mn-youssef/active-pentest

---


# Active Pentest (EXPLOIT harness)

## Overview
This is the shared **execution harness** for the FIND/EXPLOIT specialists. They decide *what* to
test — `access-control-testing`, `authentication-testing`, `business-logic-testing`,
`api-security-testing` (and Tier-2 classes like injection / client-side / file-upload). This skill
is *how* you run their tests safely against a live app: set up the lab/proxy/scanners, drive the
tools, and capture proof in a consistent format.

**Core principle:** A finding isn't real until you've reproduced it. A PoC ends the debate.
The specialists own the attack recipes; this skill owns safe execution and evidence.

## ⚠️ Authorization Gate — STOP if not all true
Do not proceed unless **all** hold:
- [ ] You own the target, or have **written authorization** to test it.
- [ ] Target is a **lab / staging / local** instance — not third-party production.
- [ ] You will **not** run destructive or DoS techniques, and won't touch real user data.

If any box is unchecked → stop and stay in `security-code-audit` on code you control.

## Scope discipline (non-destructive by default)
- **Allowed:** read-only recon, fingerprinting, single-request PoCs, reading your own test data,
  proving an IDOR with two test accounts you created.
- **Avoid:** load/stress/DoS, mass scanning, automated exploitation that writes/deletes real data,
  techniques whose only purpose is evasion of monitoring. Throttle scanners; use test accounts.

## Workflow (recon → map → validate → prove)
1. **Recon / fingerprint** — what's exposed, what stack, what version.
2. **Map** — enumerate endpoints, params, auth flows (mirror the threat model).
3. **Validate** — take the attack recipe from the relevant **specialist skill** and run it with
   the **smallest** request that proves the bug. (This skill = the tooling; the specialist = the payload.)
4. **Prove** — capture the exact request/response as the PoC; note impact.

See `references/tool-playbook.md` for how to drive each tool. For *what to send*, go to the
specialist (e.g. IDOR recipes → `access-control-testing`, ATO flows → `authentication-testing`).

## Quick reference — tool per goal
| Goal | Tool |
|------|------|
| Port/service/version | `nmap -sV` |
| TLS config | `testssl.sh`, `sslscan` |
| Web server quick issues | `nikto` |
| Content/endpoint discovery | `ffuf`, `gobuster`, `feroxbuster` |
| Manual request crafting | `curl`, `httpie`, Burp Repeater |
| Intercept / spider / scan | OWASP ZAP, Burp Suite |
| SQLi confirmation | `sqlmap` (on your own app, `--batch`, scoped) |
| Mobile traffic | Burp/ZAP proxy + device, Frida (pinning), `objection` |
| Secrets in code/binary | `trufflehog`, `gitleaks`, `apktool`+`jadx` |

## Output: validated findings
For each confirmed item:
- **Finding ID** (link back to the audit register)
- **Reproduction**: exact command / request
- **Evidence**: response excerpt proving impact (redact real data)
- **Confirmed severity & impact**
- → hand to **`security-hardening`** for the fix and re-test.

## Common mistakes
- Testing prod or third-party assets "just to check" — that's the line you don't cross.
- Running `sqlmap`/scanners full-throttle and knocking over your own staging.
- Calling something exploitable from theory alone — reproduce it.
- Keeping noisy PoCs — minimal request, minimal blast radius.

