Guide

What is penetration testing? A plain guide

A pentest is a permitted attack on your own system by people who write down what worked. Here is how one runs.

Illustration: What is penetration testing? A plain guide

A penetration test, or pentest, is an authorised attack on your own system. Someone with an attacker's skills tries to break in, within rules you agree in advance, and writes down exactly what worked, how, and how to fix it. The goal is to find the weaknesses an attacker would use before an attacker does.

That is the short answer. This guide explains how a pentest runs, what types exist, what you receive at the end, and how it differs from a vulnerability scan or a bug bounty. It is written for founders, CTOs and engineering leads who have been asked for "a pentest report" and want to know what they are buying.

Why companies get a pentest

Most companies order their first pentest because someone asks for one:

  • an enterprise customer's security questionnaire;
  • an auditor for SOC 2, ISO 27001 or PCI DSS;
  • a cyber insurer at renewal;
  • an investor during due diligence;
  • a regulator, under rules such as NIS2 or DORA.

The better reason is simpler: you want to know what an attacker could do to your app today. Only 13 percent of UK businesses did any penetration testing in the past year, according to the UK government's 2025/26 breaches survey, while 43 percent had a breach or attack.

Source: UK DSIT, Cyber Security Breaches Survey 2025/26

How a pentest works, step by step

Recognised methodologies such as NIST SP 800-115, the OWASP Web Security Testing Guide and the Penetration Testing Execution Standard (PTES) describe the same broad phases.

Sources: NIST SP 800-115 OWASP Web Security Testing Guide PTES

1. Scope and rules of engagement

You agree what is in scope (for example, app.example.com and its API), what is out of scope (your payment provider, other customers' tenants), the test window, and who to call if something breaks. You provide test accounts, ideally two per role, so the tester can check whether one user can reach another's data. This document is also your legal authorisation.

2. Reconnaissance

The tester maps the target: subdomains, pages, API endpoints, JavaScript bundles, parameters, roles and the technologies in use. Good recon often finds things the client forgot existed, such as an old API version or a staging site.

3. Vulnerability discovery

Using both tools and manual work, the tester looks for weaknesses: broken access control, injection, authentication flaws, insecure configuration, exposed secrets and flaws in business logic.

4. Exploitation

This is what separates a pentest from a scan. The tester tries to actually use each weakness: read another user's invoice, escalate to admin, bypass payment. A finding that can be exploited is proven. A finding that cannot is lower priority or a false positive.

5. Reporting

Each finding gets a severity (usually a CVSS score), a description, step-by-step reproduction, evidence such as requests and responses, its business impact and a recommended fix.

6. Retest

After you fix the issues, the tester confirms each fix works. Auditors and customers often want to see the retest results, not just the original findings.

Types of pentest

Web application
The app users see in a browser, and the requests behind it.
API
REST or GraphQL endpoints, often used by mobile apps and integrations. See our OWASP API Top 10 guide.
External network
Everything you expose to the internet: servers, VPNs, mail, remote access.
Internal network
What an attacker could do once inside your office network or cloud VPC.
Cloud configuration
IAM, storage buckets, security groups and secrets in AWS, Azure or GCP.
Mobile
The app on the device, its storage and its API calls.
Social engineering
Phishing and phone-based attacks on staff and help desks.

Tests are also described by how much the tester knows in advance. In a black-box test they start with nothing but a URL. In a grey-box test they get user accounts and some documentation. In a white-box test they also see source code. For web apps and APIs, grey-box testing usually gives the best results for the time spent, because the tester does not waste days on things you could have told them.

What you get at the end

  • An executive summary in plain language: what was tested, the overall risk and the most important findings.
  • Technical findings with severity, reproduction steps, evidence and fixes.
  • A methodology section naming the standard followed and the scope.
  • An attestation letter that you can share with customers and auditors without exposing the details. We explain what it must contain in our SOC 2 letter guide.

Pentest vs vulnerability scan vs bug bounty

Vulnerability scanPenetration testBug bounty
What it doesChecks for known issues automaticallyAttempts real attacks within an agreed scopePays outside researchers per valid bug
Proves impactNoYes, by exploitingUsually
Finds logic and access-control flawsRarelyYesSometimes
Accepted by auditors as a pentestNoYesRarely on its own
CoverageBroad, shallowSystematic within scopeUneven, depends on who looks

Scanners are useful and cheap to run often, but they match patterns. They rarely know whether a response should have been visible to the user who received it. We explain why in why scanners miss business-logic flaws.

Source: Invicti, Vulnerability scanner limitations

How often to test

Many compliance frameworks expect a test at least once a year and after significant changes. In practice, a web app that ships every week changes far more than once a year. A sensible pattern for a growing company is a full test once a year, plus a focused test after major releases, new integrations or a large rewrite, especially one done with AI coding tools.

Traditional manual pentests are slow to book and run, which is why many companies test less often than they should. We built PentestLynx so the attack runs with AI agents in days, and senior human pentesters review and sign every report. Either way, the important thing is that someone tries to break in before an attacker does.

Frequently asked questions

How long does a penetration test take?

Active testing typically takes 3 to 20 days depending on scope, according to Stingrai, with the report following a few business days later. Booking a traditional firm often adds several weeks before testing starts.

Is a pentest the same as a vulnerability scan?

No. A scan checks for known issues automatically. A pentest tries to exploit weaknesses in your specific application, including access-control and business-logic flaws that scanners rarely find.

Who needs a pentest?

Companies preparing for SOC 2, ISO 27001 or PCI DSS, companies selling to enterprises, companies renewing cyber insurance, and companies in scope of NIS2 or DORA. More simply, any company with customer data that wants to know what an attacker could do.

See what an attacker would find in your app

Our AI agents attack your web app or API with your permission, prove each finding with a working exploit, and senior pentesters review and sign the report.

15-minute call

Talk to our team

A 15-minute call about your app, your deadline and what your auditor, insurer or customer needs to see.