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.
  • Intrudify is deliberately scoped to web applications and APIs, not networks or infrastructure.

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.

Where we deliberately do not play

Worth stating plainly, because it affects which of the above we are the right answer for: Intrudify is scoped to web applications and APIs. We are not a network scanner, not an infrastructure product, and not a social engineering service. That boundary is on our services page rather than buried in a footnote, because a vendor who claims every category is telling you something about their depth in each one.

If your immediate need is network or physical, you want a different provider for that piece. If it is the application and the API, that is the whole of what we build.

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?

No. Intrudify is deliberately scoped to web applications and APIs. Network, infrastructure and social engineering work needs a different provider, and we say so rather than claiming coverage we do not have.

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