Skip to content
RoadmapM4P1–P2
100%
Done
44
In progress
0
Planned
0

M4 — Bug bounty program integrations ​

Integrate official researcher-facing APIs first. Program listings are not blanket permission to test. Respect each platform's terms, account access, engagement rules and automated testing restrictions.

BOUNTY — Provider-agnostic integration layer [P1] ​

  • Define a BountyProvider adapter with capability discovery, account connection, program listing, program details, scope retrieval and report synchronization.The BountyProvider contract declares capabilities (account, programs, program details, scopes, reports), implemented read-only for HackerOne with fixture tests (app/core/bounty/, test_bounty_hackerone.py, test_bounty_reports.py).
  • Maintain a normalized Program, ScopeEntry, ScopeSnapshot, ProgramPolicy, ExternalReport, ReportDraft, SyncRun and ProviderAccount model.Accounts, programs (with policy versions), scope snapshots, vault scope entries, external reports, sync runs (bounty_sync_runs) and report drafts (report_drafts), each with its own table (app/models/bounty.py, app/models/bounty_extras.py).
  • Preserve original provider identifiers, source links, raw policy snapshots, fetch timestamps and provider-specific metadata.Programs keep provider ids, links, raw fields and fetch times; scope is snapshotted on every change, and the policy text too: each refresh that finds a different text keeps a new version with its checksum and fetch time, up to 50 (migration c8f3a6d2e9b5, app/services/bounty_research.py, test_bounty_research.py).
  • Distinguish public, private, invited, unavailable and closed engagements when the provider exposes them.Programs keep visibility (public, private, invited, unknown), submissions (open, paused, closed, unknown) and listing (no longer listed) apart (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Distinguish in-scope assets, exclusions, bounty eligibility, excluded weaknesses and specific restrictions; do not merge them into a single boolean.In scope, exclusions, bounty eligibility (with unknown), maximum severity and instructions are kept per item; the weakness types a program lists and the report categories it excludes from rewards are kept apart on the program (app/core/bounty/hackerone.py, migration f5a1c7e3b9d2, test_bounty_weaknesses.py).
  • Implement credential connection checks, least-privilege tokens, secret storage, revocation and account switching.Credentials are checked before they are kept, tokens are read-only researcher API tokens stored encrypted and never returned, refusals update the account status, accounts can be checked, given a new token, removed, and several kept side by side (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Handle pagination, rate limits, retry/backoff, API version changes, access errors and partial sync failures.Pages are followed (never off the API), 429 is retried after Retry-After, refusals map to stable codes; a later page that fails ends the sync partial and marks nothing unlisted; answers without the expected shape fail as api_changed and unknown values are recorded as drift; every read is kept in the sync record (app/core/bounty/hackerone.py, app/services/bounty_runs.py, test_bounty_runs.py).
  • Implement read-only initial synchronization, on-demand refresh and optional scheduled refresh.Read-only sync, on-demand scope refresh, and scheduled refresh of watched programs (PHANTOM_BOUNTY_REFRESH_HOURS, default 12, 0 off) that skips refused accounts (migration f1c4d8e2a6b9, test_bounty_schedule.py).
  • Show scope diffs with additions, removals, changed restrictions and effective timestamps.Each changed refresh stores a snapshot with its fetch time, checksum and the items added, removed and changed (scope, bounty, instructions, max severity), shown in the program panel (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Require manual review before adopting widened permissions; suspend affected jobs when authorization is withdrawn or stale.Narrowing changes apply to the linked vault at once and widening ones wait for Adopt; when a linked program closes, stops being listed or its account is refused, active testing is turned off in the vault with the reason (new active work is refused and says why), its running scans are cancelled and attacks paused, and the user is notified; only the user turns testing back on (app/services/bounty_authorization.py, app/runtime/suspensions.py, test_bounty_authorization.py).
  • Keep separate snapshots for each account and program; never publish or cross-share private engagement information.Programs and snapshots belong to one account; nothing is written to a platform or shared; the endpoints are user-only (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Provide manual import and source-link fallback for fields or actions not available via official APIs.What no API gives is entered by hand: a private engagement takes its rules, a scope file (lines, CSV or JSON) and a source link, and edits keep snapshots and policy versions (app/services/bounty_manual.py, app/core/bounty/scope_file.py, test_bounty_manual.py).
  • Build a searchable Programs directory: provider, status, asset type, eligibility, scope change and saved program filters.Search by name or handle; filters for provider account, submissions, rewards, visibility, listing, vault, reports, badges, asset type of the latest scope, scope changed within N days and widened scope awaiting review; sorting and paging on the backend; saved directory views with pinning (GET /bounty/directory, /bounty/views, test_bounty_directory.py, test_bounty_research.py).
  • Create a local Vault from a selected program with explicit confirmation, scope snapshot and authorization review.Create vault needs an explicit confirmation of the rules and authorisation and uses the latest snapshot; items become scope entries with eligibility and exclusions kept, missing information never read as permission (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Offer watchlists, scope-change inbox, research notes and saved program views.Watched programs with scheduled refresh and a scope-change inbox (test_bounty_schedule.py); private notes per program kept on the workstation; saved directory views (test_bounty_research.py).

H1 — HackerOne integration [P1] ​

Official researcher API: https://api.hackerone.com/getting-started-hacker-api/ and https://api.hackerone.com/hacker-resources/.

  • Connect a researcher account using supported Hacker API credentials.API username and token through basic auth, checked first (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Import accessible programs and program details from the Hacker API.Programs followed across pages, details with policy on refresh (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Import structured scopes, excluded weakness/reward categories and supported weakness metadata.Structured scopes, the program's weaknesses (/weaknesses, with CWE) and its reward exclusions (/scope_exclusions) are read on every refresh; a platform without them leaves the refresh intact (app/core/bounty/hackerone.py, migration f5a1c7e3b9d2, test_bounty_weaknesses.py).
  • Preserve platform scope identifiers, eligibility and source program references.Snapshots keep each item's platform id, type, identifier, submission and bounty eligibility; vault entries carry import:hackerone and the item id in their note; programs keep their id, handle and link (app/core/bounty/, migration e8b3c1d6f5a7, test_bounty_hackerone.py, test_bounty_programs.py; docs/guides/programs.md).
  • Synchronize the researcher's reports and report details where accessible.Reports sync read-only with id, title, program, severity, times, link and raw fields (the report body is not stored); later syncs update states (app/services/bounty_reports.py, migration a2d5e9f3b7c1, test_bounty_reports.py).
  • Link a local finding to its external report ID and platform state; preserve unknown states without lossy mapping.A finding links to a synced report and shows its platform state as given; states are stored verbatim, never mapped onto finding states (app/services/bounty_reports.py, migration a2d5e9f3b7c1, test_bounty_reports.py).
  • Provide local report preparation and a preview with scope, evidence, impact and redaction checks.Each finding gets a local report draft checked live for scope against the latest snapshot, program state, evidence, steps, impact, severity and credentials in the text, with a Markdown preview listing the evidence (app/core/bounty/readiness.py, app/services/report_drafts.py, test_report_drafts.py).
  • Evaluate documented report intents and attachment operations; expose only supported actions for the current credentials.Evaluated in docs/design/report-handoff.md: HackerOne report intents and Bugcrowd remote drafts are write operations; adapters declare read-only capabilities only, and reports are prepared locally and handed off by the user.
  • Keep final report submission a deliberate, separately confirmed human action. Never submit automatically from a scan or agent.Phantom has no submission path at all: adapters are read-only, the bounty endpoints are user-only and refuse agents, and submission stays on the platform (app/services/bounty_reports.py, migration a2d5e9f3b7c1, test_bounty_reports.py).
  • Optional: import accessible Hacktivity metadata and personal earnings/payout history; enforce disclosure and access restrictions.Disclosed Hacktivity of a program and the account's balance, earnings and payouts are read on demand and never stored; only items marked disclosed are shown, and other platforms answer that they do not offer it (app/core/bounty/hackerone.py, migration f5a1c7e3b9d2, test_bounty_weaknesses.py).
  • Add fixture-based contract tests and a documented opt-in real-account smoke test that avoids creating external reports.Fixture tests of the adapter and the whole flow (test_bounty_hackerone.py, test_bounty_programs.py); python -m scripts.bounty_smoke runs against a real account only when configured, through a guard that refuses every method but GET before the network (backend/scripts/bounty_smoke.py, test_bounty_smoke.py, docs/guides/programs.md).

BC — Bugcrowd integration [P1] ​

Official researcher API: https://docs.bugcrowd.com/hacker-api/getting-started/ and https://docs.bugcrowd.com/hacker-api/latest/.

  • Connect a Hacker API-enabled, identity-verified researcher account; show unavailable access states clearly.Accounts connect with a Hacker API token (Authorization: Token <username>:<password>), checked first; refused, expired, revoked, disabled-API, unverified-identity and missing-scope answers each get their own account status (app/core/bounty/bugcrowd.py, tests/bugcrowd_fixtures.py, test_bounty_bugcrowd.py).
  • Discover accessible engagements and retrieve engagement details and scope.Engagements are listed with offset paging and kept as programs (visibility, state and rewards apart), details and scope are read per engagement (app/core/bounty/bugcrowd.py, tests/bugcrowd_fixtures.py, test_bounty_bugcrowd.py).
  • Normalize target categories and exclusions without treating missing information as permission.Target categories map to asset types and vault entries (website, api, network as network assets; android, ios as apps); a group's in-scope state applies to its targets and a target without a stated state is kept out of scope with a note (app/core/bounty/bugcrowd.py, tests/bugcrowd_fixtures.py, test_bounty_bugcrowd.py).
  • Synchronize available submissions, details and activity history.Submissions sync with Bugcrowd's own states, severity and engagement; a submission's details and activity (include=activities) are read on demand and not stored (app/core/bounty/bugcrowd.py, app/core/bounty/activity.py, test_bounty_bugcrowd.py, test_bounty_activity.py).
  • Use read:engagement_list and read:submissions as applicable; avoid requesting unnecessary privileges.Only the two read scopes are used and asked for in the connect dialog; a missing one is reported as its own status (app/core/bounty/bugcrowd.py, tests/bugcrowd_fixtures.py, test_bounty_bugcrowd.py).
  • Enable remote draft creation only if write:draft_submissions is available and explicitly granted; Bugcrowd Researcher Success must enable write access for eligible accounts.Remote drafts are not created at all: the adapter only reads (a test proves every request is a GET), and reports are prepared locally and handed off (docs/design/report-handoff.md, test_bounty_bugcrowd.py).
  • Treat remote drafts as drafts, not submitted reports. Keep final submission in the authorized platform workflow; provide a deep link/manual handoff.Phantom keeps drafts local and never submits; the program's page is opened for a manual handoff and a handed-off draft records only that the user said they submitted (app/services/report_drafts.py, test_report_drafts.py).
  • Handle identity verification, disabled API, expired/revoked credentials and insufficient-scope responses distinctly.Each of Bugcrowd's error codes maps to its own stable code and account status; account refusals suspend testing in linked vaults (app/core/bounty/bugcrowd.py, tests/bugcrowd_fixtures.py, test_bounty_bugcrowd.py).
  • Provide fixture-based contract tests for scope changes, pagination, errors and draft capability gating.A stand-in built from Bugcrowd's documented behaviour covers offset paging and a partial page failure, every error code, rate limiting, a scope change diff and GET-only traffic (app/core/bounty/bugcrowd.py, tests/bugcrowd_fixtures.py, test_bounty_bugcrowd.py).

PROVIDERS — Additional platforms [P2] ​

  • Evaluate Intigriti, YesWeHack, and other relevant platforms independently for documented researcher API access, terms and field coverage.Evaluated in docs/design/platforms.md: HackerOne and Bugcrowd document researcher APIs; Intigriti and YesWeHack document none a researcher can use with their own credentials, so their programs are recorded as private engagements.
  • Implement adapters only for permitted capabilities; do not substitute undocumented private endpoints or bypass access restrictions.Adapters exist only for the documented researcher APIs and declare their capabilities; what a platform does not offer is refused (409), and nothing calls undocumented endpoints, reuses sessions or scrapes (docs/design/platforms.md, test_bounty_weaknesses.py).
  • Support custom/private engagements with manual authorization records and scope files.Private engagements record who authorized the testing, the reference and the dates (which become the vault's engagement window), with a scope file and rules, under a local account that never reaches a platform (app/services/bounty_manual.py, app/core/bounty/scope_file.py, test_bounty_manual.py).
  • Support provider-specific report templates, status mappings and source links.Drafts follow each platform's sections, platform states map to outcomes per platform for counting (unknown ones stay "other"), and submission and report links are per platform (app/core/bounty/report_formats.py, test_report_formats.py, test_report_drafts.py).

BOUNTY-UX — Researcher cockpit [P2] ​

  • Program dashboard: current engagement rules, scope version, research progress and latest changes.The program panel opens with the scope version and latest change, the engagement rules in force in its vault (active testing or why it is off, window, budget) and the research done there (app/services/bounty_insights.py, test_bounty_insights.py).
  • Cross-program research overview with last activity, findings by status and personal notes.The Research section lists every program with a vault by recent activity, with findings by status, report drafts and personal notes (app/services/bounty_insights.py, test_bounty_insights.py).
  • Personal bounty analytics using actual authorized account data: report outcomes, duplicates, accepted findings and recorded rewards.Report outcomes by the platforms' own states and severity, accepted and duplicate counts, and rewards as the platforms recorded them, from the accounts' synced data only (app/services/bounty_insights.py, test_bounty_insights.py).
  • Keep estimated reward ranges distinct from confirmed amounts and avoid promising rewards for findings.Phantom shows no estimates at all: the only amounts are those a platform reported as earned, labelled so, and drafts never claim acceptance (app/services/bounty_insights.py, test_bounty_insights.py).
  • Display report readiness, missing evidence and external submission state; never imply a draft has been accepted.The draft panel shows each check and what blocks it, including missing evidence; "handed off" records only that the user said they submitted, and the platform state appears only from synced reports (PReportDraftPanel.vue, test_report_drafts.py).

Exit gate: Both primary providers pass mocked contract tests, account capability checks and authorized read-only smoke tests where access is available. Scope removal blocks affected operations, private records remain isolated, and no external report can be sent unintentionally.