Bounty hunting

From PurpleAILAB/Decepticon · View interactive version

Bounty hunting is an AI agent skill from the GitHub repository PurpleAILAB/Decepticon. Bug bounty white-box hunting methodology. Load when the target is an open-source project with a security advisory program, bug bounty, or responsible disclosure policy.

How to use this skill

Skill file

Bug Bounty Hunting Methodology

You are not scanning. You are reading code, mapping architecture, and proving

exploitability. Volume is the enemy — signal is the metric. Every report must

survive triage by an experienced security engineer.

Target Assessment

The selected program and workflow determine effort allocation. Useful context

for interpreting a supplied target includes:

  1. Exposure context: known deployments and dependency reach. Popularity alone

does not establish technical impact or a reward multiplier.

  1. Trust boundary complexity: Does the app load config from untrusted sources?

Handle plugins? Parse user-controlled serialized data? Multi-tenant auth?

Complex trust boundaries = more attack surface.

  1. Security advisory history: Check github.com/advisories?query=<package>.

Projects that accept and credit researchers will work with you. Projects with

zero advisories are either very secure or don't have a disclosure process.

  1. Reward program: HackerOne, Bugcrowd, Immunefi, GitHub Security Advisories,

Google VRP. Check scope, excluded vuln classes, and reward tiers.

Record the assessment as a node:

kg_add_node("repo", "<name>", props={"stars": N, "downloads_weekly": N,
  "has_security_policy": true, "advisory_count": N, "bounty_program": "hackerone"})

White-Box Methodology

This is the core loop. Fork. Read. Trace. Prove.

Step 1 — Map the project

find /workspace/target -name 'package.json' -o -name 'pyproject.toml' \
  -o -name 'go.mod' -o -name 'Cargo.toml' -o -name 'composer.json' | head -20

Identify: language, framework, entry points, config loading, auth middleware.

Step 2 — Map trust boundaries

Where does untrusted input enter the system? Trace these sources:

For each source, add an ENTRYPOINT node:

kg_add_node("entrypoint", "POST /api/upload body", props={"type": "http",
  "file": "routes/upload.py", "line": 42})

Step 3 — Identify crown jewels

What is the most valuable thing an attacker could reach?

Add CROWN_JEWEL nodes for each.

Step 4 — Trace source → sink

For each entrypoint, trace the data flow to dangerous sinks:

Use semgrep, grep, or bash to find sinks, then manually trace backwards

to see if untrusted input reaches them without sanitization.

Step 5 — Prove or discard

Every finding MUST go through validate_finding with:

An unreproduced claim remains unverified. Distinguish an unavailable prerequisite

from a control that refutes the hypothesis; preserve the evidence and limitations.

Mechanism families

These are investigation categories, not a universal payout or priority ranking:

  1. Remote Code Execution — deserialization, template injection, command injection,

unsafe eval/exec, shell: true with user input.

  1. Access Control Bypass — IDOR, BOLA, missing ownership validation, broken

function-level authorization.

  1. Authentication Bypass — token leakage, session fixation, OAuth state confusion,

JWT alg=none, password reset flaws.

  1. Path Traversal / File Write — directory escape in upload/download handlers,

session file storage with crafted IDs, zip slip.

  1. Server-Side Request Forgery — redirect bypass, DNS rebinding, cloud metadata

access via internal URL parameters.

  1. Injection — SQLi, XSS (stored > reflected), LDAP injection, GraphQL injection.
  2. Information Disclosure — API key leakage, user enumeration via error codes,

schema/debug endpoint exposure, directory listing.

Report Title Convention

Every report title MUST follow: [Impact] via [Mechanism] in [Component]

Good:

Bad:

Interpretation and disposition

Keep hypotheses separate from reproduced effects and justify severity from the

demonstrated impact. Scope exclusions forbid unauthorized testing. Eligibility,

novelty, internal report completion and external disclosure are separate workflow

decisions; this technical reference does not authorize submission.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.