---
title: "Penetration testing methodology: black, grey or white box depending on what you share."
url: https://www.bonbay.fr/en/cyber/test-intrusion/boite-noire-grise-blanche/
site: "Bonbay Cyber"
description: "Black-box, grey-box and white-box penetration testing methodology: what the testers are told, how deep each approach goes and what it costs."
updated: 2026-11-13
---

# Penetration testing methodology: black, grey or white box depending on what you share.

> In black box testing, the testers receive only the name of the target, like an outside attacker. In grey box testing, they have user accounts and basic documentation. In white box testing, they have access to the code, diagrams and configurations. The more information they are given, the further the test goes for the same number of days.

The three approaches differ in what the tester knows before starting.

## Questions fréquentes

### Which of the three approaches is the most realistic?

Black box most closely resembles the start of an attack. But a real attacker has more time than a tester and often ends up obtaining an account, through phishing for example. Grey box therefore simulates the more likely next stage. Realism depends on the scenario chosen, not just on the information given.

### Is it risky to share our source code with the testers?

Sharing is governed by the contract and a non-disclosure agreement. The code is reviewed in an environment set aside for the test, or at your premises if you prefer. It is never copied to a personal computer, and access is withdrawn when the test ends. Only the testers named in the authorisation have access.

### Can we switch from black box to grey box during the test?

Yes, and it’s often useful. If black box reconnaissance doesn’t succeed within the planned time, you can provide an account so the remaining days go on testing inside the application. This switch is planned at the scoping stage, so no time is lost along the way.

### Do we need to provide real accounts?

No. We ask for test accounts, created specially with the same permissions as the real profiles, and dummy data where possible. They are deleted after the retest. Testing with real accounts would needlessly expose customer or employee data.

### Does the report differ depending on the approach?

The format stays the same: each flaw with its severity, its evidence and its fix. White box adds precise references in the code, which speeds up your developers’ work. Black box adds what outsiders were able to learn about you during reconnaissance.
