A penetration test is an authorized attack on your own systems. Someone you have hired, or software you have pointed at the target, tries to break in the way a real attacker would, inside limits you agreed beforehand, and then tells you exactly how they did it.
Three words in that definition carry most of the meaning. Authorized means there is written permission and a defined scope, which is what separates a test from a crime. Attack means the tester does more than list possible problems. They try to use them. Tells means the result is a report your engineers can act on, with enough detail to reproduce each finding and fix it.
The term gets stretched to cover many things that are not penetration tests. This post explains what a test involves, what it produces, and where its edges are.
What happens during a test
Most tests follow the same sequence, whichever methodology the tester names.
- Scoping. You and the tester agree what is in bounds: which applications, hosts and accounts, during which hours, and what must not be touched. This is written down as the rules of engagement.
- Reconnaissance. The tester maps the target. Hostnames, open services, API endpoints, login flows, user roles, the technology in use.
- Finding weaknesses. Automated scanning covers the known problems quickly. Manual probing looks for the ones a tool cannot recognize, such as a missing permission check.
- Exploitation. The tester tries to use each weakness. A suspicion becomes a finding only when it produces a real effect.
- Going further. From a first foothold, the tester checks what else is now reachable. A small flaw often matters because of where it leads.
- Reporting. Each finding is written up with a severity, steps to reproduce it, evidence, and a recommended fix.
- Retesting. After your team ships fixes, the tester attacks the same spots again to confirm they hold.
A small example shows the difference between steps 3 and 4. Say an application serves invoices from a URL like this:
GET /api/invoices/1042 HTTP/1.1
Host: app.acme.test
Cookie: session=<user_a session>The tester, logged in as user_a, changes 1042 to 1043 and receives an invoice that belongs to a different company. That response is the proof. The report can now say "any logged-in customer can read any other customer's invoices" and show the request that does it. Nothing about that request looks unusual to an automated tool, because the tool does not know who owns invoice 1043.
What a penetration test is not
Several other security activities sit close to penetration testing and are often sold under the same name.
| Often confused with | What that activity is | How a penetration test differs |
|---|---|---|
| Vulnerability scan | Automated checks for known flaws and misconfigurations, usually on a schedule | A test exploits what it finds and looks for flaws no signature describes |
| Red team exercise | A goal-driven simulation of a specific adversary that also measures whether defenders notice | A test aims for broad coverage of an agreed scope, and stealth is not the point |
| Bug bounty | An open invitation to outside researchers, paid per valid report | A test has a fixed scope, time window and method, so you know what was covered |
| Security audit | A review of whether policies and controls exist and are followed | A test checks whether those controls hold when someone attacks them |
| Code review | Reading source code for defects | A test attacks the running system, including its configuration and the way parts fit together |
None of these is a lesser activity. A scanner checks thousands of hosts for a newly published flaw far faster than any person. A red team tells you things about detection and response that a penetration test never will. They answer different questions, and a mature program uses several of them. The glossary entry on vulnerability scanning versus penetration testing goes deeper on the most common mix-up.
A penetration test is also not a guarantee. A clean report means the tester found no way in, within this scope, in this amount of time, on these dates. It does not mean no way in exists.
What you should get at the end
The report is the product. A useful one contains:
- A summary for non-specialists. What was tested, how serious the results are, and what to do first.
- The scope and method. What was covered, what was excluded, which accounts and roles were used. This is the part that tells a reader how much weight a clean result deserves.
- Findings. Each with a severity rating, the affected component, exact reproduction steps, evidence that the exploit worked, and a fix.
- Retest results. Which findings were confirmed fixed, and when.
Many providers also issue a short attestation letter you can share with customers and auditors without handing over the technical detail.
One practical check of report quality: give a finding to an engineer who was not involved in the test. If they can reproduce it from the report alone in a few minutes, the report is doing its job. If they have to email the tester to ask what was meant, it is not.
Who does the testing
Penetration tests are carried out by in-house security teams, by consultancies, by platforms that deliver testing as an ongoing service, and increasingly by AI agents that plan and run attacks themselves. Each has trade-offs in depth, speed and cost, covered in AI pentesting vs. traditional pentesting.
Whoever does the work, two things matter more than the label. The tester needs enough skill to go past what a scanner reports. And the tester should be independent of the team that built or runs the system, since people rarely attack their own assumptions well. Some compliance standards make that independence a formal requirement.
The limits worth knowing
Every penetration test is bounded in three ways.
- Scope. Anything left out of the agreement was not tested. Forgotten subdomains and internal admin tools are common gaps.
- Time. A tester with ten days explores the most promising paths first. Paths they never reached stay unexplored.
- Date. The report describes the system as it was during the test. A feature released the following week was never looked at.
The third limit is the one that has changed most in recent years, because software now changes far more often than tests are run. Whether a yearly test still fits that reality is the subject of a separate post.
Key takeaways
- A penetration test is an authorized, scoped attack that proves weaknesses by exploiting them and reports how to fix them.
- It is different from a vulnerability scan, a red team exercise, a bug bounty, an audit and a code review. Each answers a different question.
- The report is the deliverable. Judge it by whether an engineer can reproduce each finding without help.
- A clean result is bounded by scope, time and date. It describes what was tested then, and nothing after.