Duty analyst on shift

UK Cyber Defence

Penetration testing · Guide · The basics

What is penetration testingand how does it work?

A penetration test is the closest thing to finding out how an attack would go without having one. This guide explains what penetration testing is, how an authorised test runs from the first call to the retest, the main types of test, how it differs from a vulnerability scan, how often you need one, and how to choose a provider you can trust.

Plain EnglishUpdated November 2026Scoping to retestHow to choose a tester

01The short answer

Penetration testing is an authorised, simulated attack on your systems, carried out by skilled testers to show what a real attacker could do.

A penetration test, often shortened to pen test, is a security assessment in which qualified people try to break into your systems the way an attacker would, with your written permission and within agreed limits. They find weaknesses, try to use them, and show how far they could get: whose data they could read, which systems they could control, and which single fixes would stop them. The result is a report your board can read and your engineers can act on, followed by a retest to prove the fixes work. The National Cyber Security Centre describes it as a way of gaining assurance in a system's security by trying to breach it with the tools and techniques an adversary might use. It is sometimes called ethical hacking.

Also called
Pen test, pentest, ethical hacking, security testing
Done by
Qualified testers, ideally from an accredited company
Typical length
Two to five days for most single tests, including the report
What you receive
A plain-English summary, a technical report, a fix list and a retest

13%

Of UK businesses carried out a penetration test in the past year

43%

Of UK businesses identified a breach or attack in the same period

3,000

Penetration tests completed under the NCSC's CHECK scheme for public bodies and CNI in a year

5 days

Working days from the end of testing to our report

  1. Of UK businesses carried out a penetration test in the past year: Cyber Security Breaches Survey 2025/26 (7% of charities)
  2. Of UK businesses identified a breach or attack in the same period: Cyber Security Breaches Survey 2025/26
  3. Penetration tests completed under the NCSC's CHECK scheme for public bodies and CNI in a year: NCSC Annual Review 2026, to August 2026
  4. Working days from the end of testing to our report: Our standard for every engagement, retest included in the price

What it is

What penetration testing is, and what it is not

A penetration test answers a practical question: if someone set out to attack this system today, how far would they get? It is different from a checklist or an automated scan because a person is doing the work. A tester notices that a forgotten test server shares a password with a live one, that a low-risk flaw becomes a serious one when combined with another, or that the web application lets one customer see another's invoices if you change a number in the address bar. Those are the findings that matter, and no scanner reports them.

The NCSC compares a penetration test to an external financial audit. It is a check that your own processes for finding and fixing weaknesses are working, not the main way of finding them, and the NCSC's guidance is blunt that it is "not a magic bullet". Three limits are worth knowing before you commission one:

  • It is a snapshot. It shows what was exploitable on the days of testing. New systems, changes and newly published vulnerabilities arrive the following week.
  • It covers what was in scope. A test of your website says nothing about your office network, and a tester who stays inside the agreed boundary will not stumble on the forgotten server outside it.
  • It is time-boxed. A real attacker has as long as they like. A tester has the days you paid for, which is why experience and method matter so much.

Why permission matters

Accessing a computer system without the owner's permission can be an offence under the Computer Misuse Act 1990. The difference between a penetration test and an attack is authorisation: a written agreement, signed by someone entitled to give it, that sets out what may be tested, how and when. A reputable tester will not start without it, and will ask you to confirm that you have the right to authorise testing of anything hosted or run by a third party, such as a cloud provider or a software supplier.

How it works

How a penetration test works, step by step

  1. Stage 01

    Scoping

    A short call to agree what matters and why: which systems, which kind of test, what the tester knows in advance, the test window and anything fragile. The outcome is a written scope, a number of days and a fixed price.

  2. Stage 02

    Authorisation and rules of engagement

    Written permission from someone entitled to give it, named contacts on both sides, the hours testing may run, what the tester must stop and report at once, and how sensitive data found during the test will be handled.

  3. Stage 03

    Reconnaissance

    The tester maps what is there: hosts, services, applications, user roles, exposed interfaces and what the internet already knows about you from DNS, certificates and public sources.

  4. Stage 04

    Finding weaknesses

    Automated tools and manual work together identify candidate weaknesses: missing patches, weak configuration, flawed logic, poor access control, default or reused credentials.

  5. Stage 05

    Exploitation and validation

    The tester tries to use the weaknesses, carefully and within the rules, to prove which are real and what each allows. This is what turns a list of possibilities into evidence.

  6. Stage 06

    Attack paths

    Findings are chained the way an attacker would chain them, to show the route from a starting point to what you care about, and which link in the chain is cheapest to break.

  7. Stage 07

    Reporting and debrief

    An executive summary for leadership, a technical report with evidence and reproduction steps for engineers, a prioritised fix list, and a call to walk through it.

  8. Stage 08

    Remediation and retest

    You fix the findings, and the tester comes back to confirm the fixes work and have not opened anything new. A test without a retest leaves you guessing.

What to expect

What to expect, from scoping to retest

Before the test. The more the tester knows, the more of their time goes on testing rather than discovery. Expect to be asked for a list of the systems or addresses in scope, test accounts for each user role if an application is being tested, a technical contact who can be reached during testing, and any dates to avoid. Tell your IT provider, your hosting or cloud provider if their terms require it, and your security operations centre if you have one, unless the point of the exercise is to see whether they notice. Make sure your backups are current; testers work carefully, but nobody can rule out disruption entirely.

How much the tester is told. Tests are usually described by how much information the tester starts with.

ApproachWhat the tester is givenGood for
Black box (closed box)Little or nothing beyond a company name or a list of addressesSeeing what an outsider can find on their own; it spends days on discovery
Grey boxSome knowledge, such as user accounts for each role or a network diagramMost tests: the best balance of realism and coverage for the money
White box (open box)Full information, which may include source code, configuration and architectureThorough assurance of an important application or system
Assumed breachA foothold as an ordinary user, as though a phishing email had workedInternal networks, where the question is what happens next

During the test. Testing usually runs during agreed hours. The tester should tell you at once about anything critical, such as an exposed database or evidence that someone else has already been in, rather than saving it for the report. If something looks fragile, a good tester stops and asks.

After the test. Expect the report within a week; ours is due within five working days of the end of testing. Read the attack paths before the list of findings, because they tell you which fixes matter most. The NCSC's advice is to assess findings through your own risk process, consider fixes other than the one proposed, and ask why a previously unknown weakness was not caught by your own checks. Then fix, and book the retest.

Types of test

The main types of penetration test

Most organisations start with an external test and a test of their most important application, then add the others as the estate and the risks demand. Combining tests in one engagement usually costs less than booking them separately.

Testing versus scanning

Penetration testing vs vulnerability scanning

The two are often confused, and some providers sell an automated scan with a report wrapped around it as a penetration test. They are different products, and both have a place.

Vulnerability scanPenetration testRed team
What it isAn automated check for known weaknessesA person trying to exploit weaknesses within an agreed scopeAn objective-led exercise, often over weeks, against people, process and technology
What it tells youWhat might be wrongWhat can actually be done, and howWhether your organisation would detect and stop a determined attacker
False positivesCommon; results need checkingRemoved by the tester, who proves each findingNot applicable
Business logic and chained attacksNot foundFoundFound, and used
How oftenContinuously, or at least monthlyAt least once a year and after significant changeEvery year or two, once testing is mature
Relative costLowModerate, priced in daysHigher, set by the objective

A scan is the smoke alarm and a penetration test is the fire inspection. You want the alarm all the time and the inspection regularly; neither does the other's job. Our free External Exposure Report runs eight checks against your domain in a few minutes, which is a useful way to see the obvious issues before paying anyone to look for the subtle ones.

Cyber Essentials Plus is not a penetration test either. It is an assessor's technical check that the five Cyber Essentials controls are in place, using sampling and vulnerability scanning. It is a valuable baseline, and many contracts require it, but it does not try to break in. Our page on Cyber Essentials explains the scheme.

When you need one

How often you need a penetration test, and who requires one

For most organisations the sensible minimum is once a year, and after any significant change: a new application, a major release, a move to the cloud, a merger or a new office network. Some organisations are told how often by someone else.

  • Card payments. PCI DSS requirement 11.4 calls for internal and external penetration testing at least every twelve months and after significant changes, and service providers that rely on network segmentation must test it at least every six months.
  • ISO 27001. The standard does not name penetration testing, but auditors expect evidence that technical vulnerabilities are found and dealt with, and a test report with a retest is the usual evidence.
  • Financial services in the EU. DORA requires regular testing of digital operational resilience, and threat-led penetration testing every three years for the firms designated for it.
  • Government and critical national infrastructure. The NCSC recommends that public sector bodies and CNI operators use its CHECK scheme; outside the public sector, CHECK is not required. In the year to August 2026 CHECK providers completed about 3,000 tests for more than 680 organisations.
  • Customers and insurers. Supplier questionnaires and cyber insurance proposals increasingly ask when you were last tested and whether the findings were fixed.

The government's Cyber Security Breaches Survey 2025/26 found that only 13% of UK businesses had commissioned a penetration test in the previous twelve months, against 43% that identified a breach or attack. Far more organisations are attacked each year than are tested.

Choosing a provider

How to choose a penetration testing provider

Penetration testing is a skilled service bought on trust, and the quality varies more than the prices suggest. These are the questions that separate a good provider from a scan with a logo on it.

Is the company accredited, and are the testers certified? In the UK, CREST accredits penetration testing companies and certifies individual testers; check both, on CREST's own register rather than a logo on a slide. For public sector and CNI work, ask whether the company is in the NCSC's CHECK scheme.

How much of the work is manual? Ask what proportion of the days a person spends testing by hand, and what the tools do. A low price for a large scope usually means the answer is "not much".

Can we see a sample report? You are buying the report as much as the testing. Look for an executive summary written for people who are not technical, findings with evidence and reproduction steps, risk ratings that make sense for your business, and attack paths that show how findings combine.

Is the retest included, and is the price fixed? A day rate with no ceiling transfers the risk of the scope growing to you. A retest charged as an extra changes the comparison between quotes.

What methodology do you follow? Recognised frameworks such as PTES, OSSTMM and the OWASP Testing Guide, with findings mapped to MITRE ATT&CK, are a sign that the work is repeatable rather than improvised.

How do you keep us safe during testing? Ask about rules of engagement, who the tester will call if something breaks or something critical turns up, and how data found during the test is protected and deleted.

Our penetration test cost guide sets out what tests cost in the UK and six questions to ask of any quote.

Where we come in

How UK Cyber Defence tests

UK Cyber Defence is a CREST member company accredited for penetration testing, and our testers are CREST-certified. They spend their other days alongside our security operations centre watching real intrusions, so they know which weaknesses attackers use and which are noise.

We test external infrastructure, internal networks and Active Directory, web applications, APIs, mobile apps, cloud and Microsoft 365, wireless and run red team exercises, and we include AI assistants in scope where your systems use them.

What you can expect from us: a thirty-minute scoping call, one published day rate of £1,050 + VAT, a fixed price agreed before we start, a plain-English executive summary and a technical report within five working days, a debrief, and a retest included in the price. Methodologies are OSSTMM, PTES and the OWASP testing guides, with every finding and attack path mapped to MITRE ATT&CK. For SOC365 clients, findings go straight into detections, so the route a tester found cannot be used quietly afterwards.

You can estimate the cost of a test yourself in a couple of minutes on our penetration testing page. If a test finds that someone has already been in, our incident response team picks it up from there.

Questions

Questions about penetration testing

What is penetration testing in simple terms?

Penetration testing is an authorised, simulated attack on your systems by skilled testers. They try to find and use the weaknesses a real attacker would, show what that would allow, and tell you what to fix first. It is sometimes called a pen test or ethical hacking.

Is penetration testing legal?

Yes, when the owner of the system has given written permission. Accessing a computer system without permission can be an offence under the Computer Misuse Act 1990, so every legitimate test begins with a signed authorisation setting out what may be tested, how and when.

What is the difference between a penetration test and a vulnerability scan?

A vulnerability scan is an automated check that lists known weaknesses that might be present. A penetration test is carried out by a person who tries to exploit those weaknesses, removes the false alarms, finds flaws no scanner can see, and shows how they combine into a real attack.

How long does a penetration test take?

Most single tests take two to five days including the report: an external test of a small network around three, a standard web application around five. Larger or combined scopes take longer, and red team exercises can run for weeks.

How much does a penetration test cost in the UK?

It depends on the number of days the scope needs. At our published rate of £1,050 + VAT a day, typical single tests cost between about £2,100 and £5,250 + VAT. Our penetration test cost guide has worked examples for each type.

How often should we have a penetration test?

At least once a year and after any significant change, such as a new application, a major release or a move to the cloud. Card payment standards, some regulators and many customers set their own requirements.

Will a penetration test disrupt our systems?

It should not. Tests are scoped to avoid fragile systems, run at agreed times, and stopped if anything looks unstable. Nobody can rule out disruption entirely, which is why current backups and a reachable technical contact are part of the preparation.

What are black box, grey box and white box testing?

They describe how much the tester is told at the start. Black box means almost nothing, grey box means some information such as user accounts, and white box means full information including, sometimes, source code. Grey box gives the best coverage for the money in most cases.

Is Cyber Essentials Plus a penetration test?

No. Cyber Essentials Plus is an assessor's technical check that five basic controls are in place. It is a useful baseline but does not attempt to break in. Many organisations hold both.

What happens after a penetration test?

You receive a report and a debrief, fix the findings in order of risk, and the tester returns to confirm the fixes work. The findings should also feed your own vulnerability management and, if you have one, your security monitoring.

Start a conversation

Find out how far an attacker would get.

A thirty-minute call to agree what to test, how many days it needs and the fixed price.