Skip to content

Bug bounty vs penetration testing: when to use which

B2Bnetwork team · · 6 min

Security

In brief

Choose a penetration test when you need a full check of a defined scope by a set date and a report for an auditor or customer. A bug bounty, a program that pays outside researchers for confirmed vulnerabilities, makes sense later: for public applications that change often, at a company that can triage a report and ship a fix quickly. The usual order is a penetration test first, then a vulnerability disclosure policy, and a bug bounty last.

Three tools, not two

The "bug bounty or pentest" debate usually leaves out a third element: a vulnerability disclosure policy (VDP). It is a public statement of how to report a security bug and what the company will do about it, with no promise of a reward.

FeaturePenetration testDisclosure policy (VDP)Bug bounty
Who looksa chosen team of engineers under contractanyone who happens to find somethingmany researchers motivated by rewards
Scopeagreed, internal systems includedwhatever is publicdefined in the program rules, usually public systems
Timingdays or weeks, with a report dateongoingongoing or in campaigns
Coveragemethodical: the team works through a list of controlsrandomuneven: researchers go where rewards are easy
Costper day of work, known up frontteam time to handle reportsrewards for findings, a platform fee, team time for triage
Outputa report with risk, evidence and a retestindividual reportsindividual reports of varying quality
Evidence for an auditoryessupports the processsupports the process, rarely replaces a test

A penetration test says "we checked this scope with this method". A bug bounty says "many people tried, and here is what they found". These are two different promises.

When to choose a penetration test

A penetration test is the right choice when:

  • you are releasing a new system or a major change and want to know the risk before customers use it, not after,
  • you need evidence: a report for a corporate customer, an auditor or a supervisor, for example in a digital operational resilience testing program under DORA,
  • the scope includes internal systems: an admin panel, a partner API, the corporate network, places you will not expose to researchers on the internet,
  • business logic matters and has to be understood before testing: roles, limits, approval workflows,
  • testing must run in a test environment with test data, because production processes customer data.

NIST SP 800-115 describes how to plan and report technical tests, and the course of a web application test is covered in Web application penetration testing. What drives the price and how to compare offers is covered in How much a penetration test costs.

When to choose a bug bounty

A bug bounty gives you something a penetration test cannot: a continuous look from many people with different skills. It makes sense when four conditions are met:

  1. The application is public and changes often, for example a SaaS platform, an online store or a customer portal with weekly releases.
  2. The basic bugs are already fixed after penetration tests and scans. Otherwise the program is flooded with reports of simple issues and the reward bill grows fast.
  3. The company has a vulnerability handling process: someone triages a report within days, not months, and the fix reaches production within the deadlines described in Vulnerability management.
  4. There are people to triage reports. The OWASP guidance on vulnerability disclosure warns that some reports are noise and duplicates, and the team also has to settle disputes with researchers.

Programs usually start private: invited researchers, a narrow scope, rewards by severity. A public program opens once the process runs without delays. The cost depends on the reward for each severity level, the number of findings, the platform fees and the team's triage time, so set the budget up front with a quarterly cap.

Start with a vulnerability disclosure policy

Before a company thinks about rewards, it should make it possible to report a bug. Three things are enough:

  1. A policy page: how to report a bug, what information to include, how soon the company will acknowledge it, what is not allowed (for example downloading customer data or load testing), and a statement that the company will not pursue anyone acting in good faith within the rules.
  2. A contact address: for example a security mailbox handled by named people, not the general office inbox.
  3. A security.txt file at `/.well-known/security.txt`, defined in RFC 9116, with the `Contact` and `Expires` fields:
Contact: mailto:security@firma.pl
Expires: 2027-11-30T00:00:00.000Z
Policy: https://firma.pl/bezpieczenstwo/zglaszanie-podatnosci
Preferred-Languages: pl, en

For software manufacturers this is already an obligation. The Cyber Resilience Act requires manufacturers of products with digital elements to put in place a coordinated vulnerability disclosure policy and to provide a contact address for reports, as described in The Cyber Resilience Act. In Poland, CERT Polska, the national computer emergency response team, can act as an intermediary between the reporter and the system owner and accepts vulnerability reports when contacting the vendor is not possible.

The policy also has a legal side. The Polish Criminal Code exempts from punishment a person acting solely to secure a system, but only under strict conditions, including promptly notifying the system owner. Clear program rules agreed with a lawyer protect both sides better than a general provision.

How to combine them in an annual plan

An example for a company with a public platform and a partner API:

  1. Before a major release: a gray-box penetration test of the new scope, fixes, a retest.
  2. Once a year: a full penetration test of the application, the API and the cloud configuration, with a report for customers and auditors.
  3. Ongoing: a vulnerability disclosure policy and security.txt on every domain.
  4. After a year of a stable process: a private bug bounty for the public application, with internal systems out of scope.
  5. After every finding from the program: a check whether the same bug exists elsewhere, and an entry on the code review checklist described in Secure code review.

B2Bnetwork engineers run penetration tests of applications, APIs and infrastructure as part of Security testing, with a report and a retest. An example of such a scope is the case study on penetration testing a SaaS platform before a customer audit.

Questions and answers

Is a bug bounty cheaper than a penetration test?

Not always. You only pay for confirmed findings, but in an application with many simple bugs the total rewards quickly exceed the cost of a test. Add the platform fee and the team's time for triage. A bug bounty pays off for an application that has already been tested and has few easy bugs left.

Is a bug bounty report enough for an auditor or customer?

Usually not. Auditors and corporate customers want to know what scope was checked, with what method and with what result. A bug bounty does not provide that, because researchers choose what to work on. The program strengthens the picture of your vulnerability handling, but the penetration test report remains the main evidence.

Does a small company need a vulnerability disclosure policy?

Yes, because it costs little, and without it a person who finds a bug does not know where to report it and may publish it straight away. A short page with the rules, a mailbox handled by named people and a security.txt file are enough. A software manufacturer covered by the Cyber Resilience Act must have such a policy.

Can a bug bounty run against production?

It can, and public programs usually do, but the rules must say so explicitly: ban downloading customer data, load testing and social engineering, and give researchers test accounts. Systems where an outage is unacceptable are better kept out of scope and checked with a penetration test in a test environment.

What it looks like in a project

Want to check your application's security? Talk to an engineer.

Let's talk

Read more: Security

All in Security →