/claude-kit:shannon-ai-pentestfrom Claude Kit SDLC
Drives Shannon (Keygraph), an autonomous white-box AI pentest CLI that reads source code and executes real exploits with proof-of-concept findings. Covers installation, engagement config, and AI provider wiring.
Ships in Claude Kit SDLC. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Shannon (by Keygraph) is an autonomous AI penetration-tester for web apps and APIs. It analyzes the source code to plan attacks, then executes real exploits against the running app and includes only findings it could prove with a working proof-of-concept.
This skill does not bundle Shannon. Shannon is a separate project licensed AGPL-3.0 and distributed on npm as
@keygraph/shannon. You install and run it yourself; this skill only documents how to drive it. Respect Shannon's license and its safety rules.
zap-vapt-scanning).@keygraph/shannon, writing its engagement config, or wiring AI providers.npx @keygraph/shannon setup # configure provider + credentials
npx @keygraph/shannon start -u https://your-app.com -r /path/to/repo
Beta channel: npx @keygraph/shannon@beta. From source: clone, cp .env.example .env,
pnpm install && pnpm build, then ./shannon start -u … -r ….Commands (same for npx @keygraph/shannon … and a source build's ./shannon …):
| Command | Purpose |
|---|---|
setup | Interactive wizard: pick AI provider, store credentials |
start -u <url> -r <repo> | Run a pentest |
status | Check the current run |
logs <workspace> | Tail a run's logs |
stop (--clean) | Stop Shannon (--clean also cleans up) |
workspaces | List all workspaces |
build (--no-cache) | Rebuild the worker image (source build only) |
uninstall | npx mode only |
start flags: -u target URL · -r repo path · -c config YAML · -o copy deliverables to a
custom output dir · -w named workspace.
AI providers — set via the setup wizard, shell export, or .env (env vars win over saved
config). Models are chosen per tier (ANTHROPIC_SMALL_MODEL = summarization, …_MEDIUM_MODEL =
security analysis, …_LARGE_MODEL = deep reasoning):
ANTHROPIC_API_KEY, CLAUDE_CODE_MAX_OUTPUT_TOKENS
(e.g. 64000).CLAUDE_CODE_USE_BEDROCK=1, AWS_REGION,
AWS_BEARER_TOKEN_BEDROCK, tier model IDs.CLAUDE_CODE_USE_VERTEX=1, CLOUD_ML_REGION,
ANTHROPIC_VERTEX_PROJECT_ID,
GOOGLE_APPLICATION_CREDENTIALS, tier model IDs.ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, tier model IDs.Set CLAUDE_ADAPTIVE_THINKING=false only when Shannon's adaptive
thinking mode must be disabled. These four names belong to the external Shannon CLI; they are not
settings for the host rendering this skill.
Engagement config (YAML, passed with -c) — copy Shannon's configs/example-config.yaml, then set:
description, vuln_classes ([injection, xss, auth, authz, ssrf]), exploit (toggle the
exploitation phase), rules_of_engagement, authentication, rules (avoid/focus), report
(min_severity/min_confidence/guidance), and pipeline (max_concurrent_pipelines 1–5).
authentication carries login_type, login_url, credentials (username/password/totp_secret),
optional email_login (for magic-link / email-OTP), an ordered login_flow, and a success_condition.
Login-flow steps use placeholders $username, $password, $totp, $email_address,
$email_password, $email_totp. rules.avoid/focus entries are {description, type, value} where
type is one of url_path, subdomain, domain, method, header, parameter, or code_path
(repo-relative path/glob).
Output — written to a workspace (~/.shannon/workspaces/{host}_{sessionId}/ in npx mode;
./workspaces/ from source) containing session.json, workflow.log, agents/, prompts/, and
deliverables/. The final report is deliverables/comprehensive_security_assessment_report.md.
Pipeline stages (what a run does): Pre-Reconnaissance (source scan) → Reconnaissance (live attack-surface mapping) → Vulnerability analysis (Injection / XSS / SSRF / Auth / Authz agents) → Exploitation (real PoC; unprovable hypotheses are discarded) → Reporting (Markdown).
# 1) one-time: choose provider + store credentials
npx @keygraph/shannon setup
# 2) (optional) an engagement config for an authenticated app
cat > my-app-config.yaml <<'YAML'
description: "Staging build of the web app; non-production, authorized for testing."
vuln_classes: [injection, xss, auth, authz, ssrf]
authentication:
login_type: form
login_url: "https://staging.your-app.com/login"
credentials:
username: "<test-account-email>"
password: "<REPLACE_ME>"
totp_secret: "<REPLACE_ME-base32-secret>"
login_flow:
- "Type $username into the email field"
- "Type $password into the password field"
- "Click the 'Sign In' button"
success_condition:
type: url_contains
value: "/dashboard"
rules:
avoid:
- description: "Do not exercise logout"
type: url_path
value: "/logout"
focus:
- description: "Emphasize the API surface"
type: url_path
value: "/api"
YAML
# 3) run against a NON-production target you are authorized to test
npx @keygraph/shannon start \
-u https://staging.your-app.com \
-r /path/to/your-repo \
-c ./my-app-config.yaml \
-o ./shannon-out
npx/source instead, and keep this skill documentation-only.-r at an untrusted / adversarial codebase — Shannon reads the source into prompts,
so a malicious repo is a prompt-injection vector.status/logs to monitor.[email protected].references/operating-guide.md — fuller operating procedure: provider setup details, the complete
config schema, output layout, monitoring/resume, and the safety checklist.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-pentest, white-box, exploitation, source-analysis, offensive-security
npx claudepluginhub ajyadav013/claude-kit --plugin claude-kit127 skills in this plugin
/accessibility-reviewUI accessibility (WCAG) review — keyboard operability, focus, ARIA semantics, color contrast, touch targets. Returns prioritized fixes. Distinct from performance/visual review./alembic-migrationsAlembic migration setup and patterns for async SQLAlchemy — async engine + run_sync in env.py, autogenerate, RLS/multi-tenant migrations. Use for alembic init, writing migrations, or debugging migration errors./anthropic-vertex-integrationClaude on Vertex AI via the AnthropicVertex SDK — lazy ADC client init, env-based project/region resolution, async helpers, backoff retry. Use when calling Claude via GCP Vertex AI (not direct Anthropic API)./api-and-interface-designStable API and interface design patterns. Use when designing REST/GraphQL endpoints, module boundaries, type contracts between modules or frontend/backend, or changing public interfaces./api-integrationWire the app to a backend API — data fetching, caching, error handling, loading states. Use when connecting to an endpoint, adding a fetch layer, or fixing API error and loading behaviour. React-query detail lives in tanstack-react-query-patterns./api-pagination-filtering-sortingHTTP query parameter conventions for pagination, filtering, sorting, and search with standardized response metadata. Use when designing list endpoints or building repositories that turn query params into SQL.Other plugins' skills for the same job