Self-hosted open-source platforms: penetration test vs bug bounty

A scheduled penetration test gives defined coverage of your deployment and evidence an assessor can review. A bug bounty adds outside attention to the code but gives no fixed coverage, so a common sequence is to start with the test and add a program once you can triage reports.

On this page

Penetration test vs bug bounty for a self-hosted platform: which to choose first

Choose a scheduled penetration test first when you need defined coverage of your own deployment and evidence an assessor can review. Add a bug bounty or disclosure policy when you want continuous outside attention on upstream code and can handle the triage. A penetration test answers a scoped question: which hosts, accounts and network paths are in, and what an attacker could reach from them. On a self-hosted platform, much of the risk sits in settings you own. Keycloak's production guide recommends exposing the Administration REST API and Console on a different hostname or context path and blocking non-public REST APIs at the reverse proxy. A tester can check whether those rules hold in your setup. The written rules of engagement (NIST SP 800-115 has a template in Appendix B) make the result reviewable by your compliance team.

A bug bounty matters most when the risk you care about sits in upstream code and you can absorb the triage. Outside researchers usually test the public project, not your deployment. Nextcloud asks researchers to test only on their own installations and confirm issues on supported versions. Moodle discloses security issues only after fixes are out and registered sites have had time to upgrade. Drupal's Security Team does not issue advisories for issues exploitable only by users with administrative permissions. Those limits matter for your deployment. Each report also needs someone on your side to reproduce it, judge severity and route the fix, and that effort recurs for as long as the program runs. Ask any bounty operator how triage is staffed and what it costs your team per report.

For most teams the order is a penetration test first, then a published disclosure policy, then a bounty once the first fixes are verified. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, and Safeguard 18.3 asks that findings be remediated on a timeline set by impact and priority. That gives you a backlog to close before inviting outside reports. A disclosure policy, even without payment, gives good-faith reporters a route in. Combine the two when your upstream releases outpace your test cycle. GitLab, for example, backports security fixes to the two previous monthly releases, so the build you run may receive fixes that a test of an older build never saw. Confirm with each vendor which versions get security fixes, then retest after major upgrades.

How a penetration test and a bug bounty differ on scope, evidence and effort

This table compares a scheduled penetration test with a bug bounty for a self-hosted open-source platform, row by row on goal, scope, evidence, cost and switching. Read each row against your own deployment, because the difference matters most when an assessor expects a defined test with a known scope. A bug bounty adds outside testing over time, but it does not give you a dated, scoped coverage record on its own.

FactorPenetration testBug bounty
Goal and methodValidate exploitable weaknesses in a defined scope through planned, time-boxed manual testing with supporting toolsCollect valid reports from outside researchers who test whatever the program policy allows during the program window
Who tests and sets scopeA contracted tester or team; you set the scope in writing before work startsIndependent researchers choose their targets; you set the policy, in-scope assets and rules
Coverage guaranteeDefined by the statement of work; confirm hosts, SSO flows, admin paths and reverse proxy rules are namedNo guarantee; coverage depends on researcher choice and program policy. Confirm your instance is in scope.
Evidence producedOne written report with reproduced findings and retest results; confirm it meets your assessor's formatOne report per submission, each triaged by you; quality and volume vary by researcher
CadenceScheduled; CIS Safeguards 18.2 and 18.5 ask for external and internal tests at least annuallyContinuous while the program runs, so findings arrive unscheduled and need a named triage owner
Compliance fitFits assessor expectations for a dated, scoped test; CIS Safeguard 18.4 asks you to validate detections after each testAsk your assessor whether researcher reports count as penetration test evidence before relying on them
Cost modelQuoted from the written scope and recurs with each test cycle; drivers are scope size and retest roundsPaid per valid finding, so spend tracks results; confirm platform fees and reward ranges in writing
Effort on your teamScoping, test accounts, tester access and tracking remediation to closureTriage, duplicate handling, safe harbor wording and answering researcher questions on a standing basis
Cost of switching laterLow to change testers; keep findings in your own tracker so history survives a change of firmRewrite policy and scope on a platform change; confirm you can export past reports and dispositions

Where a vendor's bounty ends and your deployment begins

A vendor's bug bounty or disclosure policy covers the vendor's software. Your deployment stays with you. Your reverse proxy, TLS termination, SSO wiring, admin consoles, backups and patch timing are your decisions, and a researcher who reports a weakness in your setup may fall outside the program's scope. Keycloak's production configuration guide shows where those decisions sit: all communication to and from Keycloak requires TLS, the Administration REST API and Console should be exposed on a different hostname or context path, and REST APIs not meant to be public should be blocked at the reverse proxy. Each of these is a configuration choice your team owns. Check them against the guide yourself rather than assuming a vendor's program has tested them for you.

Disclosure rules also decide what you can act on and when. Nextcloud asks researchers to test only their own installations and to confirm issues on supported versions, so you need a current inventory of which instances run a supported release. Moodle discloses security issues only after a fix exists and registered sites have had time to upgrade or patch, so your own patch window, not the public announcement, decides how long you are exposed. Drupal does not issue advisories for issues exploitable only by users with administrative permissions or for external libraries, which means a finding in an admin-only feature or a bundled library may never get a public advisory. Your team has to track those gaps through its own dependency and configuration reviews.

Before you rely on any vendor policy, confirm the points that shape your risk. Ask whether self-hosted deployments behind your own proxy are in scope, which release lines receive security fixes and for how long, whether administrator-only and third-party library issues are covered, how fixes reach registered sites and what lead time you get before public disclosure, and whether testing your own installation needs prior permission. The Drupal advisory process and permissions policy is a useful example of the detail to look for. Record the answers in your patch calendar and test scope, and assign an owner to every item the vendor will not cover.

What each approach finds and what it misses

A penetration test and a bug bounty answer different questions about a self-hosted platform. One tests a defined scope in a fixed window and produces confirmed attack paths, while the other opens in-scope assets to outside researchers and pays for valid findings. The cards below show what each reaches and where each leaves gaps in your own deployment.

What a penetration test finds

A penetration test chains weaknesses that scanners report separately, such as a reverse proxy rule that exposes an admin path followed by a weak SSO setting that grants console access. Testers run exploits against the agreed targets, so each finding arrives as a confirmed attack path with evidence. Ask the firm to cover the reverse proxy, SSO and admin paths, and deployment settings, checked against the five hardening areas in GitLab's documentation: general concepts, application settings, CI/CD, configuration files and operating system.

GitLab hardening guide

What a penetration test misses

Anything outside the written scope or the test window stays untested, including a plugin, tenant or integration added after kickoff. Business logic is only covered where testers exercised it, so an approval workflow that breaks under an unusual sequence of steps can pass unnoticed. Drift after the report date is often the largest gap: an upgrade, a new proxy rule or a changed SSO group mapping goes untested until the next engagement. Ask for a retest after material changes and for the scope to be restated in writing.

What a bug bounty finds

Outside researchers reach issues on in-scope assets that your team did not expect, often in code paths your team did not expect such as an old endpoint left enabled after a module was retired or an upload handler added by a plugin. Payment per valid finding directs attention toward whatever is easiest to reach from the internet. Findings tend to cluster in customizations and integrations, so ask the program which assets it actually covers and which versions it accepts reports against.

What a bug bounty misses

A bug bounty promises no fixed coverage, depth or timing, so a module nobody submits against may go untested for months. Deployment-specific configuration is usually outside program scope: reverse proxy rules that expose an admin hostname, TLS on cluster traffic, and blocks on REST APIs not meant to be public, which Keycloak's production guide recommends setting. Odoo's security checklist for public deployments covers similar ground. Confirm in the policy which environments are in scope, or your production settings may never be reviewed.

Odoo security page

How to decide: a decision path from deployment risk to test type

The diagram starts with one question: is the main risk in your own deployment or in the vendor's upstream code? Deployment risk, such as reverse proxy settings, TLS, admin hostnames and access controls, leads to a scheduled penetration test with a written scope agreed before work starts. Upstream risk leads to checking the vendor's disclosure policy and which versions it supports. Two further checks follow: whether an assessor needs dated evidence, and whether your team can triage incoming reports before you open a bug bounty program. Every path ends in the same loop of fixing, retesting and applying the next vendor patch release.

Decision path from deployment or upstream risk to penetration test or bounty.

What you receive from each approach and what you must supply

This table compares what each approach hands you at the end and what your team must provide to make it work. Read the penetration test column as a contract you shape before work starts, and the bug bounty column as a set of records you build while reports arrive. Exact report formats and retest terms come from the written scope or the program policy, so request both before you sign.

Deliverable or inputPenetration testBug bounty
Scope documentWritten scope names targets, hostnames, test accounts, excluded systems and testing windows before work starts.Published policy lists in-scope assets, excluded systems and the testing rules every researcher must accept.
Rules of engagementAgreed rules cover permitted techniques, escalation limits, data handling and stop contacts. NIST SP 800-115 Appendix B provides a template.Policy sets permitted testing and reporting conditions for all researchers, with no per-engagement agreement.
Findings and reproductionFindings with reproduction steps, affected component, severity and fix guidance. Report format is set in the scope.Submitted reports of varying detail. Reproduction quality depends on each researcher, so triage asks follow-up questions.
Retest and verificationRetest confirmation for fixed findings, with evidence an assessor can review. Retest terms come from the written scope.Fix verification depends on your own team unless the policy provides for reporter retests. Confirm this before launch.
Triage and decision recordsFindings tracked to the agreed report, with severity and status recorded for each item.A record per submission: accepted, duplicate, out of scope or invalid, with the reason for each decision.
Disclosure coordinationFindings stay confidential to your organization unless you agree otherwise in writing.Timing is set by the policy. Upstream projects set their own, such as Moodle, which discloses only after fixes and site upgrade time.
Compliance evidenceReport and retest records can support CIS Safeguard 18.3 remediation timelines and 18.4 post-test detection checks.Triage logs and fix records show handling of reported issues, but say nothing about planned test coverage.
Your team suppliesTest accounts for each role, environment access windows, network paths, and named contacts who can stop testing.Published policy, a reporting channel, a triage rota with named staff, and any test accounts the policy allows.

When compliance frameworks call for a penetration test, and where a bounty fits

Choose a penetration test when a framework names one, and plan a bug bounty as an extra source of findings. CIS Controls v8.1 asks for external and internal penetration tests at least annually under Safeguards 18.2 and 18.5, and Safeguard 16.13 asks for application penetration testing. Safeguard 18.3 asks that findings be fixed on a timeline set by each finding's impact and priority, and Safeguard 18.4 asks that controls be validated after each test so detections cover the techniques the testers used. For a self-hosted stack, scope the test to what you deployed: the Keycloak admin console and its reverse proxy rules, your GitLab runners, and your Nextcloud or Odoo instance with its own configuration.

Other frameworks describe how the test is run. PCI SSC's Penetration Testing Guidance v1.1 (September 2017) describes penetration testing as essentially a manual process and says simply running an automated tool does not satisfy the requirement, so a scanner export cannot stand in for the test if your environment falls under PCI DSS. NIST SP 800-53 Rev. 5 control CA-8 is selected only in the high baseline, so confirm your system's impact level before assuming it applies. NIST SP 800-115 suggests regularly scheduled scanning interspersed with periodic penetration tests, so plan scans as the routine layer and the penetration test as the deeper, scheduled check on top.

For EU financial entities, DORA Article 25(1) lists penetration testing and open source analyses among the tests to run, and Article 26 requires threat-led penetration testing at least every 3 years for entities their competent authority identifies. Treat a bug bounty as satisfying no named control in this list until an assessor or regulator confirms it in writing. A bounty can add outside coverage on a public product, but Nextcloud runs its bounty through HackerOne and asks researchers to test only on their own installations, so your own deployment still needs a scoped test.

What drives the cost and effort of each approach

This section gives no prices or durations, because both approaches depend on the written scope. Each card names a cost driver that changes the quote or the internal effort. The list at the end is what to request in any quote: the written scope, roles, environments, retest terms and the team's qualifications.

Penetration test scope drivers

A penetration test is shaped mostly by its scope: how many hosts, applications and environments the tester must cover, how many user roles must be tested, and which integrations such as SSO, the directory and the mail relay are in play. Each role and each SSO path adds manual work because the tester has to log in as each one. Retests after fixes add more work. Ask whether the tester does manual exploitation or only runs tools, because PCI SSC's guidance says simply running an automated tool does not satisfy the penetration testing requirement.

PCI penetration testing guidance

Bug bounty duration and scope

A bug bounty only covers the assets you list in its policy, so the first cost decision is which instances, plugins and customizations are in bounds. You also decide whether researchers may test your production environment or only a copy. Nextcloud, for example, asks researchers to test only on their own installations and to confirm issues on supported versions. A longer or wider program usually finds more issues, but it also sends more reports to your team to read and answer.

Nextcloud security page

Triage load and reward levels

Triage is the cost teams most often underestimate. Every submission needs reproduction, a severity call and a reply, and some will be duplicates or out of scope. Reward levels shape how many researchers look at the program and what each valid finding costs you, so a low tier can leave serious reports unclaimed while a high tier raises the payout. Decide before launch who triages, whether your own security team, a managed triage provider or a platform, and confirm response commitments in writing.

Deployment and patch effort

Both approaches end with fixes that someone must deploy, and on a self-hosted platform that work sits with your team. GitLab, for example, issues patch releases twice monthly and backports security fixes to the previous two monthly releases as well as the current stable release. Any upgrade can change the result of an earlier test, so plan a retest after every upgrade that touches the attack surface. Confirm your own upgrade cadence before you agree a test window or a bounty launch date.

GitLab maintenance policy

One-time and recurring costs

The first penetration test or the program launch is a one-time cost: scoping, environment setup, the first round of testing, and policy and platform setup. Periodic tests, retests and bounty triage recur. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, so a yearly test is the baseline to budget for. Safeguard 18.4 asks that security measures be validated after each test. Ask for recurring items on a separate line of any quote so the annual total is visible.

CIS Control 18 specification

What buyers ask about penetration tests and bug bounties for self-hosted platforms

What does a penetration test cost and what drives the quote?

The quote follows from the written scope, and the main drivers are how much of the platform is tested and how deeply. Most of the cost is tester time, with report writing and any retest added on top. Scope items that raise the figure include the number of applications, hostnames and API endpoints; the number of user roles the tester must log in as; whether testing is internal, external or both; and whether cloud configuration or an AI component is included. Scope items that lower it include a documented architecture, existing test accounts and a narrowed scope agreed before work starts. DeployOpen does not publish a price list. Ask each bidder to itemize testing, reporting, retest and project management, to state its assumptions about access and environments, and to confirm whether retests and any ongoing testing are priced separately.

Can a bug bounty replace a penetration test?

Usually not on its own, and whether it can stand in for a test depends on the framework and the assessor. Bounty researchers test what they choose to test, within the program's rules, and they are paid per valid finding, so coverage is uneven and hard to prove. NIST SP 800-115 notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk, and the OWASP Web Security Testing Guide says no single technique is enough. PCI SSC's penetration testing guidance says that simply running an automated tool does not satisfy a penetration testing requirement. CIS Controls v8.1 asks for external and internal penetration tests at least annually (Safeguards 18.2 and 18.5). Where a named framework or contract requires a test, confirm with the assessor whether a bounty alone is accepted as evidence.

How long does a penetration test take?

The duration is set in the written scope, and no fixed figure applies to every self-hosted platform. Timing depends on the components in scope (web front end, APIs, authentication, admin consoles, integrations), whether testing is authenticated, how many user roles need testing, and whether the target is production or a staging copy. Tester availability and change freeze windows can move a start date even when the testing itself is short. A bug bounty runs on its own schedule: the program stays open, so there is no fixed end date, and triage time depends on the volume of reports. Ask for the start date, testing window, report delivery date and retest window as separate dates in the written scope, and confirm what happens if a dependency, such as access or a staging build, arrives late.

What does a penetration test need from our team?

Your team needs to supply access, a decision on where testing runs, a change plan and people who answer quickly during testing. Access usually means test accounts for each user role, with the tester's permissions written into the rules of engagement, for which NIST SP 800-115 includes a template in Appendix B. Decide early whether testing runs against production, a staging copy or both: NIST SP 800-115 notes that penetration testing uses real exploits against production systems and data and carries high risk, so many teams choose a staging copy that matches production configuration. Agree change windows so monitoring staff know when activity is expected, and confirm backups beforehand. Name a triage rota with a decision owner who can approve a pause when a critical finding arrives mid-test. Provide architecture diagrams, a list of integrations and an owner for each system.

Can our own team run a penetration test or bug bounty?

Your team can run tests in-house if it has skilled testers and clear authority, but a bug bounty is an ongoing program you operate, not a one-time exercise. An internal team needs a written scope, its own rules of engagement and an independent reviewer for findings that will serve as compliance evidence, since a tester who built the system may share its assumptions. When buying external help, ask for company accreditation and individual qualifications. CREST, a UK not-for-profit, accredits member companies and certifies individuals in disciplines including security testing and red teaming. Ask whether the firm is a CREST member and whether the named testers, not only the sales lead, hold CREST individual certifications for this work. Running a bounty also requires a triage team, a published policy and a process for paying and closing reports.

Does a vendor's public bug bounty cover our own deployment?

Usually not by default: a vendor's public program normally covers the vendor's software and services under its published rules, while your configuration, hosting, data and integrations sit outside that scope. Read the program's scope before assuming coverage. Nextcloud runs its bug bounty through HackerOne and asks researchers to test only on their own installations, so testing a customer's live instance falls outside that request. Drupal's security team does not issue advisories for issues exploitable only by users with administrative permissions or for external libraries, so those risks remain with your own review. Ask the vendor whether it authorizes testing of customer deployments and, if you want your own instance tested, write that scope and its rules of engagement yourself.

How does a retest fit in after fixes?

A retest checks whether each reported finding was fixed, so confirm in the written scope whether it is included or priced separately. CIS Controls v8.1 Safeguard 18.3 asks for penetration test findings to be remediated on a timeline set by each finding's impact and priority, and Safeguard 18.4 asks for security measures to be validated after each test so that detections cover the techniques the testers used. Plan the retest window in the schedule: fixes need a release, the release needs change approval, and the retest needs the same test accounts and environment as the original test. Ask how many retest rounds are included and how a risk accepted instead of fixed is recorded. For self-hosted platforms, track upstream security releases as well: GitLab says high and critical security issues are always addressed with a patch release, so your patch cycle should match vendor timing.

How DeployOpen scopes and delivers security testing for self-hosted platforms

DeployOpen runs security testing for self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. For this topic, scope, deliverables and timelines are agreed in writing before work starts, so the reader knows which hosts, accounts, roles and integrations are in and out. Ongoing support, upgrades and continuous testing are available as retainers.

How we scope

  • The written scope names each platform, version, hostname, user role and integration that is in the test.
  • The scope states whether testers get standard accounts, admin roles or only the public login page.
  • Vendor advisories may not cover your build, so the scope names which patch steps stay with your team.

How we test

  • Testers mix review, target identification and validation techniques, a combination NIST SP 800-115 describes for in-depth assessment.
  • Testers check whether admin consoles sit on separate hostnames and internal REST APIs are blocked at the reverse proxy.
  • Testing runs in the client's environment or a staging copy the scope names.

How we hand over

  • Each finding includes reproduction steps, the affected component, a severity rationale and a suggested fix.
  • Retests confirm whether fixes work, and the scope states whether one is included.
  • Evidence is prepared for your team and independent auditors, who make the assessment. DeployOpen does not issue audit reports.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers.
  • Some vendors disclose only after fixes ship, so confirm how upstream advisories reach your team.
  • Confirm who handles upstream security reports for your instance, since public programs do not test your deployment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.