← All research
Guide

Black box, grey box, white box: which penetration test do you need?

The three ways to scope a penetration test, what each one finds and misses, and how to pick the right mix for your applications.

Vulnoq research team
7 min read

Every penetration test starts with one question: how much does the tester know before they begin? The answer decides what the test can find.

Black box: the outside view

The tester starts with a domain name and nothing else, the same as an attacker on the internet. It shows what anyone can reach: exposed hosts, forgotten services, login pages and public APIs.

  • Finds: exposed services, weak edges, issues on hosts you forgot you had.
  • Misses: almost everything behind a login.

Grey box: the inside of each role

The tester gets real accounts, one for each role. Most serious web flaws live here: one customer reading another customer's data, a user reaching an admin action, a support role exporting records.

  • Finds: broken access control, privilege escalation, data leaking between tenants.
  • Misses: logic hidden in code paths the interface never calls.

White box: the code view

The tester reads the source code, then proves what they find against the running application. It catches flaws that are hard to reach from outside, such as injection deep in a background job or a secret in a config file.

  • Finds: injection, unsafe deserialisation, hard-coded secrets, logic flaws.
  • Misses: nothing by design, but it costs more time per application.

Which one do you need?

For most teams the answer is all three, in proportion. Black box for the whole surface, grey box for every app that holds customer data, white box for the few applications that matter most. Standards such as NIST SP 800-115 and the OWASP Web Security Testing Guide describe these methods in more depth.

Vulnoq runs the three as modes: Cipher (black box), Prism (grey box, one agent per role) and Oracle (white box, code first).

See which of these paths are open in your estate.
Book a demo ↗