Black box.
The testers know what a stranger knows: a domain name, an address, the name of the application. They start with lengthy reconnaissance, then look for a way in. This is the closest situation to an opportunistic attacker.
Its value: measuring what is genuinely visible from outside, and checking whether your teams or your provider spot the activity. Its limitation: much of the time goes on discovering what you could have described in a page. If nothing gives way in the time allowed, that doesn’t prove there is no flaw, only that none was found within that time.
Grey box.
The testers are given one or more accounts, usually one per profile: customer, employee, manager, service administrator. They also receive a short description of the application or network. This is the most common approach for a web application or an internal test.
It checks what no test without an account can see: a customer who reads another customer's invoices by changing a number in the URL, an employee who gains a manager's rights, a closed account that still works. These vulnerabilities are common and serious, because they expose data directly.
For it to deliver results, provide test accounts for each profile, realistic dummy data and a contactable person who knows the application well.
White box.
The testers have access to everything they need to understand the system: source code, architecture diagrams, configurations, discussions with the developers. The tests then combine attacking the running application with a targeted code review of sensitive functions, such as login, payments and permissions management.
This is the most in-depth approach. It suits an application that handles sensitive data, software that you develop and sell, or a major go-live. It requires the development team to stay available during the test.
Cost and depth compared.
| Approach | What you provide | Depth | Relative cost | Used for |
|---|---|---|---|---|
| Black box | The name of the target | The surface visible from outside | High for the same depth, as reconnaissance takes time | Measuring exposure and detection |
| Grey box | Accounts per profile, brief documentation | Permissions, data between users, internal paths | The best ratio of days to results | Web applications, internal tests |
| White box | Code, diagrams, configurations | The greatest | The most days, but each day goes further | Sensitive applications, software products |
For the same number of days, the price is the same; what changes is the depth reached. Giving testers information isn’t cheating: a patient attacker often ends up getting it.
Which approach suits your case.
- Internet exposure: black box, to see what a stranger sees.
- Web application with customer accounts: grey box, one account per profile.
- Internal test: grey box, starting from a standard employee’s account; choosing the starting point is covered in internal or external pentest.
- Software you develop, or health data: white box.
Whatever the approach, the tester records the time spent and the steps taken: you know how long it would have taken an attacker to reach the same point. The approaches can be combined in a single campaign. The process, written authorisation and retest are common to all three, and described on the penetration testing page. If you’re still unsure whether to test or audit, read audit or pentest: the difference.
Bonbay. Updated 15 November 2026.