A penetration tester is hired to assess the security of a company's internal network. The tester is given full network diagrams, credentials, and source code. Which type of penetration test is being performed?
Trap 1: Black box
Black box testing simulates an external adversary with zero prior knowledge, forcing the tester to perform passive and active reconnaissance, fingerprinting, service enumeration, and vulnerability identification purely from an outside perspective. This approach best mimics a real-world unauthenticated attack and uniquely stresses the discovery of exposed services and misconfigurations that are visible only from the perimeter. However, it is time-intensive and may miss deep logic flaws or internal vulnerabilities that remain concealed behind proper edge defenses.
Trap 2: Grey box
Grey box testing provides partial knowledge, such as low-privileged credentials, an API specification, or network segment information, without full source code or architectural details. This middle-ground approach lets the tester concentrate on post-authentication logic, privilege escalation paths, and data exposure within specific modules, striking an efficiency balance between black and white box protocols. It is commonly chosen for web application assessments where access to a valid session is necessary to uncover flaws like broken access control or IDOR.
Trap 3: Red team
Red team is not a knowledge-level classification but rather a goal-oriented engagement that simulates a full-scale adversary attack across people, processes, and technology, often combining physical, social engineering, and technical vectors. Unlike white, black, or grey box tests, red team exercises evaluate detection, response, and defensive coordination while attempting to achieve specific objectives like data exfiltration or domain compromise without being caught. It may employ any of the three knowledge levels internally, so selecting it here confuses engagement type with testing intelligence.
- A
White box
White box testing grants the tester complete knowledge of the target environment, including source code, architecture diagrams, credentials, and internal documentation. This enables deep static analysis and code-path-specific vulnerability discovery, such as identifying logic flaws or hardcoded secrets that would be invisible to a black-box approach. The elevated access reduces reconnaissance effort and speeds up the assessment, but requires the tester to prioritize findings against a vast attack surface and validate beyond mere code scanning.
- B
Black box
Why wrong: Black box testing simulates an external adversary with zero prior knowledge, forcing the tester to perform passive and active reconnaissance, fingerprinting, service enumeration, and vulnerability identification purely from an outside perspective. This approach best mimics a real-world unauthenticated attack and uniquely stresses the discovery of exposed services and misconfigurations that are visible only from the perimeter. However, it is time-intensive and may miss deep logic flaws or internal vulnerabilities that remain concealed behind proper edge defenses.
- C
Grey box
Why wrong: Grey box testing provides partial knowledge, such as low-privileged credentials, an API specification, or network segment information, without full source code or architectural details. This middle-ground approach lets the tester concentrate on post-authentication logic, privilege escalation paths, and data exposure within specific modules, striking an efficiency balance between black and white box protocols. It is commonly chosen for web application assessments where access to a valid session is necessary to uncover flaws like broken access control or IDOR.
- D
Red team
Why wrong: Red team is not a knowledge-level classification but rather a goal-oriented engagement that simulates a full-scale adversary attack across people, processes, and technology, often combining physical, social engineering, and technical vectors. Unlike white, black, or grey box tests, red team exercises evaluate detection, response, and defensive coordination while attempting to achieve specific objectives like data exfiltration or domain compromise without being caught. It may employ any of the three knowledge levels internally, so selecting it here confuses engagement type with testing intelligence.