Three approaches, one question
In a management meeting, the question is almost never "do we need a grey box test?". It is rather: could our application be compromised, and what should we do if it could? The terms black box, grey box and white box describe how much information the auditor receives before starting. They do not measure the seriousness or the quality of the work.
This article is written for an IT director who has to order a web application security audit. It explains what each approach sees and misses, what you must provide, how to frame scope and authorisation, what a usable report contains, and what an audit does not prove. It is general information: it does not replace the advice of your CISO or your lawyer.
What each approach sees
| Black box | Grey box | White box | |
|---|---|---|---|
| Information provided | An address and, possibly, the scope | Test accounts for each profile, API documentation, functional diagrams | Source code, configuration, architecture, dependencies, access to environments |
| Viewpoint | That of an external party, without an account | That of an authenticated user, or of a user who misuses their access | That of a developer reviewing the system from the inside |
| What it can find | Exposure visible from the internet, misconfigured services and headers, public error messages, flaws in public functions (login, registration, password reset) | Broken access controls between users, business logic flaws, input validation in authenticated journeys | Design and coding defects, secrets stored in code, vulnerable dependencies, gaps between expected and actual configuration |
| What it misses | Most authenticated journeys and cross-profile controls | Defects invisible from the interface, since the code is not read | Little if it includes dynamic testing; reduced to code review alone, real runtime behaviour |
Two common assumptions deserve correction. The black box is not more realistic than the others: it is less complete. Someone who holds an account, or who has obtained information from the inside, is not in a black box situation. The white box is not more serious: a code review without dynamic testing does not show what actually happens once the application is deployed.
What the client must provide
The level of information determines the value of the audit. Prepare the following before the engagement starts.
For a black box. The exact scope: domains, subdomains, addresses, public APIs. The rules of engagement and the authorised environments. Testing on production is possible, but it must be decided with full knowledge, with a defined time window and a reachable technical contact.
For a grey box. Test accounts for each profile (visitor, customer, manager, administrator), populated with fictitious or anonymised data. The API and journey documentation. A staging environment representative of production. Without several profiles, authorisation controls cannot be verified.
For a white box. Read access to the repository, the list of dependencies and their lock file, the configuration of servers and infrastructure, the deployment procedures, and a contact able to explain architecture choices.
In all three cases, plan for a technical contact available during the audit, and a procedure to be alerted immediately of a critical finding.
Choosing according to the question asked
The right choice starts from the question you want answered. The table below gives a direction, to be refined with the auditor.
| Question | Most relevant approach |
|---|---|
| What can a stranger see from the internet, and is anything exposed that surprises me? | Black box |
| Can one customer access another customer's data? | Grey box, with at least two distinct accounts |
| Are the code and dependencies sound before a takeover or an acquisition? | White box, often combined with a code audit |
| Does a contractual or regulatory requirement impose a specific approach? | The framework required, not the provider's preference |
For a business application, the grey box is most often the relevant approach, because it covers the risks that matter most: authorisation logic and authenticated journeys. Many audits combine two approaches, for example reviewing the code of sensitive areas and testing the journeys that use them.
Framing scope and authorisation
Testing the security of a system means exercising it. Without written authorisation, that activity may amount to an offence: Article 323-1 of the French Criminal Code punishes fraudulently accessing or remaining within an automated data processing system. The authorisation must therefore be written, signed by a person with the power to grant it, and specify:
- the scope: applications, domains, addresses, APIs, and what is excluded;
- the hosting providers and third parties involved, who may need to be informed or to give their consent;
- the dates, time windows, authorised environments and forbidden ones;
- the rules of engagement: prohibited actions (service degradation, modification of real data) and the course of action if an incident occurs;
- confidentiality: restricted distribution and encrypted delivery of the report, destruction of evidence and data by the auditor at an agreed date, removal of test accounts and artefacts.
Framing also covers personal data. An audit can expose real data: favour fictitious data, and ask the auditor to report such data without copying it. If your application processes health data or data subject to sector-specific requirements, have your data protection officer validate the framing.
What the report must contain
An audit report exists to support decisions and corrections. At a minimum, it should contain the following.
An executive summary. A few pages without jargon: what was tested, the main risks expressed as business consequences, and the decisions to take.
Scope and method. What was examined, under which approach, with which limitations and over which period. A report that does not state what it did not cover is incomplete.
The reference used. A web application audit relies on known, verifiable frameworks. The OWASP ASVS sets out verifiable security requirements, organised by level. The OWASP Top 10 lists the most frequent risk categories; its 2025 edition is a useful reference, provided it is cited as such. For an API, the OWASP API Security Top 10 (2023 edition) complements the analysis; the OWASP WSTG describes the test method. Cite each framework's version (ASVS 5.0). The report should state which reference supports which check.
Reproducible findings. Each finding describes the affected element, the conditions under which it occurs, the evidence, the impact in the context of your application, and the recommendation. A finding your team cannot reproduce cannot be fixed or verified.
Contextualised severity. A CVSS score provides a technical baseline. It does not take your context into account: nature of the exposed data, number of users concerned, compensating controls already in place. The report should explain how it adjusts severity, and why.
A remediation plan. Findings are ranked by priority, with a proposed owner and a sequence of work. Low-effort, high-value fixes are distinguished from structural projects.
A verification of fixes. A retest of the treated findings documents what was actually resolved, rather than what was declared resolved.
Common mistakes when ordering
- Buying a scan and calling it an audit. An automated scan is useful, but it replaces neither an understanding of the business nor the verification of authorisation controls.
- Comparing quotes on price alone. Two offers are only comparable if the approach, the environments and the deliverables are identical.
- Ordering a grey box without test accounts. Without several profiles, access controls, which are central to business applications, remain unverified.
- Accepting a report without reviewing it. The CISO or the technical team should check that each finding is reproducible.
- Not planning a retest. Without verification, a fix remains a statement.
What an audit does not prove
An audit does not guarantee security. It describes the state of an application at a given moment, over a defined scope, with the resources and time planned. A report without findings does not demonstrate the absence of flaws: it indicates that the auditor did not find any within the agreed framework. No engagement promises total security, and a report that implies otherwise should be read with caution.
Three limits should appear in the report and be understood by management:
- Time. An application changes. A new version or a fix can introduce a defect nobody has tested.
- Exhaustiveness. No method covers every scenario, including combinations of several weaknesses or vulnerabilities that are not yet known.
- Scope. What was not audited (infrastructure, user devices, subcontractors, human processes) is not covered.
The value of an audit therefore lies in the loop it triggers: findings, fixes, retest, then recurring checks built into delivery. Our article on the OWASP Top 10 applied to Symfony shows how part of these checks can be built into the delivery pipeline.
Questions to ask before signing
Before signing, put the following questions to the provider. The written answers should be part of the consultation file.
- Which approach do you propose, and why does it answer my question?
- Which environments will be tested, and what data do they contain?
- Which profiles and accounts are needed, and who provides them?
- Which framework is the basis for the checks, and will it be cited in the report?
- Which qualifications or certifications do you hold, for which activities, and until when are they valid?
- Is a retest of the fixes included in the offer, and under which conditions?
Certifications, qualifications and PASSI
Ask yourself exactly what you are buying. OWASP does not certify auditors or companies: its projects publish frameworks and risk lists that anyone can use. A service presented as "OWASP certified" corresponds to no recognised qualification.
In France, the ANSSI qualifies certain audit providers under the PASSI framework (prestataires d'audit de la sécurité des systèmes d'information), for specific activities: architecture audit, configuration audit, source code audit, penetration testing, among others. Some regulated or sector-specific contexts may require that a PASSI-qualified provider perform all or part of the engagement. Check this requirement before ordering, with your CISO, your lawyer, or in the text that applies to you.
In every case, ask in writing for the qualifications and certifications the provider actually holds, their validity dates, their scope, and the profiles of the people who will carry out the audit. A qualification covers defined activities and a defined level, not the company as a whole.
Conclusion
Black, grey or white box: none is the right default. The choice depends on the question to be answered, the information you can provide and the requirements that apply to you. The rest depends on a written framing, a reproducible report, and a remediation plan followed by a retest.
To frame a security audit of your web application, write to us at contact@your-digital-hub.com or explore our services, from scoping to operations and our cybersecurity expertise.