bb-huge
CLAUDE.md22 starsChanged 6 months agoMITView on GitHub
bb-huge is two things wired together over MCP: 1. Portal (app/) — a Flask + SQLAlchemy (SQLite) web app that stores bug bounty findings, programs, recon data, observations/hypotheses, evidence, assets, and endpoints. It has a dashboard UI and a REST API. 2. Skill layer (skills/bb-huge/) — a SKILL.md persona + reference docs that, when loaded into an AI agent (Claude Code, gemini-cli, codex, etc.), turns it into a disciplined bug bounty hunter that calls the portal's API via MCP tools…
- Reads credentials
- Installs packages
In this repository353 other files it gives its agents.
- bb-hugeSkill
- 2fa-multi-factor-bypassSkill
- 401-403-bypass-techniquesSkill
- Access Control — Complete Deep DiveSkill
- active-directory-acl-abuseSkill
- active-directory-asreproastingSkill
- active-directory-certificate-servicesSkill
- active-directory-dcsync-attackSkill
- active-directory-full-attack-chainSkill
- active-directory-golden-ticketSkill
- active-directory-kerberoastingSkill
- active-directory-kerberos-attacksSkill
- ad-asreproast-attackSkill
- ad-assessmentSkill
- ad-cs-esc1-abuseSkill
- ad-dcsync-attackSkill
- ad-pass-the-hashSkill
- advanced-sql-injection-sqliSkill
- ai-agent-tool-abuse-and-privilege-escalationSkill
- ai-data-extraction-via-ssrfSkill
- ai-data-poisoning-model-skewingSkill
- ai-data-poisoningSkill
- ai-jailbreak-obfuscation-ciphersSkill
- ai-jailbreak-prompt-injectionSkill
- ai-jailbreak-system-promptsSkill
- aikido-triageSkill
- ai-ml-securitySkill
- ai-pair-hunting-with-claudeSkill
- ai-prompt-leakingSkill
- ai-redteamSkill
- ai-report-writing-guardrailsSkill
- amend-skillSkill
- amsi-bypassSkill
- analyze-cveSkill
- android-apk-reverse-engineeringSkill
- android-pentesting-tricksSkill
- anti-debugging-techniquesSkill
- api-auth-and-jwt-abuseSkill
- api-authentication-bypassSkill
- api-authorization-and-bolaSkill
- api-enumeration-fuzzing-discoverySkill
- api-mass-assignment-exploitationSkill
- api-rate-limit-bypass-techniquesSkill
- api-recon-and-docsSkill
- api-secSkill
- api-securitySkill
- API Testing — Deep DiveSkill
- arbitrary-write-to-rceSkill
- authbypass-authentication-flawsSkill
- auth-bypassSkill
- Authentication — Complete Deep DiveSkill
- auth-secSkill
- authz-bypassSkill
- av-edr-evasion-techniquesSkill
- aws-cloud-penetration-testingSkill
- aws-cognito-abuseSkill
- aws-iam-privilege-escalationSkill
- aws-imdsv2-ssrf-bypassSkill
- aws-metadata-ssrf-exploitationSkill
- aws-metadata-ssrfSkill
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 97
If you add debug output, use the logging module already configured here — never print().
- Very specific: line 98
Every tool function is a thin wrapper that calls api_get/api_post/api_patch/api_put/api_delete against BB_HUGE_URL (default …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this repo is
bb-huge is two things wired together over MCP:
- Portal (
app/) — a Flask + SQLAlchemy (SQLite) web app that stores bug bounty findings, programs, recon data, observations/hypotheses, evidence, assets, and endpoints. It has a dashboard UI and a REST API. - Skill layer (
skills/bb-huge/) — aSKILL.mdpersona + reference docs that, when loaded into an AI agent (Claude Code, gemini-cli, codex, etc.), turns it into a disciplined bug bounty hunter that calls the portal's API via MCP tools as it works.
mcp_server.py is the bridge: a stdio MCP server that translates ~35 MCP tool calls
(bb_create_finding, bb_get_program_brief, ...) into REST calls against the running Flask portal.
Any MCP-compatible agent can drive the portal through it.
skills/curated/ is a separate, large (350+) bundle of community security skills (per vuln class,
per platform, per technique) that get lazy-loaded on demand — not core to the portal itself.
Running the portal
cp .env.example .env # set SECRET_KEY and DEV_KEY before anything else
python -m venv .venv && source .venv/bin/activate # (or .venv\Scripts\activate on Windows)
pip install -r requirements.txt
python run.py # serves on :5000 (waitress in prod, Flask dev server if FLASK_DEBUG=1)Docker: docker compose up -d (same port).
Auth is a single shared DEV_KEY, not per-user accounts:
- Web UI: session cookie set via
/login(form postsdev_key, compared inapp/routes/auth.py). - REST API:
X-Dev-Keyheader (or?dev_key=) checked inapp/routes/api.py, required on every/api/v1/*call.
Tests
python -m unittest tests/test_api.py -v # whole file
python -m unittest tests.test_api.V2ApiTests.test_program_brief_includes_new_entities # single testTests spin up a real create_app() instance against a temp SQLite DB + temp upload dir per test
(see TestConfig / setUp in tests/test_api.py) — no mocking of the DB layer. Follow this pattern
(fresh app + tempdir per test) for new API tests rather than reusing a shared instance.
Architecture inside app/
app/__init__.py— app factory (create_app). Registers all blueprints, runsdb.create_all()andrun_migrations()on every startup (see below), and injects sidebar stats into every template viacontext_processor.app/models.py— all 11 models in one file (Finding,Program,Attachment,ReconEntry,Note,WebhookConfig,TargetContext,Observation,Hypothesis,EvidenceRecord,Asset,Endpoint), plus the enum-like constants (SEVERITIES,STATUSES,AGENTS,PLATFORMS,RECON_CATEGORIES,WEBHOOK_EVENTS,ASSET_KINDS, ...) and color-mapping dicts used by Jinja.app/migrations.py— hand-rolled additive schema migrations (no Alembic). Runs automatically on every app start insidecreate_app(). When adding a column/table, add a migration function here rather than relying ondb.create_all()alone (it won't alter existing tables).app/routes/:auth.py— dev-key login/logout, session-basedlogin_requireddecorator for UI routes.findings.py— web UI CRUD for findings (list/detail/form/upload/CSV export/report-pack).programs.py— web UI + logic for programs and their nested entities (observations, hypotheses, evidence, assets, recon).api.py(~2000 lines) — the entire REST API (/api/v1/..., ~45 endpoints), all gated by theX-Dev-Keycheck at the top of the file. This is whatmcp_server.pytalks to exclusively — UI routes infindings.py/programs.pyare session-authed and not used by the MCP layer.settings.py— webhook config (Discord/Telegram) and note management.
app/utils.py— upload validation and webhook dispatch (fired on finding create/status-change events defined inWEBHOOK_EVENTS).
The data model / signal pipeline
Findings aren't the only unit of record. There's a deliberate promotion chain used to capture partial signal before it's a confirmed bug:
Observation (raw signal) --promote--> Hypothesis (candidate) --promote--> Finding (confirmed)Each promoted record keeps a back-reference to where it came from, so a Finding can trace back through its Hypothesis to the original Observation and any linked EvidenceRecord. Programs, Assets, and Endpoints are separate first-class entities that findings/recon attach to — a Program has many Assets, an Asset has many Endpoints, and ReconEntry rows (subdomains, params, credentials, tech) hang off a Program directly.
Findings also carry a field (web / mobile / binary / source_code) that determines which
methodology/report-template reference the skill layer loads — this is not just metadata, it changes
agent behavior (see skills/bb-huge/SKILL.md "FIELD DISPATCH").
mcp_server.py
- stdio transport; all logging goes to
mcp_server.log, never stdout/stderr, because MCP clients (gemini-cli etc.) treat any non-JSON on stdout as a protocol error and drop the connection. If you add debug output, use theloggingmodule already configured here — neverprint(). - Every tool function is a thin wrapper that calls
api_get/api_post/api_patch/api_put/api_deleteagainstBB_HUGE_URL(defaulthttp://127.0.0.1:5000) with theDEV_KEYenv var — it has no direct DB access and no business logic of its own. If the API shape changes inapp/routes/api.py, update the corresponding tool wrapper here. - Requires the Flask portal to already be running (
python run.py) — the MCP server is just an API client, not a standalone service.
Editing the skill layer (skills/bb-huge/)
SKILL.mdis the persona + SOPs (SOP-0 through SOP-6) loaded into an agent's context on/bb-huge. It's long (~1000 lines) and prescriptive by design — read it before changing agent behavior, since instructions like "capture first, enrich later" and the field-dispatch table are load-bearing for how findings get logged.skills/bb-huge/references/*.mdare lazy-loaded reference docs (methodology per field, report templates per field, recon playbook, standards, scheduled-mission routing). Keep new methodology content here rather than growingSKILL.mdfurther.skills/bb-huge/scripts/bb.pyandbb-dump-attachments.pyare standalone CLI helpers that hit the same/api/v1REST API usingBB_HUGE_URL/DEV_KEYenv vars — same auth contract asmcp_server.py.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

