#1 on Patchstack 70+ zero-days across 20M+ businesses Read the story
Penetration Testing

Types of Penetration Testing: Black Box, Grey Box, White Box

Key takeaways
  • Black, grey and white box describe how much the tester KNOWS - not what they test.
  • Web, API, network, mobile and social engineering describe the TARGET. The two axes are chosen independently.
  • Grey box is the usual right answer: full black box spends your budget rediscovering what you could have just told them.
  • You choose how much our team knows, from black box to white box, and what we test: web apps, APIs, mobile, networks or cloud.

The phrase "types of penetration testing" is used for two unrelated distinctions. The first is how much information the tester starts with: black box, grey box, or white box. The second is what they are aimed at: a web application, an API, a network, a mobile app, or your staff. You pick one from each list, and confusing the two is a common way to buy the wrong test.

By knowledge: black, grey, white

Black box. The tester starts with what an outside attacker would have: a domain name, maybe a login page. No credentials, no documentation, no source code. It simulates an unauthenticated stranger and it is the most realistic starting point for one specific threat.

Grey box. The tester gets partial information - working credentials for each user role, an architecture overview, sometimes API documentation. It simulates an attacker who has already gained a foothold, or an ordinary user probing for more access than they should have.

White box. Full visibility, including source code and configuration. Nothing is hidden, and the test focuses entirely on finding flaws rather than discovering the shape of the system.

Starts withSimulatesBest at finding
Black boxPublic information onlyAn external strangerExposure at the perimeter
Grey boxCredentials and architectureA user or a footholdAuthorisation and logic flaws
White boxEverything, including sourceAn informed reviewerDepth and completeness

Why grey box is usually the right answer

Full black box has an intuitive appeal - it feels like the honest test. In practice it spends a meaningful share of the budget rediscovering things you already know and could have simply handed over.

It also structurally under-tests the most common serious flaw. Broken authorisation only appears when you have at least two accounts and can try to reach one from the other. Without credentials, most of that surface is invisible. If you buy a black box test and receive a clean report, one plausible explanation is that the interesting part was never reachable.

A useful rule: withhold information to test your perimeter, and provide it to test your application. Most teams need the second and buy the first.

By target

Web application testing covers the browser-facing application: authentication, session handling, authorisation between users and tenants, injection, and business logic. The detail of scoping that against a published standard is in OWASP ASVS testing.

API testing covers the interfaces behind and beside it. It matters increasingly more than the web layer, because an API frequently exposes operations the user interface never offers, and object-level authorisation is where a great many real breaches now happen.

Network and infrastructure testing covers hosts, services, segmentation and configuration rather than application logic. Different discipline, different tooling.

Mobile testing covers the application on the device plus everything it talks to.

Social engineering targets people rather than systems - phishing, pretexting, and physical access where that is in scope.

What we cover

Worth stating plainly, because it affects which of the above you need: our engine tests web applications and APIs, and our testers cover mobile, networks, cloud and social engineering on custom engagements. How an engagement runs is on our services page.

Frequently asked questions

What is the difference between black box, grey box and white box testing?

They describe how much the tester knows at the start. Black box provides only public information, grey box adds credentials and architecture detail, and white box provides everything including source code. All three can be applied to any target.

Which type of penetration test should I choose?

Grey box for most application testing. It gives the tester credentials for each role, which is the only way to properly examine authorisation between users and tenants - historically the most common serious flaw. Reserve pure black box for testing your perimeter specifically.

Is API penetration testing different from web application testing?

Yes, and increasingly it is the more important of the two. An API often exposes operations the user interface never offers, and object-level authorisation failures there are a frequent cause of real breaches. A test that only drives the browser interface will miss them.

Does Intrudify test networks and infrastructure?

Yes. Our testers cover networks and infrastructure on custom engagements, along with mobile apps, cloud and social engineering.

Related posts
Penetration Testing SaaS Penetration Testing: Why Multi-Tenancy Changes Everything Penetration Testing The Penetration Testing Process, Step by Step Penetration Testing Penetration Testing Methodology: PTES, OWASP and the Rest
Back to all posts