Black FridayGet a quick pentest for $1.99. Black Friday deal, this weekend only.Claim it →
← All articles

Penetration Testing Methodology: A Practical Overview

A penetration testing methodology is the repeatable sequence of phases a tester runs on any engagement: reconnaissance, scanning and vulnerability analysis, exploitation, post-exploitation, and reporting, usually under rules of engagement agreed up front. The exact names vary by standard, but the shape doesn't: gather information, find weaknesses, prove they're exploitable, measure the impact, and write it up so someone can fix it. This holds whether the target is a web app, an internal network, a cloud account, or a mobile binary — the methodology is target-agnostic even though the techniques inside each phase change.

This post walks through the generally recognized phases, grounds each one in a named standard, and shows where automation genuinely helps and where it doesn't. If you need a step-by-step checklist for testing a specific web application, see our web application penetration testing checklist instead — this post covers the process shape that applies before you narrow in on any one target type.

Where the phase model comes from

Three sources define most of what practitioners mean by "pentest methodology," and they roughly agree with each other:

  • PTES (Penetration Testing Execution Standard) defines seven sections: pre-engagement interactions, intelligence gathering, threat modeling, vulnerability analysis, exploitation, post-exploitation, and reporting.
  • NIST SP 800-115, the Technical Guide to Information Security Testing and Assessment (September 2008), groups penetration testing into four phases: planning, discovery, attack, and reporting — and is explicit that reporting runs alongside the other three, not just at the end, and that the attack phase loops back to discovery whenever new access reveals new systems (Section 5.2.1, Figure 5-2).
  • OWASP's Web Security Testing Guide frames testing across the SDLC (before development, design, development, deployment, maintenance) and treats application penetration testing as one checkpoint — Phase 4.1 — inside that larger lifecycle, rather than a standalone methodology for ordering an engagement.

None of these is "the" official methodology; NIST itself notes there are "many acceptable ways of grouping the actions involved." What matters is that a real pentest, run against any target type, moves through the same functional stages below, whatever a given vendor calls them.

The five stages of a penetration testing methodology

1. Scoping and reconnaissance / OSINT

Before any testing starts, scope, targets, exclusions, and rules of engagement get agreed in writing — PTES calls this pre-engagement interactions, NIST calls it planning, and both agree no actual testing happens yet. Then reconnaissance begins: mapping the target's public footprint using open-source intelligence (OSINT) — DNS records, subdomains, exposed services, employee and technology fingerprints, certificate transparency logs, and cloud assets the organization may not know are internet-facing.

This is the phase PTES calls "intelligence gathering" and NIST folds into the first half of "discovery." A thorough recon pass frequently turns up assets the client forgot existed, which is often worth the engagement on its own. SecurityInfinity's reconnaissance engine runs this stage as an autonomous agent against domains you've verified ownership of (via DNS TXT record or matching work email), building the asset inventory that later phases attack.

2. Scanning and vulnerability analysis

With an asset inventory in hand, the tester identifies candidate weaknesses: outdated software versions, open ports and exposed services, misconfigurations, known CVEs, and logic issues worth investigating further. NIST's discovery phase pairs information gathering with this vulnerability analysis step — comparing what was found against vulnerability databases such as the National Vulnerability Database. PTES calls this "vulnerability analysis" and is explicit that a tester should validate and prioritize findings rather than hand over raw scanner output — this is where penetration testing and plain vulnerability scanning diverge.

Automated scanning against a large CVE/template library earns its place here because coverage at scale is something tooling does faster and more consistently than a human working alone. SecurityInfinity's deep security scan runs a full CVE assessment with 25,000+ templates covering XSS, SQLi, and logic flaws — generating the candidate list the next phase has to confirm.

3. Exploitation

Exploitation is where candidate weaknesses get proven, not assumed. NIST's attack phase "verifies potential vulnerabilities by attempting to exploit them," and frames this as validation — moving a finding from theoretical to measurable. PTES describes the same idea: exploitation shows how a vulnerability could actually be used, safely and within the agreed rules of engagement, producing evidence rather than damage.

This is also where chained findings show up — three unrelated medium-severity issues combining into one critical path is the clearest signal a human, or an agent that can pivot, actually tested the target instead of running a scanner once. An agent that runs checks in context and pivots on what it finds, rather than a fixed test list, is what lets this phase behave like a real pentest instead of a report full of unconfirmed "potential" findings.

4. Post-exploitation

Once a foothold exists, post-exploitation asks the question that actually matters to the business: not "can an attacker get in" but "how far does it spread once they're in." NIST breaks its attack phase into gaining access, escalating privileges, system browsing, and installing additional tools — and explicitly loops back to discovery, because a new foothold reveals new targets that need their own reconnaissance. PTES treats post-exploitation as its own section covering lateral movement, privilege escalation, persistence, and data access, plus cleanup so nothing the tester introduced is left behind.

This loopback is the single biggest functional difference between a penetration test and a one-shot vulnerability scan — see our breakdown of automated vs manual penetration testing for where tooling can and can't replicate that judgment call.

5. Reporting

NIST makes a point that's easy to miss: reporting isn't the fourth sequential step, it runs concurrently with the other three. The rules of engagement are themselves written during planning; logs and periodic status updates continue through discovery and attack; the final document is the last artifact of a documentation process, not the whole of it. PTES's reporting section exists to "capture the entire process, in a manner that makes sense to the customer" — an executive summary for stakeholders and a technical report with evidence and remediation for engineers.

A report produced only at the end, from memory, with no reproduction steps, is usually a report where testing wasn't properly logged as it happened. Every SecurityInfinity finding ships with evidence and an exact remediation step, ordered by severity, which is what makes what a verified pentest report actually looks like a reasonable thing to check against before you accept a report from any vendor.

How the phases map across standards

FunctionPTESNIST SP 800-115OWASP WSTG
Scope and rulesPre-engagement interactionsPlanningPhase 1–2 (SDLC requirements/design)
Recon / OSINTIntelligence gatheringDiscovery (info gathering/scanning)Information Gathering category
Vulnerability IDVulnerability analysisDiscovery (vulnerability analysis)Configuration/management testing categories
Confirm exploitabilityExploitationAttackApplication Penetration Testing (Phase 4.1)
Measure impactPost-exploitationAttack (loopback to discovery)— (not separately modeled)
Document and fixReportingReporting (concurrent)Phase 5 maintenance/health checks

Note PTES and NIST describe the testing engagement itself; OWASP's WSTG instead frames penetration testing as one checkpoint inside the software development lifecycle — useful context if your testing program needs to fit into an SDLC rather than stand alone.

Applying this to any target type

The methodology generalizes because none of the five functions above — recon, scan, exploit, post-exploit, report — is specific to web apps, networks, or cloud. What changes between target types is technique, not structure:

  • Web applications: OWASP WSTG's test categories (injection, auth, session management) slot into the scanning and exploitation phases.
  • Networks: port scanning and service fingerprinting replace endpoint enumeration during discovery. SecurityInfinity's network agent runs this check as part of the same read-only process.
  • Cloud infrastructure: discovery looks for public S3 buckets, IAM misconfigurations, and exposed management consoles instead of open ports.
  • APIs: discovery enumerates REST/GraphQL endpoints and hidden routes before the same exploitation logic (auth bypass, IDOR, injection) applies.

Because the methodology is a process, not a checklist tied to one surface, a general overview like this one is the wrong place to look for target-specific test items — that's what target-specific guides, like the one linked above, are for.

What this means for how often you test

A methodology describes one engagement, but methodology alone doesn't tell you when to re-run it. Code ships, infrastructure changes, and new CVEs land between point-in-time tests, which is why the question of how often you should pentest is a separate, equally important decision — and why cost scales with how deep each phase goes (unauthenticated recon-and-scan vs. full authenticated exploitation across every role).

SecurityInfinity runs this same phase sequence — recon, scanning, exploitation-style checks, and evidence-backed reporting — as autonomous agents against domains you've verified ownership of, with scans that are read-only throughout. For a one-time, scoped engagement with a signed attestation letter, Startup Pentest delivers external testing from $499 or authenticated testing across every user role from $999, report and attestation in 3 business days. To run the recon and scanning phases yourself right now, start a scan.

Frequently asked questions

What are the main phases of a penetration testing methodology?

Most standards converge on the same functional stages even when they use different names: scoping and reconnaissance, scanning/vulnerability analysis, exploitation, post-exploitation, and reporting. PTES lists seven sections covering this; NIST SP 800-115 compresses it into four phases (planning, discovery, attack, reporting) and notes reporting runs throughout rather than only at the end.

Is penetration testing methodology the same for every target type?

The five-stage process is the same regardless of target — web app, network, cloud, or API — but the techniques inside each phase differ. Discovery on a network means port scanning and service fingerprinting; discovery on an API means enumerating REST/GraphQL endpoints. The structure generalizes even though the specific checks don't.

What's the difference between PTES and NIST SP 800-115?

PTES is a seven-section standard maintained by the pentest community, splitting the engagement into pre-engagement, intelligence gathering, threat modeling, vulnerability analysis, exploitation, post-exploitation, and reporting. NIST SP 800-115, published in September 2008, compresses the same work into four phases — planning, discovery, attack, reporting — and is more explicit that reporting happens concurrently with testing, not just at the end.

Does a vulnerability scan follow the same methodology as a penetration test?

No. A scan typically covers only the discovery/vulnerability-analysis stage — identifying candidate weaknesses without confirming they're exploitable. NIST SP 800-115 draws this distinction directly: vulnerability scanners check for the possible existence of a vulnerability, while the attack phase of a penetration test exploits it to confirm the finding is real.

Can an automated tool follow a full penetration testing methodology?

Automation handles reconnaissance and scanning at scale very well — broad coverage, consistent execution, no fatigue. Where it adds the most value beyond that is when it can pivot in context, the way the attack phase's loopback in NIST SP 800-115 describes: a new foothold revealing new discovery targets, rather than running a fixed script once.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.