← Methodology

Types of Penetration Testing

How penetration tests differ by target surface (network, web, mobile, cloud, wireless, social engineering) and by how much access the tester starts with (black-box, gray-box, white-box).

Ask Synthreat AI about Types of Penetration Testing ✦

What It Is

“Penetration testing” isn’t one fixed activity. It’s a family of engagement types that vary along two independent axes. The first axis is target surface: what’s actually being attacked (a network, a web application, a mobile app, a cloud environment, an office building, a person). The second axis is knowledge level: how much information and access the tester is given before starting (none, some, or full). Any real engagement is a specific combination of both (a “gray-box web application test” or a “black-box external network test”), and that combination is what actually determines what the engagement can and can’t tell you.

Why It Exists

If every pentest meant the same fixed set of steps against the same fixed target, there would be nothing to scope: you’d just buy “a pentest.” In reality, an internal payroll system, a public marketing website, and a mobile banking app face completely different threats and need completely different testing approaches to produce a useful result. The surface/knowledge matrix exists because matching the engagement type to the actual risk you’re trying to understand is what makes the results meaningful, rather than technically true but practically useless.

How It Works

Target surface describes where the tester is pointed:

Five of these surfaces make up the large majority of real engagements and each has its own dedicated page with the full detail (what’s tested, typical methodology, common findings):

Knowledge level describes what the tester starts with:

The two axes combine into a real scoping decision. A useful way to see this:

Target surface Black-box Gray-box White-box
External network Simulates an anonymous internet scan-and-attack attempt against perimeter defenses Rare combination: knowledge level mostly matters for applications, not perimeter infrastructure Used to validate firewall/segmentation rules directly against their intended design
Web application Tests what an anonymous visitor can do or break; slower, may miss logic bugs behind a login Standard choice: tests what a logged-in user can do beyond their intended permissions (the most common real-world attacker position) Fastest and most thorough; source-code access lets the tester find subtle logic flaws a black-box approach could easily miss entirely
Cloud configuration Rarely meaningful, since cloud misconfigurations are usually invisible from outside without account access Occasionally used to test what a compromised low-privilege cloud identity could reach Standard choice: the tester reviews actual permission and configuration data directly, since the risk here is misconfiguration, not a hidden secret

Neither axis is “better” in the abstract: each combination is suited to a different question. A black-box external network test answers “what can a random attacker on the internet see and reach?” A white-box web application test answers “given everything, how deep do our worst possible flaws go?” Those are different questions, and paying for the wrong one to answer the other wastes the budget.

Where This Shows Up in Practice

Why a Business Should Care

Picking the wrong combination of surface and knowledge level is one of the most common ways a security budget gets wasted without anyone noticing, because the test still “runs” and still produces a report. It just answers a question nobody was actually asking. A black-box test of an application that isn’t live on the public internet yet will find little to nothing, not because the app is secure, but because there was nothing for an anonymous outsider to reach. That’s a scoping failure, not a security success, and a client who doesn’t know to ask about it can walk away with false confidence.

The right conversation to have with a client before scoping anything is: what decision is this test meant to inform? “Can we trust our perimeter?” points toward black-box network testing. “Is our new app’s logic sound before launch?” points toward white-box or gray-box web application testing. Letting the actual business question drive the technical choice, instead of defaulting to whatever was purchased last year, is what turns a pentest from a compliance line item into something genuinely useful.

Common Misconceptions

AI Technical Drill

Test Your Understanding

On-demand, Gemini-generated technical drill testing root causes, exploit chains, and verified defenses.

🤖

Generate On-Demand Technical Quiz

Synthreat AI analyzes this topic's attack surface and compiles custom multiple-choice questions with verified explanations.

Question Count: