Skip to content
Cyber Security Firms

What Is Penetration Testing? The Phases, Types and Limits

A penetration test is an authorized attack on your own systems, run by someone you pay to succeed. What varies enormously is the scope, the skill and what you get back, which is why three quotes for the same request arrive at three prices.

Intermediate13 min readUpdated
What Is Penetration Testing? The Phases, Types and Limits

A customer's security questionnaire asked for one, or the insurer did, or a compliance deadline did. So you request quotes, and three firms come back with three prices for what sounds like the same job. One is running an automated scan. One is testing a single web application by hand for two weeks. One wants to phone your staff and walk into your office. All three are calling it a penetration test, and all three are entitled to. The word describes an exercise, not a fixed product, and the scope is where every dollar of the difference lives.

What Is Penetration Testing?

NIST gives the definition of record in SP 800-115, the Technical Guide to Information Security Testing and Assessment: penetration testing is security testing in which assessors mimic real world attacks to identify methods for circumventing the security features of an application, system or network. It often involves launching real attacks on real systems and data using the tools and techniques attackers use.

The part of that definition people skip is the next sentence. Most penetration tests look for combinations of vulnerabilities across one or more systems that give more access than any single vulnerability would. That is the whole value. A list of individual flaws is a scan. A test tells you that a forgotten staging server, a reused password and a permissive file share add up to a route into payroll.

NIST is also honest about the cost in a way vendor pages are not. Testing is labor intensive, and systems may be damaged or rendered inoperable during one, even when the organization benefits from learning how. Experienced testers reduce that risk and nobody eliminates it, which is why the first phase is paperwork.

What Are the 5 Phases of Penetration Testing?

Most descriptions list five, and they are broadly the same five, sitting between two steps that get less attention than they deserve.

How a penetration test runs, start to finish
  1. Scope and authorizeWhat is in bounds, in writing, before anything starts
  2. ReconnaissanceDomains, staff names, exposed services, public records
  3. Scanning and analysisWhat is running, which versions, which known flaws
  4. ExploitationProving a flaw is real by actually using it
  5. Escalation and pivotHow far one foothold reaches across the estate
  6. Cleanup and reportTools removed, findings written up and rated
Steps two through five are what people picture when they buy a test. Step one is what makes it lawful, and step six is the only part you keep.

Search results will give you four phases, five phases and seven phases, which reads like disagreement and is not. The counts differ because different documents draw the boundaries in different places.

StandardCountThe phases as written
NIST SP 800-115FourPlanning, discovery, attack and reporting, with reporting running alongside the other three rather than after them
The common industry fiveFiveReconnaissance, scanning, gaining access, maintaining access, then analysis and reporting
Penetration Testing Execution StandardSevenPre-engagement interactions, intelligence gathering, threat modeling, vulnerability analysis, exploitation, post exploitation, reporting

Two details from NIST change how you read a proposal. Attack and discovery form a loop rather than a line, because a successful exploit reveals new systems that then have to be discovered and analyzed in turn. And reporting is not a phase at the end: the assessment plan is written during planning and logs are kept throughout, which is why a firm that cannot show you a sample report is telling you something.

PTES is the standard most testing firms name in a proposal, and its seven sections put the commercial reality first, with pre-engagement interactions ahead of intelligence gathering. Its main page was last edited in 2014 and a version two has been pending ever since, so treat it as a stable checklist rather than current guidance. For anything web facing the live standard is the OWASP Web Security Testing Guide, a framework of best practices at stable version 4.2 whose individual tests carry identifiers in the form WSTG followed by a category and a number. A report citing those identifiers is a report you can check.

Types of Penetration Testing

Two different questions get answered with the word "type", and confusing them is how buyers end up with the wrong test. The first is what gets attacked.

  • Network testing. External testing takes on what faces the internet. Internal testing starts from a position inside, simulating a stolen laptop or a contractor's connection.
  • Web application and API testing. One application, tested by hand against the OWASP guide. The most commonly bought test, and the one compliance usually means.
  • Wireless testing. The office network, guest network separation, and anything still running old authentication.
  • Physical testing. Doors, badges, reception, server rooms. NIST notes that testers doing this should be able to prove their authorization to a guard on the spot.
  • Social engineering testing. Phishing simulations, calls to the help desk, password resets requested for someone who is not there.
  • Cloud and configuration testing. Identity permissions, storage buckets, and whether one compromised workload reaches the rest of the account.

The second question is how much the tester is told before starting.

ApproachWhat the tester getsWhat it is good for
Black boxThe company name and nothing elseRealism, and testing what an outsider can find unaided
Gray boxSome documentation and a low privilege accountDepth per dollar, which is why most engagements are gray box
White boxFull documentation, source code, credentialsFinding the most flaws in the time available

NIST adds a third axis that matters more than either: overt against covert. Overt testing runs with the knowledge and consent of your IT staff, which limits the impact and turns the test into a training exercise. Covert testing runs without their knowledge but with the full knowledge and permission of upper management, and its purpose is to examine the damage an adversary can cause rather than to catalogue vulnerabilities. Covert tests are the ones that need a named point of contact who can stop a real incident response at two in the morning.

Penetration Testing vs Vulnerability Scanning

This is the comparison that decides your budget, and it is the one nobody explains before the invoice arrives.

Compare
A vulnerability scan
An automated tool compares what is running on your systems against a database of known flaws and produces a list. It is fast, cheap enough to run every month, and good at catching the missing patch nobody noticed. It also produces false positives, and it cannot tell you whether three medium findings chain together into one critical route.
A penetration test
A person tries to break in and reports what they actually achieved. NIST puts the difference in one line: vulnerability scanners check only for the possible existence of a vulnerability, while the attack phase of a penetration test exploits the vulnerability to confirm its existence. That confirmation is the expensive part, and it is what you are paying for.

Both belong in the same program, on different cycles. The federal answer for companies holding customer financial information sits in the FTC Safeguards Rule, which at 16 CFR 314.4(d)(2) requires annual penetration testing and vulnerability assessments at least every six months, unless continuous monitoring replaces them. That cadence is a sensible baseline even where the rule does not apply to you.

Is Penetration Testing Illegal?

Without written authorization, yes. The Computer Fraud and Abuse Act makes it a federal crime to intentionally access a computer without authorization or to exceed authorized access, and nothing about good intentions changes the elements of that offense. The technique a paid tester uses on Tuesday is the same technique that is charged as a crime on Wednesday. Authorization is the entire difference.

That authorization has a name in the standards. NIST defines rules of engagement as the detailed guidelines and constraints on the execution of a security test, established before testing starts, giving the test team authority to conduct defined activities without needing additional permission. In practice the document lists the systems in scope, the addresses testing will come from, the hours, the techniques that are off limits, the named contact who can call a halt, and the signature of somebody with the standing to authorize it.

Three practical consequences. You cannot authorize testing of a system you do not own, so a cloud provider's infrastructure and a partner's network need their permission, not yours. Covert testers carry proof of authorization, because the people who find them will be your own staff or the police. And scope creep is not a gray area: NIST's guidance is that the plan is followed unless specific permission to deviate has been obtained.

Who Performs Penetration Tests?

Almost always an outside specialist, because the value comes from someone with no prior knowledge of how the system was built and no stake in the answer. The trade name for the role is ethical hacker, which describes the permission rather than the technique. Larger organizations also run an internal team and use external testing to check its work.

There is no single license to look for, so buyers use the certifications as a proxy, and OSCP and the CREST qualifications are the ones requiring a practical exam rather than a multiple choice paper. Ask for the certifications of the individuals assigned to your test, not the firm's.

The Bureau of Labor Statistics does not track penetration testers as a separate occupation. The closest published figure covers information security analysts, whose median annual wage was $129,180 in May 2025, with employment projected to grow 21 percent between 2025 and 2035. Experienced testers sit above that median, which is the honest explanation for what a two week engagement costs.

What Happens After a Penetration Test

The report is the product. A useful one gives every finding a severity rating, the exact steps to reproduce it, evidence that it worked, the business consequence in plain language, and specific remediation guidance rather than "apply the vendor patch". It also states what was tested and what was not, which is the section to read first.

A stapled printed report lying flat on a plain desk with a pen beside it

Then the work starts. Fixes get owners and dates, the high severity items go first, and the tester retests to confirm. A retest clause in the original contract costs far less than a second engagement, and without one the findings tend to sit. Where the report points at architecture rather than a patch, the answers are structural: multi-factor authentication on the accounts that were reused, and per application access instead of network membership where one foothold reached too far.

How to Buy a Penetration Test

The quote you get is a function of the scope you write, so write it before you ask. These are the questions that separate a real engagement from a scan with a cover page.

Key takeaways

  • A penetration test is an authorized simulation of a real attack, run to prove which weaknesses can actually be exploited.
  • The phase counts differ by standard: four in NIST SP 800-115, five in common usage, seven in PTES. The work is the same.
  • Types split two ways: what gets tested, and how much the tester is told. Overt or covert is a third choice that changes the exercise.
  • Against a vulnerability scan, the difference is confirmation. A scanner reports what might be exploitable; a test proves what is.
  • Without written authorization it is a federal crime. Rules of engagement are the document that makes it lawful.
  • The FTC Safeguards Rule sets a workable baseline for everyone: annual testing, scanning at least every six months.
  • Scope is everything. A clean report says what was tested, not that you are secure.

Common questions

Is pentesting illegal?

Testing without written authorization is a federal crime under the Computer Fraud and Abuse Act, which covers accessing a computer without authorization or exceeding authorized access. With signed rules of engagement from someone entitled to give them, the same work is lawful. You cannot authorize testing of systems you do not own.

What are the 5 phases of penetration testing?

Reconnaissance, scanning, gaining access, maintaining access, and analysis with reporting. NIST groups the same work into four phases, planning, discovery, attack and reporting, and PTES splits it into seven. Different boundaries, identical activity. The two phases buyers underrate are the scoping at the start and the retest at the end.

What are the two types of penetration testing?

The question usually means internal against external: testing from a position inside your network, or from the internet. It can also mean overt against covert, which is whether your own IT staff know the test is happening, or black box against white box, which is how much information the tester is given up front.

What is the salary of a penetration tester?

The Bureau of Labor Statistics does not publish a separate figure for penetration testers. The closest occupation is information security analysts, with a median annual wage of $129,180 in May 2025 and projected employment growth of 21 percent from 2025 to 2035. Experienced testers at consultancies typically earn above that median.

What is the difference between penetration testing and vulnerability scanning?

A scanner compares what is running against a database of known flaws and reports what might be exploitable, quickly and cheaply. A penetration test confirms a flaw by exploiting it, and chains several together to show a real route. NIST states the distinction directly. Most programs need both, on different cycles.

What is ethical hacking?

Ethical hacking is using attack techniques against systems with the owner's permission, to find weaknesses before someone else does. Penetration testing is the formal, scoped version of it, delivered as an engagement with rules of engagement and a report. The technique is identical to a criminal attack; the authorization is what differs.

How often should you get a penetration test?

Annually is the common answer, and it is the requirement in the FTC Safeguards Rule for companies holding customer financial information, alongside vulnerability assessments at least every six months. Test again after any material change: a new public application, a migration, an acquisition, or a significant rewrite.

What tools do penetration testers use?

Kali Linux as the working environment, Nmap for port and service discovery, vulnerability scanners for the first pass, Burp Suite or OWASP ZAP for web applications, Wireshark for traffic, Metasploit for exploitation, and credential cracking tools against captured hashes. The tools are common knowledge. Judgment about what to chain together is what you hire.

Is a red team engagement the same as a penetration test?

No. A penetration test aims to find as many exploitable weaknesses as possible in a defined scope. A red team engagement pursues one objective, covertly, to test whether your detection and response notice. NIST describes covert testing as examining the damage an adversary can cause rather than cataloguing vulnerabilities.

Does a small business need a penetration test?

Only after the basics are in place. Multi-factor authentication everywhere, patching, backups you have restored from, and no shared administrator accounts come first, because a test will otherwise report exactly those at consultancy prices. Once they are done, an annual external test starts finding the things you could not have guessed.

On this page
Reviewed by

Daniel Reyes

  • CISSP
  • 12 years in security operations
  • Austin, TX

Daniel Reyes is a CISSP who spent twelve years in security operations, most recently leading a detection and response team for a mid-sized healthcare group in Texas. He reviews every resource and breach report on Cyber Security Firms for technical accuracy before it publishes.

Most of the people he has trained arrived having been told too much: a dozen acronyms, six vendors, and no clear idea which risk was theirs. His approach is to explain what an attack actually does before naming the tool that stops it, on the basis that most breaches start with something a reader could have recognised.

Read the full bio and how we research →