Attacker Knowledge (White-Box/Black-Box)
Attacker knowledge describes how much information a person testing or attacking a system is assumed to have about how that system works. In a black-box scenario, the tester has little to no prior knowledge and probes the system from the outside, much like an external attacker; in a white-box scenario, the tester is given extensive internal information about the system's structure. A grey-box scenario falls in between, with partial knowledge. These distinctions matter because the level of assumed knowledge shapes what vulnerabilities a test can realistically uncover.
Attacker knowledge is a parameter in security and adversarial testing that defines the information available to the evaluating party about a target system, commonly framed along a spectrum from black-box to white-box, with grey-box as an intermediate case. As described in penetration testing practice, a black-box assessment simulates an external attacker with little to no prior knowledge of the target's internal structure, focusing on vulnerabilities exploitable from outside; a white-box assessment provides the tester extensive internal information and is used to simulate a targeted attack that exercises as many attack vectors as possible; grey-box combines partial internal knowledge with external probing. The evidence provided here documents these categories in the context of general penetration testing rather than AI-specific adversarial evaluation. Note that in adversarial machine learning the same terms are used with related but not identical meanings (for example, white-box often denotes access to model architecture, parameters, or gradients, while black-box denotes query-only access); those AI-specific definitions are not established by the sources cited here and should be verified against dedicated adversarial ML literature. This entry does not address the specific threat-model assumptions, taxonomies, or evaluation protocols used in AI red-teaming, which fall outside the scope of the provided evidence.
Why it matters
The assumed level of attacker knowledge directly shapes what a security assessment can and cannot reveal. A black-box test, which simulates an external attacker with little to no prior knowledge of the target's internal structure, tends to surface vulnerabilities that are exploitable from outside the system boundary. A white-box test, by contrast, provides the tester extensive internal information and is typically used to simulate a targeted attack that exercises as many attack vectors as possible. Because these two approaches probe different parts of the attack surface, the choice of knowledge model is not a mere procedural detail; it determines the coverage and interpretation of the results. Treating a black-box result as if it were exhaustive, or assuming a white-box result reflects a realistic external threat, can lead to a distorted picture of a system's exposure.
Who it's relevant to
Inside Attacker Knowledge (White-Box/Black-Box)
Common questions
Answers to the questions practitioners most commonly ask about Attacker Knowledge (White-Box/Black-Box).