Skip to content
Back to skills

792 Shannon Pentest

ASecurity

AI-driven white-box penetration testing methodology adapted from Shannon (Keygraph). Follows a 5-phase pipeline (Pre-Recon, Recon, Vulnerability Analysis, Exploitation, Reporting) with structured deliverables. Use when the user asks for security audit, penetration testing, vulnerability assessment, or exploit validation of web applications, APIs, or source code.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
securitypythongobashsqltestinggitapisecurity

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add winlem2024/workbuddy-skills --skill 792-shannon-pentest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 792 Shannon Pentest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 792 Shannon Pentest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/winlem2024-792-shannon-pentest/badge)](https://www.skillsdirectory.com/skills/winlem2024-792-shannon-pentest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shannon-pentest
description: AI-driven white-box penetration testing methodology adapted from Shannon (Keygraph). Follows a 5-phase pipeline (Pre-Recon, Recon, Vulnerability Analysis, Exploitation, Reporting) with structured deliverables. Use when the user asks for security audit, penetration testing, vulnerability assessment, or exploit validation of web applications, APIs, or source code.
---

# Shannon Pentest Methodology

**Principle**: No Exploit, No Report. Only report vulnerabilities that have been practically exploited or validated.

**Methodology derived from Shannon** (AGPL-3.0, Keygraph), adapted for Kimi CLI.

## 5-Phase Pipeline

Execute phases sequentially. Each phase saves a deliverable to `.shannon/deliverables/`. Do not skip phases unless the user explicitly requests a subset.

```
Pre-Recon → Recon → Vulnerability Analysis → Exploitation → Reporting
```

### Phase 1: Pre-Reconnaissance
**Goal**: External footprinting + initial source-code mapping.

1. Read [references/pre-recon.md](references/pre-recon.md).
2. If target is a live web app/API:
   - Run `nmap`, `subfinder`, `whatweb` via Bash.
   - Capture open ports, subdomains, tech stack fingerprints.
3. If source code is available:
   - Grep for hardcoded secrets (`API_KEY`, `SECRET`, `password`, `token`).
   - Identify entry points (controllers, routes, handlers).
4. Save deliverable: `python .claw/skills/shannon-pentest/scripts/save-deliverable.py --type PRE_RECON --content "..."`

### Phase 2: Reconnaissance
**Goal**: Browser automation + attack-surface mapping.

1. Read [references/recon.md](references/recon.md).
2. Use Playwright (via Bash or configured MCP) to:
   - Navigate the application, authenticate if credentials/TOTP are provided.
   - Map all forms, links, API endpoints, and URL parameters.
   - Capture screenshots of critical flows.
3. Correlate dynamic findings with static code analysis.
4. Save deliverable: `--type RECON`

### Phase 3: Vulnerability Analysis
**Goal**: Identify concrete vulnerability hypotheses.

1. Read [references/vuln-analysis.md](references/vuln-analysis.md) and [references/schemas.md](references/schemas.md).
2. Launch **up to 5 parallel `Agent` subtasks** (one per vulnerability class):
   - `injection-vuln` (SQLi, Command Injection, SSTI, etc.)
   - `xss-vuln` (Stored/Reflected/DOM XSS)
   - `auth-vuln` (Broken Authentication, Session Management)
   - `ssrf-vuln` (Server-Side Request Forgery)
   - `authz-vuln` (Broken Access Control, IDOR)
3. Each agent must output a structured JSON queue matching the schema in [references/schemas.md](references/schemas.md).
4. Save deliverables: `injection_analysis_deliverable.md`, `xss_analysis_deliverable.md`, etc. (use `--type INJECTION_ANALYSIS`, `XSS_ANALYSIS`, etc.)

### Phase 4: Exploitation
**Goal**: Validate hypotheses from Phase 3.

1. Read [references/exploitation.md](references/exploitation.md).
2. For each non-empty vulnerability queue from Phase 3, launch a focused `Agent` subtask to attempt practical exploitation.
   - Use `Bash` to run exploit payloads (curl, playwright scripts, custom Python).
   - Capture evidence: HTTP responses, screenshots, source-code diffs.
3. If a hypothesis cannot be exploited after reasonable effort, mark it `unconfirmed` and drop it from the report.
4. Save deliverables: `*_exploitation_queue.json` and `exploitation_evidence/` folder.

### Phase 5: Reporting
**Goal**: Compile only validated findings into a professional report.

1. Read [references/reporting.md](references/reporting.md).
2. Aggregate all exploitation evidence from `.shannon/deliverables/`.
3. Generate a markdown report with:
   - Executive Summary
   - Risk ratings (CVSS or Critical/High/Medium/Low)
   - Step-by-step reproduction instructions
   - Impact analysis
   - Remediation guidance
4. Save deliverable: `--type REPORT` (saved as `report.md`).

## Helper Scripts

### TOTP Generation
For 2FA/MFA login flows:
```bash
python .claw/skills/shannon-pentest/scripts/generate-totp.py --secret BASE32SECRET
```

### Save Deliverable
Always use the provided script to persist phase outputs:
```bash
python .claw/skills/shannon-pentest/scripts/save-deliverable.py --type <TYPE> --content "..."
# Or from file:
python .claw/skills/shannon-pentest/scripts/save-deliverable.py --type <TYPE> --file-path /path/to/content.md
```

**Valid types**: `PRE_RECON`, `RECON`, `INJECTION_ANALYSIS`, `XSS_ANALYSIS`, `AUTH_ANALYSIS`, `SSRF_ANALYSIS`, `AUTHZ_ANALYSIS`, `EXPLOITATION_EVIDENCE`, `REPORT`

## Workspace Conventions

- All deliverables live in `./.shannon/deliverables/` (created automatically).
- Use `git init` inside `.shannon/deliverables/` if you want checkpoint/rollback support.
- Maintain a scratchpad directory `.shannon/scratchpad/` for temporary files, screenshots, and raw tool output.

## Error Handling

- If a tool (nmap, playwright, etc.) is not installed, attempt to install it or ask the user.
- If an `Agent` subtask fails, retry once with a more focused prompt. If it still fails, note the failure in the deliverable and continue.
- Never halt the entire pipeline because one vulnerability-class agent failed.

Files in this skill

  • SKILL.md5 KB
  • _skillhub_meta.json757 B
  • references/exploitation.md2.3 KB
  • references/pre-recon.md1.5 KB
  • references/recon.md1.6 KB
  • references/reporting.md1.8 KB
  • references/schemas.md2.4 KB
  • references/vuln-analysis.md2.6 KB
  • scripts/generate-totp.py1.7 KB
  • scripts/save-deliverable.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.