Lists of penetration test types can run to a dozen entries or more, which makes the field look more complicated than it is. Almost every name on those lists answers one of three questions: what is being attacked, how much the tester knows before starting, and what the exercise is trying to achieve.
Once you see those three axes, any vendor's menu becomes easy to read. A "gray-box web application test" is one choice on the target axis and one on the knowledge axis. An "assumed-breach internal test" is a target plus a starting position.
This post maps the types along each axis. If you already know the vocabulary and need help picking, go to which penetration test you need.
Axis one: what is being tested
The target decides the skills, tools and time required more than anything else. These are the types you will meet most often.
| Type | What the tester attacks | Typical findings |
|---|---|---|
| External network | Everything reachable from the internet: hosts, VPN gateways, mail servers, exposed admin panels | Unpatched services, default credentials, forgotten systems |
| Internal network | The network as seen from inside, after a laptop or account has been compromised | Weak directory permissions, reusable passwords, poor segmentation between zones |
| Web application | A browser-facing application, with and without a login | Injection, broken access control, session flaws, logic errors |
| API | REST, GraphQL or gRPC endpoints, often without any user interface | Missing per-object permission checks, excessive data in responses, weak token handling |
| Mobile application | An iOS or Android app, the data it stores on the device, and the backend it calls | Secrets in the app bundle, insecure local storage, weak certificate checks |
| Cloud | Accounts in AWS, Google Cloud, Azure or similar, mainly identities and configuration | Over-broad roles, public storage, paths from one compromised workload to wider access |
| Wireless | Wi-Fi and sometimes Bluetooth at a physical site | Weak encryption settings, rogue access points, guest networks that reach internal systems |
| Social engineering | People, through phishing emails, phone calls or messages | Credential disclosure, staff bypassing process under pressure |
| Physical | Buildings, doors, badge readers, reception desks | Tailgating, live network ports in public areas, unattended devices |
| IoT and operational technology | Connected devices and industrial control systems | Hardcoded credentials, unsigned firmware, protocols with no authentication |
Web and API tests overlap but are not the same. A modern web application is usually a thin front end over an API. Testing only through the browser can miss endpoints the interface never calls. The classic API flaw is broken object level authorization, where the server checks that you are logged in but not that the record you asked for is yours.
Internal and external describe a starting point. The same server can be in both tests. What changes is where the tester stands. The trade-offs are covered in internal vs. external penetration testing.
Cloud testing is mostly about identity. There is little point attacking the provider's own infrastructure, and the providers forbid it. The useful work is finding which roles, keys and policies let an attacker move from one resource to another.
Axis two: how much the tester knows
The second axis is the information and access you hand over before the test starts.
- Black-box. The tester gets a target and nothing else. This shows what an outsider can find and reach. A lot of the time budget goes on discovery. See black-box penetration testing for where this works and where it stops.
- Gray-box. The tester gets partial knowledge, usually user accounts at different permission levels and perhaps API documentation. This is the most common choice for application tests because most serious application flaws sit behind the login.
- White-box. The tester gets source code, architecture diagrams and configuration. Nothing is hidden, so the test can trace a suspicious behavior to the exact line that causes it and can find flaws that would take an outsider months to stumble on.
These are positions on a scale, and many tests mix them.
A common misreading is that black-box is the "realistic" option and the others are shortcuts. Real attackers are not limited to two weeks. They can buy a subscription to your product, read your public documentation, and study leaked credentials. Giving a tester accounts and documentation mostly compensates for the short time window.
Axis three: what the exercise is for
The third axis is the goal, and it separates a penetration test from its neighbors.
A standard penetration test aims for coverage. The tester tries to find as many exploitable weaknesses as possible within the scope and time. The defenders usually know it is happening.
A red team exercise aims for an objective. The team is given a goal, such as reaching the production database, and takes any route allowed by the rules. Only a few people inside the company know. The exercise measures detection and response as much as prevention, and it often combines several types from the first table: a phishing email, then an internal network attack, then cloud access. More on this in the red teaming article.
An assumed-breach test skips the break-in. The tester starts with the access a successful phish would give, such as a standard employee laptop, and shows how far that goes. It saves the days that would otherwise be spent getting in.
A compliance test is scoped by a standard. The target is whatever the standard cares about, such as the systems that store or process card data. It can be a good test, but its boundaries were drawn by a rulebook and not by your threat model.
Types you can combine, and types you cannot skip
Most organizations do not need all ten target types. A software company with no office network and no hardware has little use for wireless or physical tests. A hospital or a factory has a great deal.
Some combinations are natural. Web and API testing belong together. So do cloud and external network testing when everything you run is hosted with a cloud provider.
Two things are easy to drop and often should not be. Authorization testing across user roles and tenants is where the most damaging application flaws live, and it needs credentials for at least two accounts in two separate customers. And the systems that sit beside the main product, such as admin consoles, staging environments and support tools, are frequently less protected than the product itself.
Key takeaways
- Every type of penetration test is a combination of three choices: the target, the tester's starting knowledge, and the goal.
- The target axis has about ten common entries. Few organizations need all of them.
- Black-box, gray-box and white-box describe how much you tell the tester. More knowledge buys more depth in the same time.
- Red teaming and assumed-breach testing are defined by their goal and starting point, and they often chain several target types together.