Skip to content

Security: usebrainchain/brainchain

SECURITY.md

Security policy

Reporting a vulnerability

Please report vulnerabilities privately. Do not open a public issue, discussion or pull request.

Include the affected contract or component, the impact you see, and steps or a test that reproduce it. A failing Foundry test is the most useful form.

What to expect

  • We acknowledge reports within 3 business days.
  • We send an assessment and a planned fix date within 10 business days.
  • We credit reporters in the advisory unless they prefer otherwise.

Please give us reasonable time to fix an issue before disclosing it, and do not test against networks or funds you do not own.

Scope

In scope: the contracts in src/ that are in use on mainnet, with their documented behaviour in docs/; the brain service and its API; the x402 desk and the payments it takes and returns; and any bug in BrainChain's tools that could take or lock funds or expose a key.

Out of scope:

  • contracts and code that are not deployed on mainnet, and retired contract sets;
  • contracts whose source is not in this repository;
  • issues that need a key BrainChain holds, such as the admin, the guardian or a deployer key, or a compromised brain key (the key that records BrainChain's decisions) beyond what the contracts bound;
  • issues where the only funds at risk are the caller's own;
  • scanner findings without a demonstrated impact;
  • third-party services.

Bounty

The bounty is open until 23:59 UTC on 31 January 2027, on the terms below. Results of the first round (7 to 22 November 2026) are at https://docs.usebrainchain.com/security#results-7-to-22-november-2026.

What a report earns depends on what its proof shows.

What the report proves Award
A fork test or a testnet script that takes or locks someone else's funds Up to $1,000
A confirmed vulnerability in scope, with no working exploit Up to $250
Hardening: a missing check or an edge case with no path to funds Credit in the advisory, no payment

Funds include anything a BrainChain tool sends, signs or approves without its user asking, and a key it exposes. Bugs in the tools, docs and site that cannot take or lock funds belong to the bug hunt, which has no open round; until one opens, report them in an issue on the affected repository.

We pay at most $1,500 in awards in a calendar month. Awards confirmed beyond that are paid in the following months, in the order we confirmed them.

The first private report of each root cause earns the award. A vulnerability we already know about, or one already made public, does not earn one. We decide whether a report qualifies and what it pays. These terms apply to reports received from 7 November 2026 to 31 January 2027.

We pay in USDC on Base or USDG on Robinhood Chain, to a wallet you name, once the fix is live or 90 days after we confirm the report, whichever comes first. The bug hunt's rules on eligibility, sanctions, tax, use of reports and good-faith testing apply here too.

Status

BrainChain mainnet holds user funds in escrow. The contracts are open source and have not had an external audit.

There aren't any published security advisories