Logo van Pentest Playbook

Pentest Playbook

CommunityPopulair
uphiago
pentest-playbook

7-phase pentest pipeline from passive recon to exploitation.

Add to TypingMind

Overzicht

Uitgeveruphiago
Repositoryrecon-skills
Skillnaampentest-playbook
Sterren
1.3K
Forks
213
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door uphiago op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Pentest Playbook in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/uphiago/recon-skills/tree/main/meta/pentest-playbook
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/uphiago/recon-skills.git /tmp/recon-skills
mkdir -p .claude/skills
cp -r /tmp/recon-skills/meta/pentest-playbook .claude/skills/pentest-playbook
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Pentest Playbook in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Pentest Playbook automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Pentest Playbook niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Pentest Playbook Skill

7-phase master pentest pipeline covering the full lifecycle from passive reconnaissance to exploitation and reporting. Distilled from 100+ targets across government, healthtech, fintech, e-commerce, ISP, and SMB sectors. This is the "meta-playbook" — it tells you what to do at each stage of an engagement and which skills to load for each phase.

When to Use

  • Starting a new pentest engagement with an unknown target.
  • You need the canonical workflow for any type of target.
  • After surface recon — this playbook tells you what to do next.
  • Training — understand the full lifecycle of a professional pentest.

The 7-Phase Pipeline

PhaseNameFocusKey SkillsDuration
1Passive ReconOSINT, subdomains, leaks, tech stacksubdomain-enumeration, offensive-osint30-60 min
2Active ReconPort scans, live hosts, tech detectionport-mass-scan, port-service-discovery, web2-recon30-60 min
3Web EnumerationSensitive files, .env, CORS, JS secretsweb-enumeration, cors-credential-wordpress, js-secrets-extraction20-40 min
4Framework ExploitWordPress, Laravel, Spring, .NEThunt-wordpress, hunt-laravel, hunt-springboot, hunt-aspnet30-60 min
5Cloud & InfrastructureFirebase, Supabase, S3, Cloud Functionshunt-firebase, hunt-supabase, cloud-iam-deep30-60 min
6Deep ExploitationSQLi, SSRF, RCE, ATO, chainshunt-sqli, hunt-ssrf, cross-attack-chains1-4 hours
7Report & RemediationDocumentation, PoC, CVSS scoringreport-writing, triage-validation, evidence-hygiene1-3 hours

Per-Phase Procedure

Phase 1 — Passive Recon

bash
# 1. Subdomain enumeration
subfinder -d $TARGET -silent | tee subs.txt
curl --max-time 30 --connect-timeout 10 -s "https://crt.sh/?q=%.$TARGET&output=json" | jq -r '.[].name_value' >> subs.txt

# 2. Tech stack detection via response headers
curl --max-time 30 --connect-timeout 10 -sI "https://$TARGET" | grep -iE "server|x-powered-by|x-aspnet|x-generator|x-runtime"

# 3. Google dorks
# site:$TARGET filetype:env DB_PASSWORD
# site:$TARGET "-----BEGIN RSA PRIVATE KEY-----"

# 4. GitHub code search (SA keys, .env, credentials)
# See google-dorks-catalog skill for full list

Phase 2 — Active Recon

bash
# 1. Port scan (top 1000 ports)
rustscan -a $TARGET --ulimit 5000 -g | tee ports.txt

# 2. HTTP probe on alive hosts
cat subs.txt | httpx -silent -status-code -title -tech-detect | tee live.txt

# 3. CORS quick test
curl --max-time 30 --connect-timeout 10 -skI "https://$TARGET/wp-json/wp/v2/users" -H "Origin: https://evil.com" | grep -i "access-control"

Phase 3 — Web Enumeration

Run the full web-enumeration skill — 200+ sensitive file paths, .env extraction, path traversal bypass, vHost enum.

Phase 4 — Framework Exploitation

Load the relevant hunt-* skill based on detected framework:

  • WordPress: hunt-wordpress + wp-mass-recon
  • Laravel: hunt-laravel
  • Spring Boot: hunt-springboot
  • ASP.NET: hunt-aspnet

Phase 5 — Cloud & Infrastructure

  • Firebase: hunt-firebase (API key → Firestore → Storage)
  • Supabase: hunt-supabase (anon key → RLS bypass)
  • Cloud IAM: cloud-iam-deep (SA key → GCP token → IAM policy)
  • Docker: docker-privesc (if container access)

Phase 6 — Deep Exploitation

Chain findings using cross-attack-chains skill. The 5 confirmed chains (A-E) turn individual Medium/High findings into Critical impact.

Phase 7 — Report

Use report-writing skill for bug bounty or redteam-report-template for client deliverables. Apply triage-validation 7-question gate before submitting.

Lateral Pivot Decision Points (Critical Methodology)

When brute force / direct attacks aren't producing results, DO NOT persist — pivot to lateral discovery. This is the single most important judgment call in a pentest.

Pivot Triggers — Know When to Switch Vectors

SignalCurrent VectorPivot To
100+ passwords tested, zero hitsBrute force (login)SSRF, CORS, subdomain enum, API discovery, source leak, open registration, Firebase/Supabase
All common creds fail on MySQL/SSHDatabase/SSH bruteAPI discovery (port scan for HTTP services), JS bundle secrets, Firebase config, CORS exfil
WAF/403 on every payloadWeb exploitationCDN bypass (origin IP discovery), subdomain enum (staging/dev may lack WAF), API on non-standard ports, HTTP method/header tampering
rate limit / captcha / lockoutAuth bruteSameSite bypass, OAuth misconfig, MFA fatigue, password-reset poisoning, SSO token reuse
401/403 on all API endpointsAPI exploitationOPTIONS preflight, method tampering (GET→POST, PUT→PATCH), content-type switching (JSON→XML→form), header injection (X-Forwarded-User, X-Original-URL), JWT alg=none
SPA returns same HTML for all pathsPath enumerationCheck API on other ports (8080, 8443, 3000, 5000, 8084), JS bundle route extraction, source maps, Firebase/Supabase, CORS exfil
No vulns found on main appApp exploitationSister apps (same IP/cert/headers → same code), subdomains, staging/dev instances, mobile APKs, CMS admin panels, forum/community software

Lateral Discovery Checklist (run this when stuck)

When a vector isn't paying off, systematically check these BEFORE declaring the target clean:

  1. Ports beyond top-20 — nmap -p- on critical targets, masscan on /24 ranges
  2. Non-standard API ports — 8080, 8081, 8084, 8443, 3000, 5000, 9090, 9000
  3. Subdomains — subfinder + crt.sh (staging, dev, admin, api, mail, cpanel, shop)
  4. JS bundle secrets — Firebase API keys, AWS/GCP credentials, internal endpoints, JWTs
  5. Open registration — wp-login.php?action=register, /signup, /register endpoints
  6. CORS exfiltration — ACAO reflection + ACAC:true = browser-readable data from authenticated victims
  7. Firebase / Supabase — API key in JS → anonymous auth → Firestore/RTDB read
  8. Error logs — /error_log, /debug.log, /wp-content/debug.log (often 1MB+ of paths, SQL, creds)
  9. Source code leaks — .git/HEAD, .env, sitemap.xml, robots.txt disallow paths, source maps
  10. Sister-app sweep — same IP / cert / headers → same vulnerable code template on other paths

The 3-Attempt Rule

Before spending more than 5 minutes on any SINGLE attack vector:

  1. Try the primary approach (e.g., 100 pwds via multicall)
  2. Try one lateral pivot (e.g., check open registration)
  3. Try one creative alternative (e.g., check CORS, Firebase, JS secrets)

If none worked in 3 distinct attempts, the vector is low-probability. Document what was tried and move on. Do NOT cycle back to the same vector with more of the same — find a qualitatively different angle.

Anti-Pattern: The Brute Force Trap

"Let me just try 100 more passwords..."
"Maybe I need a bigger wordlist..."
"Let me try one more round..."

🚫 STOP. If the first 100 targeted passwords didn't work, the next 10,000 won't either (for real-world passwords). Instead:

  • Check if there's ANY authentication at all (CORS no-auth endpoints)
  • Check if registration is open (create your own account)
  • Check if the auth uses JWTs you can forge (alg=none, weak HMAC)
  • Check if there's a different auth path (SSO, OAuth, SAML)
  • Move on to a different target entirely

Pitfalls

  • Don't skip Phase 1. Many critical findings come from passive recon (source leaks, GitHub SA keys).
  • Don't spend more than 15 min on Phase 2. Quick filter is enough — save deep probing for Phase 6.
  • OPSEC is not optional. Use proxy-ns or proxychains + Tor from the start. Never burn your source IP.
  • .env is not always a finding. Verify content contains actual credentials (DB_, APP_KEY), not just SPA catch-all HTML.
  • Document as you go. Don't wait until Phase 7 — you'll forget exact commands.
  • Don't brute-force past the pivot trigger. 100 targeted passwords per vector is the max before lateralizing.

Verification

  • Each phase has a clear exit criterion (e.g., "score >= 6 → escalate to Phase 6").
  • Every finding must be reproducible with the exact command.
  • All findings must pass the 7-question gate before reporting.

Veelgestelde vragen

Wat doet de AI-skill Pentest Playbook?

7-phase pentest pipeline from passive recon to exploitation.

Waarom Pentest Playbook gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Pentest Playbook bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Pentest Playbook in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/uphiago/recon-skills/tree/main/meta/pentest-playbook. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Pentest Playbook gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Pentest Playbook gebruiken?

Zoveel als je wilt. Je kunt Pentest Playbook gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Pentest Playbook gratis?

Ja. Deze skill is door uphiago op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇