AI Penetration-Testing Skills Β· Claude Code

open-sesame πŸ”“

Find the security holes in your web apps and networks β€” before hackers do.
Say the magic words, and the target opens up β€” the authorized way.
⭐ Star on GitHub Get started
MIT PRs welcome Claude Skill OWASP WSTG

What it does

Point it at a web app or a network you're authorized to test, and it runs the whole engagement like a methodical penetration tester would.

πŸ”Ž

Recon & mapping

Enumerates subdomains, endpoints, parameters, and tech to chart the full attack surface.

πŸ›‘οΈ

OWASP WSTG testing

Works category by category through the OWASP Web Security Testing Guide β€” auth, access control, injection, and more.

βœ…

Validated findings

Confirms real issues with the lightest safe proof instead of dumping false positives.

πŸ”‘

Authenticated & multi-tenant

Tests logged-in flows and cross-tenant isolation β€” where the highest-impact bugs live.

πŸ“„

Three reports, two audiences

Writes a technical report for engineers, a plain-English stakeholder summary, and a how-to-recreate guide β€” all as PDF.

βš™οΈ

Open & readable

Just Markdown instructions and small scripts. No fine-tuning, no black box β€” read every line.

How it works

A disciplined five-phase workflow β€” each phase feeds the next.

Scope & authorization

Confirms you're allowed to test the target and records the rules of engagement first.

Recon & mapping

Builds the attack surface: hosts, endpoints, parameters, technologies, and roles.

Vulnerability testing

Works the OWASP WSTG categories against everything it mapped.

Safe validation

Proves real impact with minimal, non-destructive proof-of-concept.

Reporting

Turns findings into clear, actionable reports for devs and leadership.

Two skills, one workflow

Each skill follows an established methodology from scoping through reporting. Pick the one that matches your target.

Web appsOWASP WSTG
technical-report.pdfstakeholder-report.pdfhow-to-recreate.pdf

web-pentest

Recon of a web application, then category-by-category OWASP WSTG testing, including authenticated and multi-tenant flows.

  • Maps endpoints, parameters, and roles
  • Validates findings with the lightest safe proof
NetworksPTES Β· NIST 800-115
technical-report.pdfstakeholder-report.pdfhow-to-recreate.pdf

net-pentest

External perimeter and internal Active Directory testing, from host discovery and enumeration to privilege escalation and lateral movement.

  • Covers AD attacks, password attacks, and pivoting
  • Stays in scope, and cleans up after itself

What's inside

Each skill ships with focused reference guides, so the agent loads only the material it needs for the step in front of it.

πŸ“š

web-pentest references

Methodology, tooling, post-exploitation, reporting, and lab targets for practice.

🏒

net-pentest references

Active Directory, privilege escalation, password attacks, pivoting, containers, cloud identity, wireless, and tooling.

πŸ§ͺ

Eval runs

Trigger and behavior test cases, including scope refusals, plus recorded benchmark runs for web-pentest.

🧰

Report scripts

A render script turns the Markdown reports into PDFs with Chrome, weasyprint, or cupsfilter.

Benchmark: a real engagement

The net-pentest skill on a throwaway Active Directory lab: no credentials, no map, timed from the first command.

⏱️
β‰ˆ 14 min

Cold start β†’ Domain Admin

First command to confirmed Domain Admin.

πŸ…ΎοΈ
0 creds

Assumed-breach start

On the network, no accounts, no prior knowledge of the domain.

πŸ“„
β‰ˆ 17 min

Delivered PDFs

Three reports, rendered. About 1.5 min of that is reporting.

The chain it walked

00:00

Anonymous enumeration

Null-session SMB and SAMR returned the full user list. No login needed.

~05:00

Password spray

A lockout-safe seasonal spray recovered two accounts on the first pass.

~07:00

Dead ends, documented

AS-REP Roast, Kerberoast, and DCSync hit Samba and impacket interop bugs. Recorded as tooling limits, not faked.

β‰ˆ 7 min lost to interop
~12:00

Privilege escalation

An over-broad ACL let a service account force-reset the built-in Administrator's password.

~14:00

Domain Admin

Authenticated as Administrator, created and verified a new account, then cleaned up.

πŸ§ͺ Honest by design. Roughly half the time was dead ends. The two privilege-escalation findings were lab-injected with the owner's approval, and the reports say so plainly rather than presenting a clean win. Read the full write-up β†’

Case studies

Three timed lab engagements, run end to end with the skills in this repo.

Dockernet-pentest
metasploitable2-technical-report.pdfmetasploitable2-stakeholder-report.pdfmetasploitable2-how-to-recreate.pdf

Metasploitable2 β†’ root

β‰ˆ 3 minTo root
β‰ˆ 6 minIncl. PDFs
  • Zero credentials; the target publishes its own access path
  • A second, unauthenticated upload route
Read case study β†’
Samba ADnet-pentest
adlab-technical-report.pdfadlab-stakeholder-report.pdfadlab-how-to-recreate.pdf

Domain Admin from nothing

β‰ˆ 14 minTo Domain Admin
β‰ˆ 17 minIncl. PDFs
  • No credentials; anonymous enumeration, then a password spray
  • Dead ends documented, not hidden
Read case study β†’
Dockerweb-pentest
juiceshop-technical-report.pdfjuiceshop-stakeholder-report.pdfjuiceshop-how-to-recreate.pdf

Juice Shop β†’ admin

β‰ˆ 2.5 minActive
β‰ˆ 5 minIncl. PDFs
  • No account; admin access and customer data exposed
  • Read-only, with three PDFs rendered
Read case study β†’

Install

Drop the skill where Claude Code discovers skills, then just ask for a pentest.

# Per project (both skills)
git clone https://github.com/hassan-algo/open-sesame.git
cp -r open-sesame/.claude/skills/* .claude/skills/

# …then in Claude Code:
"Pentest my web app at https://staging.myapp.example β€” I own it. Start with recon."
"Scan this subnet and enumerate the hosts β€” it's my lab network."

⚠️ Authorized testing only. This skill is for systems you own or have explicit permission to test (your own apps, a signed client engagement, an in-scope bug-bounty target, or a CTF / practice lab). It's designed to refuse unauthorized targets and prefer non-destructive proofs. Using it against systems you don't have permission to test may be illegal β€” you are responsible for staying within scope and the law.