The three testing types differ in how much the tester knows before starting. In a black box test the tester gets only a target name or URL, like an outside attacker. In a grey box test they get user accounts and some documentation, like a customer or a staff member gone rogue. In a white box test they get full access to source code, architecture diagrams and configuration. For most companies buying their first or second test, grey box finds the most real problems per day of testing.
Black box: the outside attacker's view
Black box testing starts with what anyone on the internet can see. The tester maps your domains, finds exposed services and tries to break in without credentials. It answers one question well: what can a stranger do to us today?
Its weakness is time. A large part of the engagement goes to discovery that you could have handed over in five minutes. On a fixed budget, that leaves less time for the deeper work, and most serious application flaws sit behind a login page that a black box tester may never get past.
- Best for: external network tests, red team style exercises, checking what is exposed to the internet.
- Weak at: authenticated features, role-based access control, business logic.
Grey box: the insider or customer view
In a grey box test you give the tester an account for each role, a short walkthrough and, if available, an API specification. They spend their time attacking the application as a logged-in user: trying to read another customer's records, escalate from user to admin, or abuse workflows such as refunds and invites.
This is where most high-impact web application findings live. Broken access control has been at the top of the OWASP Top 10 for years, and you cannot test it properly without at least two accounts to compare.
- Best for: web applications, APIs, SaaS platforms, customer portals.
- Weak at: simulating an attacker who has no foothold at all (pair it with a short external pass if that matters).
White box: full knowledge, deepest coverage
White box testing adds source code, infrastructure diagrams and configuration files. The tester can read the code that handles authentication, trace how input reaches the database, and confirm whether a suspected flaw exists without guessing.
It produces the most thorough results and the most precise fix advice, but it costs more because reading code takes time, and it needs a tester who can read your language and framework. It suits applications that handle payments, health data or other high-value records, and teams preparing for a demanding customer audit.
- Best for: high-risk applications, pre-launch reviews, code that has never been reviewed.
- Weak at: budget-constrained engagements, systems where source code cannot be shared.
Side by side
A simple way to choose is to match the type to the question you need answered.
- "What can anyone on the internet reach?" - black box external test.
- "Can one customer see another customer's data?" - grey box application test.
- "Is our authentication and payment code safe?" - white box review with testing.
- "Our auditor or client wants an annual third-party test." - usually grey box, scoped to the system under audit.
How the choice changes the budget
Think of a fixed budget of, say, five tester days on a web application. In a black box test, a day or more can go to discovering pages, endpoints and how the application behaves before any serious testing starts, and some features behind the login may never be reached. In a grey box test, the tester starts on day one with accounts for each role and a list of endpoints, so most of the five days go to attempting real attacks. In a white box test, part of the time goes to reading code, but the tester can confirm issues quickly and point to the exact lines to change.
That is why grey box usually delivers the most findings per dollar. White box delivers the most certainty per finding, which matters most on code where a single flaw would be very expensive. Black box delivers the most realistic answer to one narrow question: what can a stranger with no information do?
If you are comparing quotes from different firms, check that they assume the same testing type. A black box quote and a grey box quote for the same application are not comparable, even if the day count matches.
What we recommend for most first tests
Start grey box on the system that holds client data. Add a short black box external pass on your public IP range if you have not looked at it recently. Move to white box for the applications where a flaw would be most expensive, once the obvious issues are fixed.
Whichever type you choose, ask the tester to state it in the scope and the report, so a reader of the report knows what the results do and do not cover. Our VAPT services page explains how we run each type, and the sample report shows how the testing type is recorded.
Frequently asked questions
Black box or white box - which is better?
Doesn't grey box make the test less realistic?
Do we have to share source code?
Is black box cheaper?
Not sure which testing type you need?
Tell us what you want to protect and we will recommend the type and scope, with tester days written out.

