To set up a bug bounty for a Solana program, fix the scope (program addresses and source), define severity levels, set rewards that grow with the value at risk, write the rules and a safe harbor, publish a contact path, and agree who triages and pays. Launch it after the audit and fix review, and keep it running while the program holds funds.
| Step | What to decide | Output |
|---|---|---|
| 1. Scope | Which program addresses and which repository commit | A list of in-scope programs, plus what is out of scope |
| 2. Severity | What counts as critical, high, medium and low | A short severity table with examples |
| 3. Rewards | How much each level pays and the maximum | A reward table tied to the value at risk |
| 4. Rules | How researchers must test and report | Rules: no mainnet exploits, no user data, proof of concept |
| 5. Safe harbor | What you promise to researchers who follow the rules | A written statement, reviewed by a lawyer |
| 6. Contact | Where a report goes and who reads it | A security.txt in the program and a policy page |
| 7. Triage and pay | Who answers, how fast, from which wallet | A named owner, a response target, a funded reserve |
| 8. Fix and disclose | How a confirmed bug is fixed and published | A path to fix review, upgrade and a public note |
Run the bounty after the audit and fix review, not instead of them.
- A bounty is a public promise to pay for valid reports. Write the promise down before you announce it.
- List the program addresses and the commit in scope, and what is out of scope.
- Scale rewards with the value at risk, so reporting is clearly better than exploiting.
- Embed a security.txt in the program so a report reaches a person and not a public thread.
- Decide in advance who triages, who pays, and how a fix is shipped through your upgrade authority.
A bounty page that says "we pay for bugs" is not a bug bounty. Researchers want to know what is in scope, what a report earns, how fast you answer and whether they are safe if they follow your rules. This guide covers the setup for a Solana program, step by step. If you are still deciding between a bounty and an audit, read audit vs bug bounty first. The short version: audit first, bounty after.
1. Define the scope
List every program address that is in scope, the repository and the commit that matches what runs on mainnet, and the programs that are not yours, such as the token program or an oracle you only read from. Researchers should be able to confirm that the code they read is the code on chain, so publish a verifiable build if you can. Also say what is out of scope: websites and front ends, third-party dependencies, attacks that need a stolen key, and issues already reported in an audit.
2. Write severity levels
Use four levels and give one example for each, in your own terms. Severity should follow the impact on users and funds, not how clever the bug is.
- Critical: direct loss or theft of user funds, or permanent lock of funds, with no special conditions. Example: a missing signer check that lets anyone withdraw from a vault.
- High: loss of funds under limited conditions, or a bug that breaks a core invariant. Example: a rounding error that lets an attacker drain small amounts repeatedly.
- Medium: temporary lock of funds, denial of service on one function, or loss of yield. Example: an instruction that fails for some account states.
- Low: minor issues without loss of funds. Example: wrong error codes or missing events.
3. Set rewards that match the risk
A reward is a decision, not a number to copy. If the most a researcher can earn is far below what an attacker could take, the bounty invites the wrong outcome. Scale the critical reward with the funds the program can lose, set a maximum you can actually pay, and say how it is calculated. State the currency, and hold the reserve in the treasury before you announce the bounty. A promise you cannot pay damages your reputation with researchers quickly.
4. Write the rules
- Test safely: ask researchers to prove the bug on a local validator with cloned accounts or on devnet, and not to exploit it on mainnet or touch the funds of other users.
- Proof of concept: require steps to reproduce, ideally a test, so you can verify the bug in minutes.
- Private reporting: ask for reports through the private contact only, and for no public disclosure until the fix is live.
- No user data and no social engineering: rule out phishing, attacks on staff and access to personal data.
- Duplicates: the first valid report is paid, and later ones on the same bug are not.
5. Add a safe harbor
A safe harbor is a written promise not to take legal action against researchers who follow the rules. Without it, a careful researcher may decide that reporting is not worth the risk. The wording depends on where you operate, so have a lawyer review it. This is not legal advice.
6. Publish the contact path
A Solana program can embed a security.txt in its own binary. Explorers show it on the program page when it is present, and it gives researchers a contact, a link to your policy and the source. The solana-security-txt crate provides a macro for it:
use solana_security_txt::security_txt;
#[cfg(not(feature = "no-entrypoint"))]
security_txt! {
name: "Your Program",
project_url: "https://example.com",
contacts: "email:security@example.com",
policy: "https://example.com/security"
}Use a monitored address, not a personal inbox. Our free Solana program upgrade authority checker shows whether a program address has a security.txt.
7. Decide who triages and who pays
- A named owner: one person who reads reports, with a backup. Reports sent to a shared inbox with no owner get lost.
- A response target: for example, acknowledge within two business days and say so in the policy. Then keep to it.
- An engineer who can reproduce: someone who knows the code and can confirm severity quickly.
- A payment path: the wallet or multisig that pays, who signs, and how long payment takes after the fix.
8. Fix, review and disclose
Reproduce the bug, patch it, get the patch reviewed (see fix review), deploy it through your upgrade process and then pay the researcher. Agree a disclosure date with them and publish a short note after the fix is live. Researchers share which programs treat them well.
When to launch it
Launch the bounty after the audit and fix review, at or shortly after mainnet launch, and before the value locked grows. Update the scope whenever the code changes, and re-audit major upgrades. Before mainnet, also go through the Solana pre-launch security checklist. To find a reviewer, browse the Solana smart contract audit providers we have checked, and see the glossary entry for bug bounty.
Frequently asked questions
How do I set up a bug bounty for a Solana program?
Fix the scope (program addresses and the matching commit), define severity levels, set rewards that grow with the value at risk, write the testing and reporting rules and a safe harbor, publish a contact path such as a security.txt, and name who triages and pays. Launch it after the audit and fix review.
What is a security.txt on Solana?
A small block of contact data embedded in a program binary, usually with the solana-security-txt crate. It can hold a contact, a policy link, the source code location and the auditors, and explorers show it on the program page when it is present.
Where should researchers test a bug in a Solana program?
On a local validator with cloned accounts or on devnet, not on mainnet. Say so in the rules and ask for steps to reproduce, ideally a test, so your team can verify the bug quickly.
Who should receive bug bounty reports?
A named person with a backup, reached through a monitored address that is published in the policy and the security.txt. State a response target and keep to it.
What happens after a valid report?
Reproduce the bug, patch it, have the patch reviewed, deploy it through your upgrade process, pay the researcher and publish a short note on the agreed date. Plan the emergency fix path in your incident response plan before the first report.
Need an audit before the bounty?
Tell us what you are launching. We suggest audit providers we checked by hand, with a reason for each. Free for teams.
Get matched →Looking for help with this? Browse Solana smart contract audit providers, or describe your project and get matched for free.
Related reading
- Solana oracle risks: eight checks for protocol teamsSolana oracle risks for protocol teams: stale prices, wrong feed IDs, fake accounts, confidence intervals, exponents, thin sources, update choice and outages.
- Solana verifiable builds explained: what they prove and how to set one upWhat a Solana verifiable build proves and what it does not, how to set one up with solana-verify and Docker, multisig upgrade authorities, hash mismatches and how to check a program.
- Solana audit subsidy programs: how they work and how to applyHow Solana audit subsidy programs work: who decides, what they usually pay, how cohorts and vouchers work, how to prepare a strong application and how to compare quotes before you apply.