Adversary simulation: black-box vs grey-box vs white-box testing

Black-box, grey-box and white-box testing start from different access and answer different questions. This page shows which one fits your goal, what each finds and misses, and how to combine them.

On this page

Black-box vs grey-box vs white-box testing: which fits your question

Choose the access level that matches the question you need answered, and combine levels when one test cannot answer both. Black-box testing fits the question of what an outside attacker with no credentials can reach and how your detection and response team handles that path. Testers start with only the target scope, so the result shows the external attack path and whether anyone noticed it. Grey-box testing fits the question of what a standard user or partner account can reach. Give testers one account per role, then check for authorization gaps, such as a partner role that can read another partner's records or an employee role that can change an approval workflow it should only view. The result shows where role boundaries fail, which an outside-only test may not reach.

White-box testing fits questions about design, configuration and source-level depth. Testers receive architecture documents, configuration files and source code, so they can check trust boundaries, secrets handling and the code paths behind a finding. That extra depth adds preparation work on both sides, and the OWASP Web Security Testing Guide notes that no single technique is enough, so ask whether a manual code review is in scope or only automated scanning. Access level is a separate decision from whether the exercise is an adversary simulation, so a simulation can start from any of the three levels. A regulator-led, threat-led test sets its own scope, as the TIBER-EU framework does with its preparation, testing and closure phases, so confirm the required scope with your supervisor before you choose an access level yourself.

How black-box vs grey-box vs white-box testing compare side by side

This table compares black-box, grey-box and white-box testing for adversary simulation on goal, starting knowledge, scope, method, depth, evidence, blind spots and fit for regulated programs. Columns show how much the tester knows before starting, and each cell flags what to confirm in the written scope. The main takeaway is that the access level sets what the exercise can prove, so the choice should follow the threat the exercise must answer.

DimensionBlack-boxGrey-boxWhite-box
GoalShow what an outside attacker with no insider help can reach and exploit.Show what an attacker holding a low-privilege or stolen account can reach.Find the most weaknesses in code, configuration and design within the time available.
Starting knowledgeTarget name or address only. The tester builds all knowledge during the test.Test accounts, roles and some architecture or API documentation.Source code, architecture, configuration files and privileged access.
Typical scopeInternet-facing assets within a defined boundary, sometimes with covert conditions agreed in advance.Named applications or segments, with the roles the exercise may use.Defined code repositories, systems and environments, including internal components.
Method at buyer levelReconnaissance, then exploitation and movement only from the access the tester gains.Authenticated testing from each agreed role, plus checks for privilege escalation between roles.Source and configuration review combined with live testing to confirm what is reachable.
DepthDeepest on what an outsider can reach, shallow on hidden code paths.Moderate. Depth follows the roles and integrations in scope.Broadest code and configuration coverage. Attacker realism depends on the scope agreed.
Evidence producedAttack paths an outsider could follow, with proof of access at each step.Access and privilege findings per role, with reproducible steps.Code and configuration findings linked to the lines or settings that cause them.
What each missesInternal misconfigurations and logic flaws that need authentication to reach.Paths open only to roles or accounts outside the agreed set.Attack paths an outsider would find without source access, and drift between code and deployed systems.
Fit for regulated programsFits threat-led schemes such as TIBER-EU and DORA TLPT. Confirm the scope the authority accepts.Suits access control and role-based assurance. Confirm which roles the assessor expects to see.Suits code-level assurance. Confirm whether the assessor also expects an outsider-view test.

How the starting access changes what a test can prove

Starting access decides what a test can prove, because it sets which controls the testers can reach and which findings they can verify. A black-box adversary simulation begins with little more than a target name and agreed rules, so its evidence answers how far an outsider can get and what they can reach without help. A grey-box start, such as a standard user account or a documented network segment, shows what a compromised employee, partner or contractor could do with the access they already hold. A white-box start, with architecture diagrams, configuration files and sometimes source code, tests whether the controls the design relies on actually hold up. Each start produces a different kind of proof, so the choice should follow the question your board, auditor or regulator is asking.

No single starting point covers everything. OWASP Web Security Testing Guide v4.2 says no single technique is enough and recommends a mix of manual inspections, threat modeling, source code review and penetration testing. NIST SP 800-115 makes the same practical point: organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. For an adversary simulation, that usually means pairing an outside-in black-box phase with a grey-box phase from a known account, then using white-box review to explain why a path worked. Covert testing, which NIST describes as run without IT staff knowledge but with upper management permission, tests technical controls, staff response to perceived incidents and policy knowledge, and usually stops at defined boundaries such as a level of access. Confirm with each provider which access level every phase starts from and where the agreed boundary sits.

Starting access also changes what the test can say about manual work. The PCI SSC Penetration Testing Guidance (v1.1, September 2017) describes penetration testing as essentially a manual process, and says simply running an automated tool does not satisfy the penetration testing requirement. A scan from any starting point is a useful input, but it does not show that a tester chained a credential, a misconfigured role and a reachable service into a business-relevant outcome. When you compare proposals, ask each provider which findings required tester judgment at each access level, how the boundary is written into the rules of engagement, and what evidence will be retained for each attack path.

What each approach finds and what it misses

Each approach answers a different question about the same system: what an outsider can reach, what a logged-in user can do, and what the code and configuration allow. The misses matter as much as the finds, so check each gap against the written scope before you sign.

Black-box finds outside entry points

Black-box testing starts with no credentials, source code or design documents, so it finds what an outside attacker can reach: exposed services, weak internet-facing login pages and risky defaults on public hosts. This matters when the main risk is an outside entry point, such as a customer portal or API reachable from the internet. Check that the agreed hosts, domains and address ranges match your current exposure, and that the report states what was in scope.

Black-box misses staff response

Without an account, a black-box test rarely reaches functions behind login, so flaws in workflows, role checks and internal APIs can stay untested. It also does not test how staff respond unless that is written into scope. NIST SP 800-115 describes covert testing as performed without the IT staff's knowledge but with upper management's permission, and it usually stops at defined boundaries. Ask whether authenticated testing is included and whether covert testing of the response team is in the statement of work.

NIST SP 800-115 PDF

Grey-box finds broken role checks

Grey-box testing uses test accounts at more than one privilege level, so it can find broken role checks, such as a standard user reaching an administrative function or viewing another tenant's records. This matters when the application has several roles or shares data between tenants. Confirm that test accounts cover each role in scope, that they sit in an agreed environment, and that the report shows which checks were tried for each role. Ask for the matrix of roles and functions the tester compared.

Grey-box misses untested roles

A grey-box test can only check the roles and functions it was given, so a privilege path that no supplied account can reach stays untested. It also leaves out social engineering unless it is added to scope, such as a help desk agent asked to reset a password, which NIST SP 800-115 lists among target vulnerability validation techniques. Ask which roles, tenants and features are in the written scope, and whether social engineering and process testing are included or priced separately.

White-box finds code paths

White-box testing gives the tester source code, configuration files and architecture documents, so they can follow code paths that a live probe may never trigger. NIST SP 800-53 control SA-11, Developer Testing and Evaluation, includes static code analysis and manual code reviews among its enhancements, so this approach produces evidence for that control. This matters when the risk sits in business logic, secrets in configuration or unsafe defaults. Check that the code supplied matches the deployed build, and ask how each finding is confirmed in a running system.

White-box misses runtime and detection

A code-led test shows what the software could do, but it does not show how the deployed system behaves with live identity providers, network controls and data. It also does not measure whether defenders catch the techniques used, so detections stay unverified. CIS Controls v8.1 Safeguard 18.4 asks for security measures to be validated after each penetration test, so that detections cover the techniques the testers used. Ask for runtime testing and a detection review to be added to scope.

CIS Control 18 spec

What you receive from each approach

This table compares what each testing approach returns to the client: the findings report, the attack narrative or evidence, retest, detection tuning output, and any regulator-led closure set. The exact format is set in the written scope before work starts, so confirm each item with the provider. TIBER-EU's closure set is shown as the most complete example of a regulator-led package.

DeliverableBlack-boxGrey-boxWhite-box
Findings reportFindings from an outside view, ranked by what an outsider could reach and exploit.Findings tied to the access level supplied, with reproduction steps for authenticated paths.Findings tied to code locations, configuration and design flaws, with reproduction steps.
Attack narrative or evidenceStep-by-step attack path from the outside, with request logs or screenshots as evidence.Attack path from the supplied account or role, showing each privilege step taken.Attack path plus source references, data flow notes and call traces for each flaw.
Retest of fixed findingsRetest of fixed findings if included in scope. Confirm the number of retest rounds in writing.Retest per fixed finding, for each role or account in scope. Confirm this is included.Retest per fixed finding, checked against the code or configuration change. Confirm inclusion.
Purple team or detection tuning outputDetection gaps logged against the techniques used, only if a blue team takes part.Detection gaps for the account-based techniques used, only if a blue team takes part.Detection rule suggestions tied to the code paths tested, if purple teaming is in scope.
Regulator-led closure set (TIBER-EU example)Closest in style to a threat-led scope: red and blue team reports, replay, purple teaming, test summary, remediation plan and attestation.Confirm with the scheme owner whether a closure set applies to a partly informed test.Confirm with the scheme owner whether a closure set applies to a full-knowledge test.

When compliance frameworks call for each approach

The PCI SSC Penetration Testing Guidance is the document payment teams usually put in front of a qualified assessor when asked how a test was run. It describes penetration testing as an essentially manual process and covers social engineering as a component of the testing. Use it to decide which steps the tester must perform by hand and to record the access level in the scope.

  • Manual work: Running an automated tool alone does not satisfy the penetration testing requirement, so the statement of work should name the manual steps the tester will perform.
  • Social engineering: Social engineering is a component of penetration testing under this guidance, so phishing or pretext calls belong in scope only when the agreement names them.
  • Version control: The guidance is v1.1, dated September 2017, so cite that edition in the scope so the tester and the assessor work from the same text.
  • Access level: Neither the guidance nor the scope fixes the access level for you, so record the black-box, grey-box or white-box choice and the reason for it.

Confirm with your assessor which access level and tester independence they accept for your cardholder data environment before you sign.

Which access level fits the question you need answered?

The path starts with one question: does a regulator or framework set the scope? If it does, such as TIBER-EU or DORA threat-led testing, follow its scope and tester requirements before choosing an access level. If not, identify the question the test must answer. Outside exposure, meaning what an attacker sees with no credentials, points to black-box testing. Authorization or role-boundary risk points to grey-box testing with a limited account. Design, configuration or code depth points to white-box testing with documentation and source access. When two or more questions need answers, combine the approaches in one program with a written scope and rules of engagement.

Decision path from scope source to access level and combined programs.

What drives the cost and duration of black-box vs grey-box vs white-box testing

Six drivers set the cost and duration of a black-box, grey-box or white-box adversary simulation. Scope, access and manual depth mostly shape tester hours, while notice periods, regulated minimums and retesting mostly shape the calendar. DeployOpen does not publish a price list, and a quote follows the written scope.

Number and size of targets

Every in-scope host, application, cloud account or network segment adds reconnaissance, validation and reporting time, so the target list is the first cost driver. Ask for the target count and size before comparing quotes. One public web application is a much smaller scope than several business units, each with its own authentication. Confirm which targets are production, which are staging, and whether shared services such as identity providers are in or out of scope.

Test accounts and design access

Grey-box work depends on test accounts for each role, and the number of roles changes the effort. A tester who needs a customer, a support agent and an administrator account has three authorization paths to examine. White-box work adds design documents, architecture diagrams and source code access, which the tester must read before testing begins. Confirm who provisions these accounts, how long they stay active, and whether the client must redact data before sharing documents.

Depth of manual work

PCI SSC's penetration testing guidance describes the work as essentially manual and says running an automated tool alone does not satisfy the requirement. Chaining findings, testing business logic and checking authorization take the most tester hours, and they grow with each access level in scope. OWASP's testing guide says no single technique is enough and recommends a mix. Ask which tests are manual, which are tool-driven, and how many hours each phase is planned to take.

PCI penetration guidance

Rules of engagement and notice

Rules of engagement set what the tester may touch, when, and which techniques are excluded, and NIST SP 800-115 includes a template for them in Appendix B. Advance notice shapes the schedule: AWS requires a simulated events request at least 2 weeks in advance for red, blue or purple team testing. Phishing and social engineering often need separate approval, and Microsoft's rules prohibit phishing or social engineering of its employees. Check who approves each activity, how a stop request works, and which systems are excluded.

AWS testing policy

Regulated program requirements

For financial entities under DORA, threat-led testing is a regulated scope, not an optional add-on. Delegated Regulation (EU) 2025/1190 requires at least 12 weeks of active red team testing and a red team manager with at least 5 years of experience, plus at least two testers with 2 years each. These minimums raise staffing cost and lengthen the calendar before any finding is written. Confirm whether your competent authority applies the regulation to you and which scenarios it requires.

Delegated Regulation text

Retesting and purple teaming

Retesting after fixes is a separate line item, and it repeats each time a remediation cycle closes. Purple teaming is mandatory in TIBER-EU tests under the January 2025 framework, where red and blue teams work together to tune detections. CIS Safeguard 18.4 asks organizations to validate security measures after each penetration test, so detection tuning belongs in the scope and the price. Ask whether the quote covers a retest, a purple session and detection validation, and how many rounds it includes.

TIBER-EU framework PDF

How to combine the approaches in one testing program

This sequence shows how one program can use black-box, grey-box and white-box access in a fixed order, so each level answers a question the others cannot. It starts with a defined asset and question, moves through scanning and scheduled tests, and ends with detections checked against the techniques testers used and with retests after fixes.

  1. Define the asset and the question

    Name the system, the business service it supports and the question the program must answer, such as whether an outside party can reach customer data from the internet, or whether a staff account can reach functions belonging to another role. Record the in-scope hosts, accounts, environments and data owners, and list what is excluded. Agree the rules of engagement in writing, using the template in Appendix B of NIST SP 800-115 as a starting point. Done when the security lead, the system owner and the testing provider have signed the same scope document and every later step can point back to that question.

  2. Set a baseline with scheduled scanning

    NIST SP 800-115 suggests regularly scheduled network and vulnerability scanning, interspersed with periodic penetration testing. Set a scan cadence the owning team can sustain, and track which findings recur between cycles. Scan output lists known weaknesses and candidate issues, so the penetration testers should confirm or rule out each high-priority item before it is reported as exploitable. Done when the scan schedule, the asset owners and the triage rules are documented and the first baseline report has a named team responsible for it.

  3. Run black-box tests on external exposure

    Testers start with no credentials and no internal documentation, so they see what an outside attacker would see: internet-facing services, DNS records, exposed administration pages and login portals. Use this round to confirm the external attack surface and to check whether perimeter controls stop the techniques an outsider would try first. Add every reachable host and service to the asset inventory, since that list becomes the input for the grey-box round. Done when the report lists each externally reachable service, each validated finding and each entry point, with evidence attached to every item.

  4. Run grey-box tests across role boundaries

    Give testers standard user accounts for each role in scope, such as customer, agent and administrator, along with the documentation those roles receive. The goal is to test whether one role can read, change or act on another role's data or functions, a common place for authorization defects. Use the external findings from the previous step to decide which entry points each account should cover. Done when every role boundary in scope has a documented result, including the cases where access was correctly refused, so the report shows coverage as well as failures.

  5. Run white-box tests on critical components

    Give testers source code, architecture diagrams, configuration files and privileged access for the components the asset owner ranks as critical, such as the payment service, the identity integration or key management. Pair the review of code and configuration with exploitation attempts on the running system, so each finding is confirmed. The developer testing family in NIST SP 800-53 Rev. 5, control SA-11, can guide which code-level techniques to include, such as static code analysis, manual code review and threat modeling. Done when each critical component has confirmed weaknesses with code or configuration references and a named fix owner.

  6. Validate detections against the techniques used

    Map the techniques the testers used to MITRE ATT&CK tactics and techniques, then compare that list with the alerts your monitoring tools produced during the test window. CIS Safeguard 18.4 in CIS Controls v8.1 asks for security measures to be validated after each test, with rules and capabilities adjusted so the techniques used are detected. Mark each technique as alerted, partly alerted or missed, and assign a rule change for each gap. Done when every technique used has a recorded detection outcome and an owner for each change, which is the core output of a purple team exercise.

  7. Retest after fixes close each finding

    After owners ship fixes and detection rules, testers repeat the same techniques against the same entry points to confirm the change works and has not opened a new path. Apply this to each access level that produced findings, so external, role and component results are closed in the same way. Keep the original evidence and the retest evidence side by side in the report. Done when each finding shows a retest result of closed or still open, and any residual risk has a documented owner and an accepted decision.

Questions buyers ask before choosing or hiring a black-box, grey-box or white-box test

Is black-box testing cheaper than white-box testing?

Neither approach is reliably cheaper, because the price follows the scope and access level. A black-box engagement can look cheaper to brief, but testers spend more time finding entry points that a white-box tester would be given, so hours grow with the size of the estate. Grey-box and white-box work adds preparation on both sides. The main drivers are:

  • number and type of targets, such as web applications, APIs, cloud accounts or network segments
  • depth of access and whether source code is in scope
  • client time for accounts, documents and named contacts
  • whether retesting after fixes is included

Ask each provider to price the same written scope and access level, and to show the phases and hours behind the total.

How long does each type of security test take?

Duration depends on the number of targets, the access level and how much reporting and retesting you require, so ask for a timeline in the written scope before comparing. A black-box test spends early effort on discovery, while a white-box test front-loads document review and environment walkthroughs. Grey-box work sits between the two. Client response times often set the calendar, because access requests, credential issuance and answers to tester questions can wait on your staff. For entities in DORA's threat-led testing scope, Commission Delegated Regulation (EU) 2025/1190 requires at least 12 weeks of active red team testing. That figure applies to one threat-led format and does not set a benchmark for box-type tests.

What does a grey-box or white-box test need from my team?

Access and answers are the usual dependencies, so settle them before the tester starts. For grey-box or white-box work, expect to provide:

  • test accounts at the privilege levels in scope
  • architecture, design and configuration documents, plus source repository access where code review is in scope
  • named technical contacts who can answer questions within the test window
  • written rules of engagement covering allowed hours, prohibited actions, data handling, escalation and an emergency stop

Black-box work needs less of this, but you still need named contacts and rules of engagement. NIST SP 800-115 includes a rules of engagement template in Appendix B, which is a useful starting point. Confirm with the provider who approves the rules and who holds the credentials after the engagement closes.

Can our own team run a black-box or white-box test internally?

Yes, your own team can run black-box, grey-box or white-box tests, but whether the result satisfies a framework depends on independence. NIST SP 800-53 Rev. 5 control CA-8, Penetration Testing, has an enhancement for an independent penetration testing agent or team, and SP 800-53B selects CA-8(1) in the high baseline. Internal testers know the environment, which helps depth but can leave assumptions unchallenged that an outside view would catch. NIST SP 800-53 Rev. 5 CA-8 sets out the enhancement wording. Ask your assessor whether independence is required for your framework and baseline. Record who tested, their qualifications and their reporting line, and use an external provider where independence is required.

Does a black-box test satisfy CIS Control 18 or PCI SSC guidance?

Neither framework is written around a single box type, so a black-box, grey-box or white-box test can each fit if it meets the scope, cadence and manual-testing expectations. CIS Control 18, Penetration Testing asks for external and internal penetration tests at least annually under Safeguards 18.2 and 18.5. Safeguard 18.4 asks that security measures be validated after each test, so detections cover the techniques the testers used. PCI SSC's Penetration Testing Guidance says that simply running an automated tool does not satisfy the penetration testing requirement, so choosing a box type does not replace a manual, scoped test. Ask your assessor to confirm the tester qualifications, scope and cadence they accept before you buy.

Is an adversary simulation the same as a black-box test?

No. Black-box describes how much the tester knows about the target, while adversary simulation describes the goal: emulating a threat actor's objectives and techniques, usually with the client's detection and response in view. An adversary simulation can run with black-box, grey-box or white-box access. NIST SP 800-115 describes covert testing, run without the IT staff's knowledge but with upper management's permission, which tests technical controls, staff response and policy knowledge and usually stops at defined boundaries such as a level of access. MITRE ATT&CK's Enterprise matrix lists 15 tactics used to plan and report adversary emulation, so ask which tactics and techniques the plan covers. Confirm who knows about the exercise, the stop conditions and how detections will be evaluated.

What evidence should I expect from each type of test?

Each approach produces findings, but depth and traceability change with the access given. A black-box report shows what an outside attacker could reach and exploit, with limited visibility into internal configuration. A white-box report can trace findings to code, configuration or design decisions, which helps remediation but says less about what an outsider could find. Ask for a scope statement that records the access level for each test, a method reference, reproduction steps for each finding and a retest record. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work.

How DeployOpen scopes, runs and supports black-box, grey-box and white-box testing

DeployOpen scopes, runs and hands over black-box, grey-box and white-box adversary simulation as part of its security testing work, inside the client's own infrastructure. The access level for each test is agreed in writing before work starts, so the starting knowledge, credentials and boundaries are documented. Engagements are fixed-scope, and ongoing testing and support are available as retainers.

How we scope

  • The written scope states the access level for each test: none, partial or full knowledge of the target.
  • Scope lists the in-scope hosts, applications, accounts and cloud tenants, plus the out-of-bounds systems and stop conditions.
  • Rules of engagement, testing windows and escalation contacts are agreed in writing before any test traffic is sent.

How we build

  • Black-box work starts from public exposure only, while grey-box and white-box work receives credentials, design notes or source as scoped.
  • Each test is run against the client's own self-hosted platforms in the client's cloud accounts, data centers or air-gapped networks.
  • Testers work toward agreed objectives, such as reaching a named data store, and log each step for the evidence file.

How we hand over

  • The report records the access level used, each attack path, its evidence, and the fix status.
  • White-box findings point to the code, configuration or role involved, so engineers can reproduce them.
  • Retest can be written into the scope so the client can confirm that fixes close each attack path.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the fixed-scope engagement ends.
  • Repeat tests can reuse the same access levels and scope, so results can be compared across rounds.
  • Ask who will run the work, what access they hold, and how retainer scope changes after a platform upgrade.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.