Skip to content

The Penetration Testing Process: Every Phase, Step by Step

Penetration testing process, phase by phase: scoping, reconnaissance, discovery, exploitation, post-exploitation, reporting, and retest, and your part in each.

Omar KhandakerBy , Senior Security ConsultantUpdated 10 min read

Penetration Testing ServicesExternal network from $4,200, web app from $5,200Fixed scope, free retest, no hourly billing.

Get my fixed price

Every credible penetration test follows the same arc, whether it targets a web application, a network, or a cloud account. The names shift between methodologies, but the work moves through seven phases: scoping, reconnaissance, discovery, exploitation, post-exploitation, reporting, and retest. Knowing the arc tells you what a good provider is doing at each point, what they need from you, and where the value actually comes from.

This guide walks the full penetration testing life cycle, end to end. It follows the structure of the Penetration Testing Execution Standard and the way we run engagements, described in full on our penetration testing methodology page.

The seven phases at a glance

# Phase What happens Typical duration What you provide Output
1 Scoping Targets, exclusions, test type and windows agreed About a day Assets, constraints, a contact Signed rules of engagement and a fixed price
2 Reconnaissance The target is mapped from public and light-touch sources 1 to 2 days Nothing further An attacker’s-eye view of your footprint
3 Discovery Services and versions enumerated and analyzed for weaknesses 1 to 3 days Access or credentials for grey/white box A ranked list of candidate weaknesses
4 Exploitation Candidate weaknesses proven safely by using them 2 to 5 days An escalation contact Validated findings with proof of concept
5 Post-exploitation Reach, privilege and lateral movement measured 1 to 4 days Agreed objectives The blast radius: the data, privileges and hosts one foothold reaches
6 Reporting Findings written for leadership, engineers and auditors Two days after testing ends Time for the readout Executive and technical report, attestation letter
7 Retest Fixes verified and the report updated Scheduled after fixes Remediated systems Findings confirmed closed

Durations are indicative. For a standard single-target scope, phases 2 to 5 fit in about a week of testing; the upper ends apply to larger scopes, and exact dates are set during scoping. The phases stay the same across test types; our network penetration testing methodology guide shows them applied to infrastructure.

How the phases map to PTES and NIST SP 800-115

Methodologies name the phases differently but describe the same arc. The seven phases above expand the Penetration Testing Execution Standard (which runs from pre-engagement interactions through intelligence gathering, threat modeling, vulnerability analysis, exploitation, post-exploitation, and reporting), and they compress into the four stages NIST SP 800-115 defines: planning (phase 1), discovery (phases 2 and 3), attack (phases 4 and 5), and reporting (phases 6 and 7). A shorter framing, such as the six phases in our what is penetration testing explainer, simply folds exploitation and post-exploitation into a single exploitation phase. The work is the same; only the boundaries move.

How many phases does a penetration test have: five, six or seven?

All three counts describe the same test. The number depends on where a model draws its lines.

Model Phases counted
Seven (this guide) Scoping, reconnaissance, discovery, exploitation, post-exploitation, reporting, retest
Six The same, with post-exploitation folded into exploitation
Five Usually reconnaissance, scanning, gaining access, maintaining access, reporting; scoping and retest sit outside the count
Four (NIST SP 800-115) Planning, discovery, attack, reporting

Phase 1: Scoping and rules of engagement

Nothing starts until scope is written down. Scoping decides what is tested, what is off limits, when testing may run, and what happens if something breaks. It is where the fixed price is set, because the price follows the scope, not the hour.

A scoping conversation settles a short list of questions. Which assets are in: which applications, which IP ranges, which cloud accounts, which people. Whether the test is black box, grey box, or white box, meaning how much the testers are told up front. Whether it is external, internal, or both. What the testers must avoid, such as production payment flows or a fragile legacy host. And who to call if a finding is serious enough to report before the engagement ends.

The steps in this phase:

  1. List the assets, exclusions and testing windows.
  2. Agree the test type and the escalation contact.
  3. Sign the statement of work and the rules of engagement.

The output is a signed rules-of-engagement document. It protects both sides: it authorizes the testing in writing, which is what separates a penetration test from a crime, and it records the boundaries everyone agreed to. Our guide on how to scope your first penetration test covers this phase in depth, and our pentest checklist lists what to settle before testing starts.

Phase 2: Reconnaissance

With authorization in hand, testing opens with information gathering. Reconnaissance builds a picture of the target before anyone touches it in anger.

Passive reconnaissance uses sources that never send a packet to your systems: public DNS records, certificate transparency logs, breached-credential databases, code repositories, job postings that reveal your technology stack, and the general footprint an attacker would assemble from the open internet. Active reconnaissance begins the light-touch interaction, resolving hosts and mapping the shape of the environment.

The steps in this phase:

  1. Collect public DNS records, certificate logs and leaked credentials.
  2. Map domains, subdomains and IP ranges to their owners.
  3. Resolve hosts and note which are in scope.

For an external network test this phase often finds the first real problem before a single exploit runs: a forgotten subdomain, a staging server exposed to the internet, or credentials from an old breach that still work.

Phase 3: Discovery and vulnerability analysis

Discovery turns the map into a list of possibilities. Testers enumerate services, versions, endpoints, and behaviors, then analyze them for weaknesses worth pursuing.

This is where automated tools earn their place. Scanners and enumeration tooling cover ground quickly, cataloguing open ports, software versions, and known vulnerability signatures. But the scanner output is the starting point, not the finding. A senior tester reads it the way an investigator reads a tip: most leads go nowhere, a few are worth everything, and the tool cannot tell which is which. The difference between a scan and a test lives in this phase, and it is the subject of automated versus manual penetration testing.

The steps in this phase:

  1. Scan ports and services with a tool such as Nmap.
  2. Map the application through an intercepting proxy such as Burp Suite.
  3. Rank the candidate weaknesses by likely impact.

Phase 4: Exploitation

Exploitation is the phase people picture when they hear penetration testing. A tester takes a candidate weakness and proves it, safely, by actually using it: extracting data through an injection flaw, reaching another user’s records through a broken authorization check, or gaining a foothold through an exposed service.

Proof matters here for a practical reason. A validated finding is one you can trust and prioritize; an unvalidated scanner alert is one you have to argue about. Every finding in a real report carries the request, the response, and the steps to reproduce it, so your engineers can see the flaw rather than take it on faith. Exploitation is also where restraint shows: a professional proves impact without causing an outage, and never runs denial-of-service techniques unless they are explicitly in scope.

The steps in this phase:

  1. Pick the candidates most likely to matter.
  2. Exploit each one safely and capture the request, the response and the proof.
  3. Raise anything critical with the escalation contact before the report.

Phase 5: Post-exploitation and lateral movement

A single foothold is rarely the whole story. Post-exploitation asks what that foothold is worth: what data it reaches, what privileges it can escalate to, and how far it can travel through lateral movement.

On an internal network test this is the heart of the engagement. From one compromised workstation, testers pursue the path most real breaches take, harvesting credentials, moving between hosts, and working through Active Directory toward Domain Admin and the systems that matter. The point is not to plant a flag. It is to show the blast radius, so leadership can see that a phishing click on a laptop in accounting reaches the financial systems three hops away. The same logic drives a red team assessment, where the objective is defined up front and detection is part of the test.

The steps in this phase:

  1. Harvest credentials and escalate privileges from the foothold.
  2. Map attack paths, for example with BloodHound in Active Directory.
  3. Move toward the agreed objectives and record every host and account touched.

Phase 6: Reporting

The report is the deliverable, and it is where a good engagement separates itself from a mediocre one. A report that lists findings without context wastes the test. A report written for the three audiences that read it earns its cost, and our sample penetration testing report shows the format.

Leadership needs an executive summary: what was tested, how exposed the organization is, and what to do first, in plain language. Engineers need technical findings with reproduction steps, evidence, and specific remediation guidance. Auditors and customers need findings mapped to the framework they care about, whether that is the OWASP Top 10, PCI DSS, or SOC 2, and an attestation letter that proves an independent test happened without exposing the findings themselves. What a strong report contains, section by section, is covered in our penetration testing report template. Once it arrives, our guide to reading penetration test results explains how to act on it.

The steps in this phase:

  1. Rate each finding by severity, commonly with a CVSS score.
  2. Write the executive summary, the technical findings and the remediation guidance.
  3. Walk your team through the report in a readout.

Phase 7: Remediation and retest

The test is not finished when the report lands. Findings get fixed, and the fixes get checked; our guide to vulnerability remediation covers that workflow. A retest confirms that the serious issues are genuinely closed and that the fix did not open something new, which happens more often than teams expect.

Some providers charge for the retest or skip it entirely, which leaves you with a report full of open findings and no proof they were resolved. We include a retest with every penetration test, because a finding that is fixed but unverified is not evidence you can hand to an auditor or a customer. For teams that change constantly, penetration testing as a service folds the retest into an ongoing program rather than waiting a year.

The steps in this phase:

  1. You fix the findings, most serious first.
  2. The testers re-run the original proof against each fix.
  3. The report is updated to show which findings are closed.

How long the process takes

For most single-target engagements, a written fixed price comes back the same day your scope details arrive, onboarding begins within 24 hours of a signed proposal, and the active phases take about a week for a standard scope and one to three weeks across scope sizes, with reporting close behind. A larger network or a multi-part application takes longer, and the timeline is set during scoping. The full breakdown is in how long a penetration test takes.

Frequently asked questions

What are the 7 stages of penetration testing? Scoping, reconnaissance, discovery, exploitation, post-exploitation, reporting and retest.

What are the 5 phases of penetration testing? Five-phase models compress the same work, usually into reconnaissance, scanning, gaining access, maintaining access and reporting. Scoping and the retest still happen; they are just not counted.

What is the first step of a penetration test? Scoping: agreeing in writing what is tested, what is off limits and when, before anyone touches a system.

What does the client need to provide at each phase? Assets, constraints and a contact at scoping; access or credentials for grey box and white box work at discovery; an escalation contact during exploitation; time for the readout at reporting; and the remediated systems for the retest.

The process is the product

A penetration test is not a scan with a nicer cover page. It is a disciplined process that turns a map of your environment into a ranked, proven, fixable list of the ways it can be broken, and then confirms you closed them. When you evaluate a provider, ask them to walk you through these seven phases for your specific engagement. The ones who can are the ones worth hiring.

Ready to scope one? Tell us what to test and we will come back with a fixed price, or read how we run each phase on our methodology page.

Omar Khandaker

Written by

Omar Khandaker, Senior Security Consultant

11+ years in the field. Focus: PCI DSS, ISO 27001, ISO 9001 & CMA. Part of the team that scopes, tests, and reports for our clients. Full profile →

Find out what an attacker sees.

Tell us what to test and see your fixed price.

Prefer the full scoping questionnaire? 
Start the conversation

Get a quick proposal

We are online