Black, grey or white box pentesting: which one do you need?
SYAGA CONSULTING · IT consulting and audit since 2009 · SIREN 518 489 471
When people talk about penetration testing, three terms keep coming up: black box, grey box and white box. They do not refer to three different products, but to three levels of knowledge given to the auditor at the outset. The more the auditor knows, the deeper they can go, but the less faithfully they reproduce the view of an outside attacker, who starts from nothing. Choosing the right approach starts with knowing which question you want answered.
Black box: an outsider’s perspective
In a black box test, the auditor receives almost no information: they start from what is public, exactly like an attacker discovering your company from the Internet. They map what is visible, identify exposed services and look for forgotten doors. It is the most realistic approach to answer the question: what does an attacker see of me today?
Its strength is its realism. Its limitation is that it may miss deep flaws buried behind authentication, simply for lack of time to uncover everything. It is the default approach of our external diagnostic: an assessment of the exposed surface, carried out without active exploitation.
Grey box: the compromised access scenario
In a grey box test, the auditor is given partial access: for instance, a standard user account or some information about the architecture. This simulates a very common scenario in real attacks: an attacker who already has a foot in the door, through a stolen password or a compromised workstation, and is now trying to extend their privileges.
It often strikes the best balance between realism and depth. We don't waste days guessing what an attacker would end up obtaining anyway; we spend the time on what matters: how far can they go once inside? Escalation paths towards the directory, for example, show up far better this way.
White box: an in-depth review
In a white box test, the auditor has as much information as possible: documentation, configurations, sometimes the code. They are no longer simulating an attacker; they examine the system from the inside to find as many flaws as possible, including those an external attacker would never find without considerable effort.
It is the most thorough approach, ideal for hardening a sensitive system or a critical application in depth before it goes live. The trade-off: it takes more time, and it moves away from a real attack scenario. You do not choose it to frighten yourself, but to fix problems at the root.
How to choose in practice
Start from your objective rather than the vocabulary:
- You want to know what is exposed to the Internet and make the risk tangible for management: black box, external assessment.
- You are worried about a compromised account or want to measure how far an intruder who is already inside could go: grey box.
- You want to harden in depth a sensitive system before it goes into service: white box.
In every case, the rigour of the framework stays the same: written authorisation, a defined scope, named targets, an agreed testing window. What varies is what the auditor knows at the outset, not the legality or the seriousness of the work. Together, we define the approach that genuinely answers your question.