On this page
Two pentest reports land on your desk. Same scope, same promise on page one: “aligned with PTES, NIST SP 800-115 and OWASP.” The first lists 70 findings, almost all copied from a scanner. The second lists six, and one of them shows an ordinary user downloading every other customer’s invoices by changing a single ID.
Both vendors claimed the same penetration testing methodology phases. Only one did the work inside them.
Phase names are easy to copy. Even NIST’s testing guide says its own four-phase model is just one of many acceptable ways to group the work. What separates a real pentest from an expensive scan is what happens inside each phase, and whether the report proves it.
This guide walks through the five phases a real penetration test follows, what you should receive from each, and the red flags that show a phase was skipped.
Key takeaways
- Most frameworks describe the same work in four to seven phases. The count matters far less than doing each phase properly.
- Scoping decides the quality of everything after it. A vague scope produces a vague report.
- Scanning is one part of phase 3, not the whole test. The findings that hurt most (broken access control, business logic flaws, chained issues) come from manual work.
- Every finding needs a reproducible proof of concept, a CVSS 3.1 vector and a specific fix, and the test is not finished until fixes are retested.
- AI now speeds up recon, triage and reporting. Human testers still own exploitation and judgment.
The 5 penetration testing methodology phases at a glance
PTES uses seven phases: pre-engagement interactions, intelligence gathering, threat modeling, vulnerability analysis, exploitation, post exploitation and reporting. NIST SP 800-115, published in 2008, uses four: planning, discovery, attack and reporting, with a loop from attack back to discovery. The PCI SSC penetration testing guidance (v1.1, September 2017) groups activities into pre-engagement, engagement and post-engagement.
Here is how they map to the five phases most pentest teams use:
| Phase | What happens | PTES | NIST SP 800-115 | What you should receive |
|---|---|---|---|---|
| 1. Scoping and rules of engagement | Agree targets, approach, accounts, limits and contacts | Pre-engagement interactions | Planning | Written scope and rules of engagement |
| 2. Reconnaissance | Map hosts, services, features, roles and API endpoints | Intelligence gathering | Discovery (information gathering and scanning) | An inventory of what was in reach |
| 3. Vulnerability discovery | Scanning, threat modeling and manual testing | Threat modeling, vulnerability analysis | Discovery (vulnerability analysis) | Coverage notes, not just a findings list |
| 4. Exploitation and impact | Prove findings, chain them and measure how far access goes | Exploitation, post exploitation | Attack | A proof of concept for every finding |
| 5. Reporting and retest | Write-up, CVSS scoring, fixes, retest | Reporting | Reporting (runs throughout) | Report, fix guidance and retest results |
The OWASP Web Security Testing Guide supplies test cases inside phases 2 to 4. MITRE ATT&CK, a knowledge base of real-world adversary tactics and techniques, helps plan realistic attack paths, but it is not a phase model.
1. Scoping and rules of engagement
No testing happens here, and that is the point. NIST describes planning as the stage where rules are identified, management approval is documented and goals are set. Get it wrong and every later phase tests the wrong thing.
What gets decided
- Targets. Exact domains, applications, API base URLs, mobile app builds and IP ranges. Anything not listed is out of scope.
- Approach. Black-box, grey-box or white-box. For SaaS, APIs and mobile apps, grey-box testing with one account per user role usually finds more in the same time.
- Environment. Production or staging, and what real data lives there.
- Limits. Testing windows, excluded actions such as denial of service or bulk emails, and rate limits.
- Escalation. Who to call if something breaks, and how critical findings are reported during the test rather than weeks later.
- Third parties. Components you do not own, including cloud and SaaS services, are tested only within the provider’s own testing policy, with its approval where your contract requires it. The provider’s own infrastructure is normally out of scope.
Where it goes wrong
The most common miss is user roles. A test run with one admin account cannot find the flaw where a read-only user edits data. A fixed quote before anyone asked about your roles, or a scope that just says “the website”, is a red flag.
2. Reconnaissance and attack surface mapping
Recon answers one question: what can an attacker reach? Later phases can only test what recon found.
Passive and active recon
Passive recon reads public sources without touching the target: certificate transparency logs, passive DNS, search engines, public code repositories. Active recon interacts with the target: resolving and probing hosts, crawling the application and listing the API calls the frontend makes. Our subdomain enumeration guide covers the external side in detail.
For applications, recon means features, not just hosts
On a web or API test, the real inventory is functional. Every role, screen, endpoint and parameter that carries an object ID. That list becomes the test plan for phase 3.
What it looks like in practice
A typical external engagement: the scope lists the main application, and recon turns up a forgotten staging copy with debug features on and production data inside. The right move is to raise it, confirm ownership and agree whether it joins the scope. That one discovery is often worth more than the rest of the test.
Leaked employee passwords are attack surface too. XposeFinder, our dark-web credential monitoring product, watches breach sources for credentials tied to your domain.
3. Vulnerability discovery and analysis
This is where scanning lives, and where many so-called pentests quietly stop. It matters: Verizon’s 2026 Data Breach Investigations Report found that nearly a third (31%) of breaches start with vulnerability exploitation, the first time in 19 years it overtook stolen credentials as the top way in.
Automated scanning
Scanners check the whole scope for known CVEs, misconfigurations and outdated components. Testers check results against sources such as CISA’s Known Exploited Vulnerabilities catalog to see what attackers already use. Scanning is broad, but it only finds what it knows to look for. See penetration testing vs vulnerability scanning for the full difference.
Threat modeling
PTES puts threat modeling before vulnerability analysis for a reason. Before spending hours, decide what would actually hurt this business: one tenant reading another tenant’s data, a refund issued twice, a support role promoting itself to admin. That decides where manual time goes.
Manual testing
Testers work through categories such as authentication, authorization, session management, input validation and business logic, the structure the OWASP testing guide uses. The OWASP Top 10 lists the most common risk categories, with broken access control at the top.
Where it goes wrong
A scanner returns 40 low-severity items about headers and ciphers. A weak test reports all 40. A good one notes them, then spends the day on whether customer A can read customer B’s records. If nothing in your report mentions authorization or logic, phase 3 was skipped.
4. Exploitation and post-exploitation
NIST calls executing the attack the heart of any penetration test: verifying potential vulnerabilities by trying to exploit them. It confirms or rules out what a scanner only suspects.
Prove impact, do not cause it
Good testers use the least intrusive proof: one record you should not see, not the whole table, using test accounts rather than real customers. They stop and call the client the moment they hit something sensitive, such as live production credentials.
Chaining is where severity changes
A verbose error message reveals how account IDs are built. An export feature checks that you are signed in, but not that the record is yours. Alone, each might rate low or medium. Together, any customer can pull every other customer’s invoices: critical. Scanners do not chain findings. People do.
Post-exploitation: how far does the access go?
Once testers have a foothold, they measure what it leads to: on an internal network, paths from a standard domain user towards admin rights in Active Directory; in an application, the data and functions the new access exposes. NIST models this as a loop back to discovery, since each new level of access reveals new targets.
Clean-up
PCI SSC guidance says testers should document and disclose any changes made during the test, and that accounts created for the test and tools installed by the tester should be removed afterwards. Ask for this in writing.
5. Reporting, remediation and retest
NIST notes that reporting runs alongside the other phases, with logs and periodic updates during the test. The final report is the last piece.
What a good report contains
- An executive summary that a non-technical reader can act on.
- Each finding with a severity, a CVSS 3.1 vector, a reproducible proof of concept and a specific fix.
- Coverage notes: what was tested and found secure, not only what failed.
- Chained findings explained as one attack path.
Our guide on how to write a penetration test report goes deeper, and you can compare against the WhyXpose sample pentest report (PDF).
Retest
The PCI SSC guidance expects a retest after remediation to confirm the fix works, and warns that one cross-site scripting flaw may point to similar flaws elsewhere, so fix the pattern, not just the page. A retest priced as a new engagement, or a static PDF with no way to track fixes, is a red flag.
How the phases change by target
The phases stay the same. Where the hours go changes.
- Web apps and APIs. Most effort sits in phases 3 and 4: authorization, business logic and the gap between what the frontend shows and what the API allows. See web application and API penetration testing.
- Mobile apps. Recon includes taking the app package apart for stored secrets and hardcoded endpoints, then testing follows the backend API. See mobile application penetration testing for Android and iOS.
- Networks and Active Directory. External tests lean on recon and exposed services; internal tests spend more time on post-exploitation and privilege paths. Compare them in internal vs external network penetration testing, or see our network penetration testing service.
Where AI-powered pentesting fits in each phase
AI does not add a sixth phase. It makes phases 2, 3 and 5 faster, so human testers spend their time on phase 4, where judgment matters most. WhyXpose is an AI-powered pentesting platform built around that split:
- Scoping (phase 1): people. Scope is agreed with you, and the platform only scans domains in your company’s own assets.
- Recon (phase 2): AI-guided. AI agents plan and run recon and scan pipelines and choose the next steps based on what they find, alongside our attack surface discovery.
- Discovery (phase 3): AI triage. Findings are filtered for false positives and ranked by risk before an expert looks at them.
- Exploitation (phase 4): human experts. Certified penetration testers and CVE holders verify every finding with a reproducible proof of concept and a CVSS 3.1 score.
- Reporting and retest (phase 5): AI-drafted, expert-reviewed. AI drafts write-ups and fixes; testers check them. Findings are tracked to the fix in our vulnerability management platform, with a comment thread for each finding, a retest after you fix it and a one-click PDF report.
WhyXpose is verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex, and also runs self-hosted open-source AI models. We have secured 1,000+ companies to date, and our research team monitors the internet for new vulnerabilities and exposures every single day, reporting what it finds privately through responsible disclosure. Scheduled scans and monitoring in the platform are coming soon. Read more in our guide to AI penetration testing.
What to do next: 7 questions to ask your pentest provider
The answers tell you whether the methodology is real.
- Which framework do you follow for this target, and where does it show in the report?
- How do you scope user roles, and how many test accounts will you need?
- How much of the testing is manual, and what do you test beyond scanner output?
- How do you prove impact safely if we test in production?
- How are critical findings escalated during the test?
- Is a retest included, and how are retest results recorded?
- Can we see a sample report with real-looking findings?
Next, read how to choose a penetration testing company and how often you should do a penetration test.
Frequently asked questions
What are the 5 phases of penetration testing?
Scoping and rules of engagement, reconnaissance, vulnerability discovery, exploitation (including post-exploitation), and reporting with a retest. Some guides split these further into six or seven phases. The work is the same; only the grouping differs.
Which penetration testing methodology should I follow?
Use one that fits the target. PTES or NIST SP 800-115 give the structure, OWASP’s guides supply test cases for web, API and mobile work, and PCI SSC’s guidance matters if you handle card data. Good providers combine them and say so in the report.
What is the first phase of a penetration test?
Scoping, often called pre-engagement or planning. It sets the targets, the testing approach, the limits and the contacts in writing, and records the system owner’s authorization. Without that authorization, testing is not a pentest; it is unauthorized access.
Is post-exploitation part of every pentest?
Not to the same depth. On internal network tests it is central, because the question is how far an attacker can move. On a web application test it usually means showing what an exploited flaw exposes, within the rules of engagement.
How long does each phase of a penetration test take?
It depends on scope: the number of applications, roles, endpoints and hosts. Phases 2 to 4 take most of the engagement, and the retest happens after your team fixes the findings. Ask for a phase-by-phase plan with the proposal.
Want to see what each phase finds in your own applications? Get a demo of WhyXpose, or talk to a pentester about your scope. You can also browse our full range of penetration testing services.
Put this guide into practice
Web, API, mobile and network pentests by certified testers, with a verified proof of concept for every finding.
Explore pentest services