LEADCHAPTER 18

Pentests, bug bounties and vendor risk

Three ways of buying an outside view of your security, and one way of inheriting someone else's. Scope them so they test what matters, read what comes back for what it says about your own programme, and decide on evidence rather than finding counts

45 MINSECURITYUPDATED 2026-11-05
PREDICT

Your annual web and API pentest report arrives: no critical or high findings, three medium, forty low. Before you send the summary to engineering leadership, what do you check first?

This chapter covers three things that look different and are run the same way. A penetration test buys a fixed number of skilled hours against a scope you define. A vulnerability disclosure programme and a bug bounty open a door for outside researchers, paid or unpaid, for as long as the programme runs. Vendor risk management, sometimes called third-party risk or supply-chain risk, is the reverse direction: the security of companies you buy from, which you inherit whether you check it or not.

At Practitioner level you consume their output: a pentest finding lands in your queue, you triage it under the vulnerability management policy, and you fix it. At Lead level you own the programmes. You decide what gets tested and by whom, you judge whether the money bought anything, you set the rules researchers work under, and you decide which vendors get a hard look. You are judged, in the words of this track’s ladder, on whether risk fell while delivery held, so the question for every one of these is the same: what did it tell us that we did not already know, and what did we change?

The model: outside views and what each proves

Pentest Disclosure programme Bug bounty Vendor review
Who looks a firm you hire, named testers anyone who finds something invited or public researchers your team, reading their evidence
Paid for tester-days nothing valid findings your time, sometimes a ratings service
Good at depth on a scope you choose, at a time you choose catching what others stumble on breadth, continuity, creative attackers knowing what you depend on
Blind spot everything outside scope, everything after the test ends anything nobody happens to look at anything researchers find dull or cannot reach anything the vendor does not show you
What it proves the system resisted these testers on these days you can receive and act on a report your fixes keep up with a stream the vendor has controls on paper, and some evidence they run

The UK National Cyber Security Centre’s guidance on penetration testing gives the framing to work from. It says a pentest should be thought of like a financial audit: your team keeps the books day to day, and the test checks that your processes are good enough. It describes testing as a way of gaining assurance in your vulnerability management, not as the primary method of finding vulnerabilities. Read that way, a pentest finding you already knew about is a pass with a note, and a serious finding you did not know about is two findings: the bug, and the gap in your own reviews, scanners or threat models that let it through.

Scoping a pentest

What goes wrong first is the scope. A one-line scope, “the web application and API”, lets the firm send its least expensive tester with an automated scanner, and lets you file a clean report that proves nothing. The scope is the most valuable document in the engagement, and the NCSC guidance says to write it with the risk owners, the engineers and someone from the test team in the room.

Pick the box. A black-box test gives the testers nothing but a URL. It feels realistic and wastes most of the budget on reconnaissance a real attacker would spend weeks on. A grey-box test gives them accounts, API documentation and an architecture overview. A white-box test adds source code. For a product company buying ten days, grey or white box finds more per day, because the testers spend their hours on the logic rather than on discovering it.

Write test cases from your own risks. Take the top threats from your threat model and incident history and turn each into a named test case, mapped to the OWASP Web Security Testing Guide where one fits. The WSTG, at version 4.2 as the current stable release, organises tests into twelve categories from information gathering to API testing, with identifiers of the form WSTG-ATHZ-04 (insecure direct object references) and WSTG-BUSL-05 (limits on how many times a function can be used). Its own foreword warns against treating it as a checklist; use it as the vocabulary for saying what you want tested. The cases that matter most for a payments or messaging product are usually authorisation and business logic, the classes scanners cannot find: can user A read user B’s data, can a member act as an admin, can a transfer be replayed or raced, can a limit be bypassed by calling the API instead of the app. The secure code review chapter covers why tools miss these.

Give them what the test needs. Two tenants, and an account for every role in each, so cross-tenant access can be tested at all. A production-like environment with synthetic data. API keys issued before day one, not on day three.

Rules of engagement. Targets with hostnames and IP ranges, and what is out: third-party services you do not own (your payment processor’s endpoints need their permission, not yours), denial-of-service, social engineering unless named. Testing windows. An emergency contact on both sides and a stop word. How test data and any real data the testers touch are handled and deleted. A signed authorisation letter from someone with the authority to give it, because testing without authorisation is a crime in most jurisdictions.

Buy the right things. Named testers whose CVs you have seen. A retest of fixed findings included in the price. A report format with a coverage section. An attestation letter, a one-page summary you can give customers, which is what sales will ask for.

How many days? Quotes for a web application with an API commonly fall between five and fifteen tester-days; treat that as a rule of thumb that varies with the number of roles and endpoints, not a standard. If you must cut, cut breadth, not the authorisation and business-logic cases.

Some tests are not your choice. PCI DSS v4.0.1 requirement 11.4 asks for internal and external penetration testing at least every twelve months and after significant change, to a defined methodology. Under Article 26 of the EU’s Digital Operational Resilience Act, financial entities identified by their competent authority must run threat-led penetration testing at least every three years. Compliance and audits, in this module, covers these obligations; here the point is that a mandated test still deserves a scope written for your risks, not the auditor’s minimum.

Reading the report

The report arrives, and the temptation is to count. Resist it. A report review asks four questions, in this order.

What was tested? A good report states the methodology, the test cases run and not run with the reason, the accounts used, and the dates. If the coverage section is two paragraphs of boilerplate, you cannot tell a secure system from an untested one. Ask the firm for the test log before you accept the report.

What did they find that we did not know? Mark every finding medium and above as known (already in your backlog or an accepted risk) or new. New findings go to the vulnerability programme under its normal SLAs. Then ask the second question each one raises: why did our own reviews, scanners and threat model miss this? That answer is often worth more than the fix.

Are the severities right for us? Testers rate findings generically. An information leak on a marketing page and the same leak on the payout API are not the same risk. Re-rate each finding for your context and say why, in both directions.

What does the shape say? Forty lows and no criticals is a common shape and it has two readings. If the coverage shows authorisation and logic tested by hand with every role, the lows are the residue of a well-defended system and you accept most of them in one decision. If the lows are missing security headers, cookie flags, TLS cipher suites, version banners and verbose errors, and nothing touches authorisation, you are reading scanner output with a logo on it.

Close the review with a short memo: coverage, new versus known, re-rated findings with owners, what the findings say about your process, and a decision on the firm and next year’s scope. The memo is what you show the head of security, and what you hand the next person who scopes a test.

Disclosure programmes and bug bounties

Researchers will find flaws in your product whether or not you invite them. The question is whether they can tell you safely. Without a published route, a report goes to a sales inbox, waits three weeks, and the researcher publishes or, worse, sells.

Start with a vulnerability disclosure programme. A page that says what is in scope, how to report, what the researcher can expect and by when, and a safe-harbour statement promising not to pursue good-faith research. Publish a security.txt file so the page can be found. ISO/IEC 29147 describes how to receive and publish vulnerability reports and ISO/IEC 30111 how to handle them internally. You do not need to write the legal language from scratch: disclose.io maintains open-source policy terms and safe-harbour text, and HackerOne’s Gold Standard Safe Harbor, introduced in 2022, is a short statement that treats good-faith research as authorised and commits not to bring legal action, including for bypassing technical measures on in-scope systems. Both say plainly that you cannot authorise testing of a third party’s systems. The legal backdrop has moved too: in May 2022 the US Department of Justice revised its charging policy so that good-faith security research should not be charged under the Computer Fraud and Abuse Act. That is a prosecution policy, not immunity, which is why your own written safe harbour still matters.

Then, maybe, a bounty. A bounty adds money, and money changes behaviour: more reports, more testing, more noise. The usual progression is a private programme with a few dozen invited researchers, then a public one once you can keep up. Platforms such as HackerOne and Bugcrowd provide the researchers, the payments and, for a fee, first-line triage. Bugcrowd’s Vulnerability Rating Taxonomy, open-sourced under Apache 2.0, gives baseline priorities from P1 (critical) to P5 (informational) for common classes; it is useful for agreeing ratings with researchers before an argument, and you should still re-rate in context.

What goes wrong with bounties is predictable. Launching before you can fix. A bounty that pays for a flaw you then leave open for four months tells researchers the programme is not serious, and some will publish. Treating it as the AppSec programme. Researchers go where rewards are easy; a bounty finds what is reachable and interesting, not your riskiest logic. Scope fights. Every out-of-scope report that turns out to be real is a dispute about money. Write the scope as narrowly as the truth allows and widen it as you mature. Unsolicited demands. Expect messages that report a missing header and ask for payment without a programme in place. Your published policy is the answer to all of them.

Run the programme on clocks the policy states: acknowledge within a few working days, triage within a week or two, pay on validation rather than on fix, and resolve under the same SLAs as any other finding. The numbers are your choice; publishing them is not optional. Working the queue report by report, from reproduction to payout, is triaging researcher reports.

Vendor risk: the security you inherit

Every vendor with your data or a credential into your systems is part of your attack surface. The Okta incident in the Why is one form: a vendor’s internal system held material that let attackers into customers. The 2025 Salesloft Drift campaign is another. Google’s Threat Intelligence Group reported that between 8 and 18 August 2025 an actor it tracks as UNC6395 used stolen OAuth tokens belonging to the Drift chat integration to query and export data from many customers’ Salesforce instances, then searched the data for AWS keys, passwords and Snowflake tokens. Salesforce was not breached. The integration was, and every customer that had connected it inherited the problem. The OAuth lesson explains why a refresh token in someone else’s database is a standing key to yours.

Tier first. Review effort follows data and access, not contract value.

Tier Typical vendor Evidence you ask for Reassess
1, critical holds customer or payment data, or has a token, agent or admin access into production or identity SOC 2 Type II or ISO 27001 with scope checked, pentest summary, contract clauses, integration review yearly and on any incident
2, important internal data, SSO-connected, no production access SOC 2 or ISO 27001, short questionnaire every two years
3, low no data, no access procurement checks only at renewal

Read the evidence properly. A SOC 2 Type II report is an auditor’s opinion on whether controls operated over a period, often six or twelve months. Read past the opinion: the system description (is the product you buy in scope?), the exceptions in the tests of controls, the subservice organisations carved out (often the cloud provider, sometimes much more), and the complementary user entity controls, the list of things the vendor assumes you do. A report whose period ended eight months ago needs a bridge letter covering the gap. An ISO 27001 certificate means little until you read its scope and Statement of Applicability. Questionnaires, often built on the Shared Assessments SIG or the Cloud Security Alliance CAIQ, are where evidence is weakest: they record what the vendor says.

Put it in the contract. Breach notification to you within a stated number of hours, a list of subprocessors and notice of changes, the right to a pentest summary, data return and deletion at exit, and for tier 1 a right to audit you may never use but will want when something goes wrong. Legal owns the words; you own the list.

Review the integration, not only the company. For anything that connects to your systems, record the OAuth scopes, the token lifetime, where the vendor stores credentials, and how you would revoke them in an hour. Tokens with read access to your whole CRM are a tier-1 relationship even if the tool cost a few hundred a year.

NIST SP 800-161 Rev. 1, Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations, is the long-form reference. It treats supply-chain risk as part of enterprise risk management at three levels, enterprise, mission and business process, and operational, and its appendices include a scoping questionnaire you can adapt. EU financial entities also have a DORA obligation to keep a register of information on every ICT third-party arrangement, which makes the tier list above a regulatory document as well as a working one.

Where practitioners disagree

Rotate the pentest firm or keep it? Rotation brings fresh eyes and new techniques; keeping a firm brings context, so day one is spent testing, not learning. A common compromise is to keep the firm and require different testers every year, or to rotate every two or three years. Decide by reading the reports, not by a rule.

Pentest or bounty money? Bounty advocates say you pay only for results. Pentest advocates say you choose what gets tested, and a bounty never covers the admin console behind SSO. Most mature programmes run both: pentests for depth on new and high-risk scope, a bounty for the continuous external surface.

Questionnaires. Many security leaders regard long questionnaires as theatre that consumes both sides’ time. Others point out that the questionnaire is how procurement discovers that a vendor exists at all. The defensible middle is short questionnaires for tier 2 and evidence, not answers, for tier 1. Security ratings services that score vendors from outside scans are similarly contested: useful as a trigger to ask questions, weak as a verdict.

Day to day

Weekly. Thirty minutes on the disclosure and bounty queue with whoever triages it: new reports, anything past its clock, payouts to approve, disputed severities. Vendor intake: procurement or IT sends new requests, and you tier them, most in minutes. Tier-1 requests get a slot in the week.

During a pentest. A kickoff call to walk the scope and confirm accounts work. A short daily check-in on Slack or a call, so blockers (an expired key, a WAF blocking the testers) cost hours, not days. Critical findings reported the same day, not saved for the report. A readout meeting at the end with the engineering leads whose systems were tested.

Monthly. Pentest findings and bounty reports reviewed alongside every other source in the vulnerability metrics. Tier-1 vendor changes: new subprocessors, incidents, expiring reports.

Quarterly. Scope the next test, starting from what changed: new services, new integrations, the threat model’s open items. Review the bounty scope and reward table. Re-tier vendors whose access has grown.

Yearly. A programme review for the head of security: what each programme cost, what it found that nothing else found, what changed as a result, and what you propose for next year. Renewal decisions on the firm and the platform follow from it.

The meetings that matter are the pentest scoping session, where the test is won or lost; the readout, where engineering hears findings from someone outside; and the vendor review for any tier-1 purchase, where security is one voice beside procurement, legal and the business owner. At Lead level part of your job is coaching the engineers who run these day to day, so the scope, the report review and the vendor tier decisions do not all wait for you.

BY ORG SIZE
STARTUPunder 30 people

There is no security function. The first pentest arrives because an enterprise prospect asks for an attestation letter, and the CTO buys it. Spend the effort on scope: grey box, two tenants, authorisation and business-logic test cases, retest included. Publish a disclosure policy and security.txt with disclose.io terms on day one; skip a paid bounty until someone can fix within weeks. Vendor risk is a single spreadsheet: every tool with customer data or production access, who owns it, whether it is behind SSO, and how to revoke its tokens.

SCALE-UP30 to 300

The first security engineers turn these into programmes. Pentests become a yearly plan scoped from the threat models, with a report-review memo for each. The disclosure programme gets clocks and an owner, and a private bounty is the next step once triage keeps up. Customer questionnaires and SOC 2 make vendor management formal: tiers, evidence, contract clauses, and a review step in procurement. The hard part is capacity, because every new SaaS purchase and every report competes with the same two people.

ENTERPRISE300 and up

Each programme has owners: an offensive security team that runs internal tests and buys external ones, a bounty platform with managed triage, and a third-party risk team inside GRC or procurement with its own tooling. Your job as a Lead is the joints between them: pentest findings that never reach owners, bounty scopes that lag acquisitions, vendor tiers set by contract value instead of access. Regulators may mandate testing regimes such as threat-led tests for financial entities, and fourth parties, your vendors’ vendors, become the problem nobody owns.

ARTEFACT Scope a pentest and review its report ~75 MIN
YOU PRODUCEPentest scope and report-review memo

Template

# Pentest scope: <product or system>, <year>
Owner · Firm · Named testers · Dates · Tester-days · Retest included: yes/no

## Why this test, now
<What changed since the last test; which risks this test is meant to give assurance on.>

## Targets
| Target | Environment | Test type (grey/white box) | Accounts provided |
|---|---|---|---|

## Test cases (from the threat model and incidents)
| # | Abuse case | WSTG id or class | Why it matters here |
|---|---|---|---|

## Out of scope
- <third-party services, DoS, social engineering, production data> — <reason>

## Rules of engagement
Windows: <times, time zone> · Source IPs: <list> · Stop word: <word>
Emergency contacts: <ours> / <theirs>
Critical findings: reported <same day> to <who>
Data handling: <synthetic data; deletion of any real data within n days>
Authorisation signed by: <name, role>

## Deliverables
Report with coverage section and test log · Attestation letter · Retest by <date>

# Report-review memo: <firm>, <test dates>
Reviewed by · Date

## Coverage
Test cases run: <n of m> · Not run: <which, why> · Roles and tenants used: <list>

## Findings, re-rated
| Finding | Firm's rating | Our rating | Known or new | Owner | SLA tier |
|---|---|---|---|---|---|

## Lows
<Accepted as a batch / tracked / fixed; one line of reasoning.>

## What the new findings say about us
<Which review, scanner or threat model should have caught each, and the change we will make.>

## Decision
Firm: <renew / renew with conditions / replace> because <reason>
Next scope: <what changes>
Retest date: <date>
WORKED EXAMPLE

Brambling is a fictional digital wallet: 140 people, 1.2 million users, peer-to-peer transfers and card top-ups, a public API used by 300 merchants. Its security lead scoped this year’s test after a threat-model review of the new merchant payout feature.

Scope. Grey box, 12 tester-days, two named testers, retest within 60 days included. Targets: the wallet API and merchant API in staging, the iOS and Android apps against staging. Two tenants, each with a consumer, a merchant admin and a merchant viewer account. Test cases: one wallet reading another’s transactions (WSTG-ATHZ-04); a merchant viewer creating a payout (WSTG-ATHZ-03); concurrent transfers spending the same balance twice (WSTG-BUSL-04, process timing); bypassing the daily top-up limit through the API (WSTG-BUSL-05); replaying a signed payout request; account takeover through the phone-number change flow. Out of scope: the card processor’s endpoints and the identity-verification vendor’s service, which need those companies’ permission; denial of service.

Review memo. Coverage: 41 of 46 test cases run; the five not run depended on the identity-verification stub, which staging lacked, and they move to next year’s scope with a fix to the environment. Findings: no critical, one high, four medium, 22 low. The high, a race letting two concurrent transfers overdraw a balance by up to the transfer amount, was new and is the finding the test was bought for; the transfer service had no idempotency key test in CI, which is the process change. Two mediums were already in the backlog. One medium, a verbose error on the payout endpoint exposing internal merchant IDs, was re-rated to high because the IDs feed the payout request. Lows: 17 header and cookie items accepted together; five tracked. Decision: renew the firm, with different testers next year and a white-box test of the payout service.

Now you

You are the security lead at Crossbill, a fictional CPaaS company with 220 people that lets businesses send SMS and place voice calls through an API. A bank, your largest customer at 9% of revenue, needs a pentest attestation letter by the end of next quarter. Budget is 15 tester-days. Last year’s report from the same firm found two high, nine medium and 31 low findings, but it tested only the web console, because API keys for the testers were never issued, and three of the eleven high and medium findings were already in your backlog. Since then you have launched number porting and a voice IVR builder. Your incident history includes an SMS-pumping attack, in which bots triggered one-time-password messages to premium-rate numbers and ran up carrier charges. The carrier interconnects belong to other companies. Write this year’s pentest scope, then the review memo for last year’s report, ending with whether you keep the firm.

Self-check

DECIDE

You lead security at a 200-person payments company. The annual web and API pentest, from a firm you have used for three years, reports no critical, high or medium findings and 40 lows: missing security headers, cookie flags, TLS cipher suites, version banners, verbose errors. The coverage section is two paragraphs of boilerplate. The renewal quote is due Friday, procurement wants a yes or no, and the CFO has read 'no criticals' as good news. Do you renew?

READING
  1. DOC
    Penetration testing UK National Cyber Security Centre, 2017

    The audit framing this chapter uses: a pentest gives assurance on your vulnerability management rather than replacing it. Read the scoping and report sections before buying your next test.

  2. DOC
    OWASP Web Security Testing Guide OWASP

    The shared vocabulary for test cases, with identifiers you can put in a scope. Read the authorisation and business-logic chapters, and the foreword's warning against using it as a checklist.

  3. DOC
    Gold Standard Safe Harbor statement HackerOne, 2022

    A short safe-harbour text you can adopt or compare with your own, including what it says about third-party systems. Read it before your lawyer drafts something four pages long.

  4. DOC
    disclose.io disclose.io

    Open-source disclosure policy terms, safe-harbour language and a security.txt generator. The fastest route to a credible vulnerability disclosure programme at a company with no bounty budget.

  5. DOC
    Vulnerability Rating Taxonomy Bugcrowd

    Baseline P1 to P5 priorities for common vulnerability classes, open-sourced. Useful for agreeing ratings with researchers in advance, and for seeing which classes bounty programmes treat as noise.

  6. DOC
    NIST SP 800-161 Rev. 1: Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations Jon Boyens, Angela Smith, Nadya Bartol and others, NIST, 2022

    The long-form reference for supplier risk as part of enterprise risk. Read the overview and the scoping questionnaire; borrow the structure, not the volume.

  7. POST
    Unauthorized Access to Okta's Support Case Management System: Root Cause and Remediation Okta, 2023

    A vendor's own account of how its support system exposed customers, and why the first detection came from those customers. Read it, then ask what your vendor reviews would have asked.

  8. POST
    Widespread Data Theft Targets Salesforce Instances via Salesloft Drift Austin Larsen, Matt Lin, Tyler McLellan and Omar ElAhdan, Google Threat Intelligence Group, 2025

    How stolen OAuth tokens from one integration became access to many customers' CRM data. The case for reviewing integrations and token scopes, not only vendors.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Privacy and data protection: the NDPA, GDPR and engineering for them →