Home / Penetration testing / Black, gray and white box 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.
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.
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.
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.
| Level | Tester starts with | Best for |
|---|---|---|
| Black box | No prior information | Seeing what an outside attacker could discover alone |
| Gray box | Partial information, such as a standard account or a network diagram | Modeling a user, contractor or attacker who already has a foothold |
| White box | Full information, such as configurations and architecture | Deep coverage, and safer targeting in fragile environments |
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.
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.
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.
A black box test gives the testers no prior information about the target. It shows what an outside attacker could find and use alone.
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.
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.
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.
Yes. A common plan is black box externally, gray box on the corporate network and white box on OT layers.
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.