In plain words: what happens during a test
The NCSC defines penetration testing as "a method for gaining assurance in the security of an IT system by attempting to breach some or all of that system's security" (NCSC guidance). For a web app, that usually goes like this:
- Scoping. You and the testers agree what is included: which addresses, which parts of the app, which user types, and what is off limits, such as your payment provider.
- Access. You give the testers test accounts, one for each kind of user, so they can see the app the way customers and staff do.
- Testing. For a set number of days, the testers try to reach data and actions they should not. Can a customer see another customer's invoice? Can an ordinary user open the admin page? Can someone change the price of an order before paying?
- Report. You receive a list of what they found, how serious each problem is, the proof, and how to fix it.
- Retest. After your developer fixes the problems, the testers check the fixes worked.
The NCSC is clear about two limits. A test shows the state of your system on the day it ran, so it says "it's not uncommon for a year or more to elapse between penetration tests" and warns against relying on it alone. And decisions about which risks to fix remain yours: "risk assessment and decisions on the application of fixes are your responsibility."
Penetration test, vulnerability scan, security audit: what is the difference?
People use these words loosely. Roughly:
| What it is | Who or what does it | What you learn | |
|---|---|---|---|
| Vulnerability scan | A fixed list of automated checks | Software | Known, common problems, often with false alarms |
| Penetration test | An attempt to actually get in and prove it | People, or AI agents, or both | Which weaknesses are real and what they lead to |
| Security audit | A review of policies, settings and practices against a standard | An auditor | Whether you do what a standard expects, on paper and in practice |
A scan lists doors that might be unlocked. A penetration test tries the handles and tells you which ones opened and what was behind them. An audit checks that you have a policy about locking doors and follow it.
AI-run penetration tests are a newer option that sits between the first two rows. Our article What does an AI penetration test actually check? explains what they cover and what they miss.
When you need one
Someone else asks for it. This is the most common reason for a small company. A larger customer's security questionnaire asks for the date of your last test. An investor's due diligence list includes it. Your cyber insurer asks. In each case, find out what they will accept before you buy: some want a test by a qualified firm with a letter you can share.
You handle card payments yourself. The card industry's guidance on penetration testing says the standard requires one "at least annually and after any significant change" for systems that handle card data (PCI Security Standards Council). If a provider such as Stripe or PayPal handles the card details on its own pages, much of this falls on them; ask your payment provider which rules apply to you.
Your app holds sensitive records. Health information, financial details, children's data, legal documents, or many companies' data in one system. If a leak would hurt people, a test by an experienced person is worth the price.
You are about to grow fast. A big launch, a press push or a move into a regulated market is a good moment, because problems are cheaper to fix before thousands of people depend on the app.
When it can probably wait
If you are still testing an idea with a prototype and no real customer data, or you run a brochure site on a hosted platform with no customer accounts, a full penetration test is likely more than you need today.
Spend the time and money on the basics first: two-step sign-in on every account that controls the business, backups you have tried restoring, your platform's built-in security checks, and an outside test of the live app after big changes. Then, when someone asks for a penetration test, you will have fewer findings and a cheaper retest.
What you get at the end
The NCSC says a report should include the issues found, a method of resolving each one and an assessment of the risk each one poses. Expect findings rated by severity (often critical, high, medium, low and informational), each with steps to reproduce it. A good report also has a short overview a manager can read in five minutes.
Do not file the report and forget it. The value is in what gets fixed. Agree with your developer which findings will be fixed by when, and book the retest.
How to buy one without being technical
You do not need to judge the testers' methods. You do need clear answers to these:
- "What exactly is in scope, and what is not?"
- "Who will do the testing, and what qualifications do they hold?"
- "Will you test the live app or a copy? What happens if something breaks?"
- "What will the report look like? Can I see an example?"
- "Is a retest included?"
- "Can we share a summary with our customers?"
Prices vary widely, from about $100 for some AI-run tests to tens of thousands for large, person-led tests. Our article How much does a penetration test cost? lists published prices with their sources, and How often should you test? covers what to do between tests.