Bug Bounty Programs Explained: How They Work and How to Start
November 27, 2026 · 10 min read

A bug bounty programme pays independent security researchers for reporting vulnerabilities in your websites, apps and APIs, so that you hear about flaws from friendly hackers before criminals find them. Companies from global tech firms to start-ups and governments now run them, and the money involved is substantial: HackerOne's 2025 report found that its customers paid $81 million in bounties over twelve months, up 13%, with an average payout of about $1,090.
A bug bounty is not the right first step for everyone, though. Launched too early, it floods a small team with duplicate and low-quality reports; launched well, it gives you hundreds of skilled testers who only cost money when they find something real. This guide explains how bug bounty programmes work, how they compare with vulnerability disclosure policies and penetration tests, what to pay, how AI is changing them, and how to start, including a tested security.txt file and validator you can add to a Next.js site today.
How a Bug Bounty Programme Works
- You publish a policy that defines which systems are in scope, which testing is allowed, how to report and what you pay.
- Researchers test your in-scope assets and submit reports with reproduction steps and evidence.
- Triage confirms each report, removes duplicates and rates severity, usually with CVSS.
- Your team fixes the vulnerability, ideally within agreed time frames for each severity level.
- You pay the reward and thank the researcher, often on a public acknowledgements page.
- Disclosure: with both sides' agreement, the report may be published once the fix is live.
Programmes can be private, open only to invited researchers, or public, open to anyone. Most companies run them through a platform such as HackerOne, Bugcrowd, Intigriti or YesWeHack, which supplies researchers, triage services and payment handling, while large organisations sometimes run their own. Many start private and go public once their triage and fixing processes keep up.
Bug Bounty vs Disclosure Policy vs Penetration Test
| Vulnerability disclosure policy (VDP) | Bug bounty programme | Penetration test | |
|---|---|---|---|
| Payment | None, though thanks or swag are common | Per valid finding, by severity | A fixed fee for the engagement |
| Testers | Anyone who happens to find something | Many researchers, continuously | A small, vetted team for a set period |
| Coverage | Unpredictable | Broad and ongoing, focused where rewards are highest | Systematic within the agreed scope |
| Best for | Every organisation, as a baseline | Mature teams with internet-facing products | Compliance evidence and deep, structured assurance |
| Main risk | Reports arriving with no process to handle them | Report volume outpacing triage and fixes | Point-in-time results that age quickly |
The three work best together. Penetration tests give structured coverage and the reports auditors want, scanners catch known issues continuously, as our comparison of penetration testing vs vulnerability scanning explains, and a bounty adds creative human testing all year round.
Are You Ready for a Bug Bounty?
Before paying for bugs, make sure you can handle them. A useful readiness check:
- You know what you own: domains, apps, APIs and cloud services, with an owner for each.
- Scanners and code reviews already catch the easy issues, so you are not paying researchers to find outdated libraries.
- Someone can respond to reports within a few working days and fix confirmed issues on agreed timelines.
- You have a budget for rewards, platform fees and the staff time triage takes.
- Legal has reviewed your safe harbour wording and data handling rules.
If several boxes are unticked, start with a vulnerability disclosure policy. It costs almost nothing, gives finders a safe and legal way to reach you, and builds the triage habits a bounty needs. Our guide to AI vulnerability management covers how to prioritise and fix what comes in.
Publish a security.txt File
The simplest first step is telling researchers where to report. RFC 9116 defines a small text file, served at /.well-known/security.txt, that lists your security contact, your policy and an expiry date. The securitytxt.org site has a generator. A complete example:
Contact: mailto:security@acme.example
Contact: https://acme.example/security/report
Expires: 2027-10-31T23:00:00.000Z
Policy: https://acme.example/security/policy
Acknowledgments: https://acme.example/security/thanks
Preferred-Languages: en, ur
Canonical: https://acme.example/.well-known/security.txt
In a Next.js project, save it as public/.well-known/security.txt and it is served from the right path automatically, as long as your middleware does not intercept that route. The Expires field is mandatory, and files past their expiry date should be treated as stale, so set a reminder to renew it. This small validator checks the rules that most often go wrong, and can run in CI so that an expired file fails the build:
// check-security-txt.mjs: validate a security.txt file against RFC 9116's key rules
export function checkSecurityTxt(text, now = new Date()) {
const fields = text.split(/\r?\n/).filter((l) => l && !l.startsWith("#"))
.map((l) => { const i = l.indexOf(":"); return [l.slice(0, i).trim().toLowerCase(), l.slice(i + 1).trim()]; });
const get = (name) => fields.filter(([k]) => k === name).map(([, v]) => v);
const problems = [];
if (get("contact").length === 0) problems.push("At least one Contact field is required");
for (const c of get("contact")) if (!/^(mailto:|tel:|https:\/\/)/.test(c)) problems.push(`Contact must be a mailto:, tel: or https:// URI: ${c}`);
const expires = get("expires");
if (expires.length !== 1) problems.push("Exactly one Expires field is required");
else {
const when = new Date(expires[0]);
if (Number.isNaN(when.getTime())) problems.push("Expires is not a valid date");
else if (when <= now) problems.push("The file has expired: researchers may treat it as stale");
else if (when - now > 366 * 24 * 3600 * 1000) problems.push("Expires should be less than a year away");
}
if (get("policy").length === 0) problems.push("Recommended: add a Policy link explaining scope and safe harbour");
return problems;
}
// ---- tests ----
import { readFileSync } from "node:fs";
const good = readFileSync(new URL("./security.txt", import.meta.url), "utf8");
console.log("our file:", checkSecurityTxt(good, new Date("2026-11-27")).length, "problems");
const bad = "Contact: security@acme.example\nExpires: 2025-01-01T00:00:00Z\n";
checkSecurityTxt(bad, new Date("2026-11-27")).forEach((p) => console.log(" -", p));
Running it prints:
our file: 0 problems
- Contact must be a mailto:, tel: or https:// URI: security@acme.example
- The file has expired: researchers may treat it as stale
- Recommended: add a Policy link explaining scope and safe harbour
Our file passes, while the broken example shows three common mistakes: a bare email address instead of a mailto: link, an expiry date in the past and no policy link. Framework vulnerabilities, such as the Next.js middleware authorisation bypass disclosed in March 2025, are a reminder that researchers will probe your stack as well as your own code, so make the reporting route easy to find.
Write a Clear Policy: Scope, Rules and Safe Harbour
- In scope: list exact domains, apps and APIs, and say which environments researchers may test.
- Out of scope: third-party services you do not control, denial-of-service testing, spam, physical attacks and social engineering of staff, the techniques covered in our guide to social engineering attacks.
- Rules of engagement: use your own test accounts, never access or keep other people's data, stop at a proof of concept and do not degrade the service.
- Safe harbour: state that good-faith research under the policy is authorised and that you will not take legal action. In 2022 the US Department of Justice also said it would not prosecute good-faith security research under the Computer Fraud and Abuse Act.
- Response targets: for example, first reply within three working days and a severity decision within ten.
- Disclosure: explain when and how researchers may publish, commonly after a fix or after an agreed period such as 90 days.
- Rewards: a table by severity, plus how you handle duplicates and reports below your threshold.
Setting Rewards and Budgets
Rewards vary enormously with company size and target value. As an illustrative starting point for a smaller company, and only our estimate rather than market data, you might offer up to $250 for low severity, $250 to $1,000 for medium, $1,000 to $3,000 for high and $3,000 to $10,000 or more for critical findings, then adjust to attract the attention you need. The largest programmes pay far more: HackerOne reported that its ten biggest programmes paid $21.6 million between them in its latest report year. Add platform subscription or triage fees and, above all, the engineering time to fix what researchers find. Paying generously for the issues that matter most, and quickly, builds the reputation that brings skilled researchers back.
Triage: Where Programmes Succeed or Fail
Researchers judge programmes on speed and fairness. Slow replies, silent fixes and disputes over severity drive good hunters away, while fast, transparent handling attracts them. Use one severity framework consistently, explain your decisions, pay on validation rather than waiting for the fix where possible, and keep reporters updated. Expect noise too: duplicates, out-of-scope issues and so-called beg bounties, where people email small businesses about trivial findings and ask for payment. A published policy lets you answer those politely and consistently. If a report suggests that someone has already exploited a flaw, treat it as a possible incident and follow your data breach response plan.
AI and Bug Bounties in 2026
AI is reshaping bug bounties from both sides. HackerOne found that 1,121 programmes now include AI systems in scope, up 270%, that valid reports about AI vulnerabilities rose 210% and that prompt injection reports jumped 540%, with $2.1 million paid for AI vulnerabilities. If your product includes chatbots or agents, put them in scope and read our guide to AI agent security. Researchers use AI as well: 70% now use AI tools in their work, and more than 560 valid reports came from autonomous agents.
The downside is volume. The curl project, behind one of the most widely used pieces of open-source software, shut down its bug bounty in 2026 and in October moved low- and medium-severity reports to public GitHub issues, as The Register reported amid a surge in AI-driven bug hunting. To keep quality high, require a working proof of concept and clear reproduction steps, limit submissions from new accounts, prefer private programmes with vetted researchers while you scale, and say plainly that unverified, AI-generated reports will be closed.
Regulation Is Making Disclosure Mandatory
Disclosure programmes are moving from good practice to legal requirement. The EU's Cyber Resilience Act requires manufacturers of products with digital elements to report actively exploited vulnerabilities through ENISA's platform, with reporting duties in force since 11 September 2026, and its wider obligations, which include having a coordinated vulnerability disclosure policy, apply from December 2027, as Travers Smith explains. US federal agencies have been required to maintain vulnerability disclosure policies since 2020, and the international standards ISO/IEC 29147 and 30111 describe how to receive and handle reports. Publishing a security.txt file and a clear policy now puts you ahead of these expectations.
Frequently Asked Questions
What is a bug bounty programme?
It is a scheme in which an organisation invites security researchers to find and report vulnerabilities in defined systems and pays rewards for valid findings, based on severity.
How much do bug bounties pay?
It varies widely. HackerOne's 2025 report put the average reward at about $1,090, while critical findings at large companies can earn tens of thousands of dollars or more.
Is a bug bounty a replacement for penetration testing?
No. A bounty provides continuous, unpredictable coverage, while a penetration test gives structured, documented assurance that auditors and customers often require. Most mature companies use both.
Do small companies need a bug bounty?
Not at first. Every company should publish a vulnerability disclosure policy and security.txt file; a paid bounty makes sense once you can triage and fix reports quickly.
Is bug bounty hunting legal?
Testing within a programme's published scope and rules, with its safe harbour, is authorised. Testing systems without permission, or outside the rules, can break computer misuse laws.
What is a security.txt file?
It is a standard text file at /.well-known/security.txt that tells researchers how to report vulnerabilities to you, defined in RFC 9116.
Launch Your Disclosure Programme the Right Way
We help companies publish security.txt files and disclosure policies, build triage workflows and fix reported vulnerabilities quickly in Next.js, Node.js and mobile apps. Contact our team to prepare for your first bug bounty.