Home / Penetration testing / Black, gray and white box testing

Black box, gray box and white box penetration testing

Black box, gray box and white box describe how much information the testers get before a penetration test starts. Black box gives none, gray box gives some, such as a user account or a network diagram, and white box gives full information, such as configurations and architecture. Any type of penetration test can use any level.

Have an RFP or RFQ, or a budget to plan? Get a full proposal package or a budgetary quote within 2 business days. Submit your request or schedule a 30-minute intro call.

What each type of penetration test covers This page covers: Black, gray and white box. Red Tiger Security. Boxes show the area each test type covers, from the Internet to the field. Illustrative; scope is set for each engagement.
Internet borderInternet-facing systems
web, email, VPN, remote access
Cloud assetsSaaS, IaaS and hosted services
Corporate IT networkservers, laptops, identityPurdue layers 4 and 5
IT/OT perimeterand industrial DMZ
firewalls, jump hosts
Purdue layer 3.5
Control roomSCADA, HMI, historians, engineering workstationsPurdue layers 3 and 2
Field sitesPLCs, RTUs, drives, local panelsPurdue layers 1 and 0
Test labcontrol-system products and hardware
External penetration testoutside-in, from the Internet
Internet border and Internet-facing systems, plus any cloud assetsZone: Internet border, Cloud assets
Internal penetration testcorporate IT, plus routes to OT
Corporate IT network
Routes to OT:tests the IT/OT perimeterZone: IT/OT perimeter
OT penetration testlayer by layer, perimeter to field
SAFETY FIRSTPassive only on layers with embedded controllers. Active only on test or dev systems, or in a turnaround or maintenance window.
1 IT/OT perimeter
2 DMZ systemsZone: IT/OT perimeter and DMZ
3 Control room
4 Field: passive onlyZone: Field sites
Red teamall-out attempt to gain access
starts from outside, or with an assumed foothold
Layers 5 and 4Corporate ITZone: Corporate IT network
Layer 3.5optionalZone: IT/OT perimeter
People and physical layersocial engineering, badges, biometrics, device placementZone: Corporate IT network to IT/OT perimeter
Optional extension to Layer 3 and belowe.g. a field I&E cabinet and its industrial switchZone: Control room, Field sites
Purple teamred team and defenders together
detection and response are tuned as the test runs
Layers 5 and 4with the defendersZone: Corporate IT network
Layer 3.5optionalZone: IT/OT perimeter
Optional extension to Layer 3 and belowthrough the physical-security path (same example)Zone: Control room, Field sites
Bi-Directional Penetration Testingoutside-in, then inside-out
1. Outside-in: Internet to the IT/OT perimeterZone: Internet border to IT/OT perimeter
2. Inside-out:back toward the perimeterZone: IT/OT perimeter, then the control room and field sites
test pointZone: Control room
test pointZone: Field sites
Segmentation validationdo the boundaries hold?
IT/OTboundaryZone: Between corporate IT and the IT/OT perimeter
DMZ to controlboundaryZone: Between the perimeter and the control room
control to fieldboundaryZone: Between the control room and field sites
ICS product and hardware testingblack, gray or white box, in a lab
Layers 2 and 1: DCS, SCADA, PLC/RTU controllerssmart instruments, IoT and medical devicesZone: Control room, Field sites
Lab benchfindings go to vendorsZone: Test lab
Black, gray and white box (this page)how much the testers are told; applies to any row
Black boxno prior informationZone: Any zone
Gray boxpartial informationZone: Any zone
White boxfull informationZone: Any zone
Legend
  • solid box: area the test covers
  • dashed box: reached as part of the test, or by agreement
  • hatched box: passive only
  • test point placed on the OT side

Brownfield and greenfield. Everything above applies to brownfield systems, meaning plants and networks that are already operating. Greenfield systems, meaning new builds, are tested through the project lifecycle: design review, vendor-location build testing, commissioning validation, then periodic health checks every 2 to 3 years.

Executive summary for managers, directors and CISOs

  • Black, gray and white box describe how much the testers are told; any test can use any level.
  • Business value: the level sets depth and cost, so choosing it deliberately avoids paying for the wrong test.
  • Next step: tell the team your goal and receive a budgetary quote within 2 business days.

Definition. The box color describes tester knowledge, not the area tested. External, internal, OT, red team and product tests can each be black, gray or white box.

What is the difference between black box, gray box and white box testing?

Black box testers start with no prior information, like an outside attacker. Gray box testers start with partial information, like a user or contractor with some access. White box testers start with full information, such as diagrams, configurations and credentials. More information means more depth in the same time, and less realism about what an outsider knows.

LevelTester starts withBest for
Black boxNo prior informationSeeing what an outside attacker could discover alone
Gray boxPartial information, such as a standard account or a network diagramModeling a user, contractor or attacker who already has a foothold
White boxFull information, such as configurations and architectureDeep coverage, and safer targeting in fragile environments

Which level should an organization choose?

Choose by the question and the risk. Use black box to test exposure from the Internet, gray box to model a compromised account or contractor, and white box when depth or safety matters most. Many programs mix them, starting black box externally and moving to gray or white box inside.

Which level suits OT and ICS systems?

On live OT, more information generally means safer and more targeted testing, because the testers know which devices are fragile and where active work is acceptable. White and gray box are therefore common for OT layers, while black box is more common for the Internet border.

See OT penetration testing and Safety in live OT penetration testing.

Does black, gray and white box apply to hardware and product testing?

Yes. Hardware testing of DCS, SCADA, PLC and RTU controllers, smart instruments, IoT and medical devices can be black, gray or white box. Black box starts with the device alone. White box shares design and firmware information. The choice sets how deep the test goes and how findings are fed back to the vendor.

See ICS product and hardware testing.

Frequently asked questions

What is a black box penetration test?

A black box test gives the testers no prior information about the target. It shows what an outside attacker could find and use alone.

What is a gray box penetration test?

A gray box test gives the testers partial information, such as an ordinary user account, a network diagram or a list of addresses. It models someone who already has some access.

What is a white box penetration test?

A white box test gives the testers full information, such as architecture, configurations and sometimes credentials. It gives the deepest coverage for the time spent.

Is white box testing less realistic?

It is less like a lone outsider, but it finds more in the same time. Many programs use black box for the Internet border and gray or white box for internal and OT layers.

Can one engagement use more than one level?

Yes. A common plan is black box externally, gray box on the corporate network and white box on OT layers.

Submit your RFP or RFQ, or schedule a call

Red Tiger Security delivers a full proposal package within 2 business days of a complete RFP or RFQ submission, and a budgetary quote within 2 business days for managers, directors and CISOs planning a budget.

Red Tiger Security is based in The Woodlands, Texas and works across the United States and internationally.

+1.877.387.7733
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.