Type
Practical guide
Published
Updated
Reading time
3 min read
Author
Lire en français
Lire en français →

Black, grey or white box pentest: which access?

Choose pentest access around the question you need answered. Accounts, roles, architecture and exclusions with a fictional scoping example.

Methodology and education

Read the article

Black, grey and white box describe the information and access supplied for a penetration test. Start by writing the scenario you need assessed. Examining an Internet-facing service, checking separation between customers and investigating an internal configuration require different starting conditions.

This guide provides a scoping method to adapt to your system. The proposal then defines permitted operations, deliverables and assessment conditions.

What is a black box penetration test?

Testing starts with limited knowledge of the system. The NIST glossary defines black-box assessment around absence of knowledge of the object’s internal structure and implementation details. Scoping should record what information is supplied and the limits of that knowledge.

For an Internet application, the starting point can be authorised domains or addresses without supplied accounts. For an internal network, it can be access to a segment with limited information. Define connection point, identities and permitted operations separately. Network connectivity does not authorise testing every responding system.

When useful application workflows require authentication, this starting point offers limited visibility into business permissions. A question about access to another customer’s invoice requires accounts that can reach the relevant workflow.

Are black-box and external pentesting the same?

Black box describes starting knowledge. External or internal describes the connection point. Combine and document both decisions so a report on public pages is not read as an assessment of all application permissions.

Scenario to agree Starting point Limitation to retain in the report
Public application, black box Authorised domains, limited information and no supplied account Authenticated workflows not reached
Internal network, black box Authorised segment without detailed architecture knowledge Unreachable resources and excluded operations
Application, grey box Selected accounts and documentation Roles, organisations and objects absent from the test data

This matrix describes possible conditions and establishes no performed assessment. Keep the same distinctions for automated or AI pentesting and request evidence of actual coverage. Black box does not establish whether a specialist or agents perform the actions.

When should you choose grey box testing?

Grey box provides selected information and access. For SaaS, prepare the roles and organisations needed for the scenario. A single administrator account conceals the distinctions you want checked.

The fictional example below concerns an invoicing API. This guide reports no assessment of a real target.

Test identity Action Expected result
Customer A member Read their own invoice Read allowed
Customer A member Read customer B’s invoice Access denied
Customer A reader Change customer A’s invoice Change denied
Customer A manager Change customer A’s invoice Change allowed

The server must decide using the authenticated identity and permissions on the object. The SpectrAI API scoping guide includes a fuller downloadable matrix. The SaaS laboratory presents observations from its fictional program.

What does white box mean?

It provides extensive information, defined in the agreement. That can include architecture, configurations, documentation and technical contacts. If you need source-code review, explicitly identify that requirement and the repositories involved. SpectrAI’s scope excludes source-code review.

ANSSI’s PASSI baseline describes assessment preparation and information levels. It provides a framework for understanding the scope. A supplier’s qualification requires its own evidence. PASSI 2.2 baseline

Can an assessment combine access levels?

Yes, when each phase answers a defined question. You can agree an external observation phase followed by an authenticated assessment. The report should identify the information and access available in each phase. Interpret authenticated results with those conditions.

For networks and Active Directory, also specify the relay position, accessible segment and initial identity. Prepare network and AD access

How does access affect price and duration?

Targets, workflows, roles, access reliability and deliverables affect the work to plan. Agree duration after describing them. Comparable proposals identify included tasks, retesting and the coordination expected from your team.

Have connectivity, accounts and test data checked before the assessment. This preparation reduces time spent resolving unavailable access during the planned window. The total-cost worksheet helps value your own estimates.

What should a quote request include?

Prepare the business objective, targets and exclusions, available identities, permitted data, allowed operations, reachable contact and report recipient. Specify stopping conditions and how testing may resume after an incident. NIST discusses planning, execution and analysis of technical assessments. NIST SP 800-115

Download the pentest brief, then bring your requirement to RootZero. Include any requirement for a particular human role in the assessment. Method and availability are confirmed in the proposal.

For an Android or iOS application, also distinguish the installed package from its APIs. The mobile application pentest guide details builds, accounts, evidence and limitations to prepare.

Follow future rootzero publications

#Prepare an assessment

Describe the scenario to assess.

Provide targets, access and the report recipient’s requirements to scope the request.