CPSA ยท Engagements, law and reporting
Infrastructure vs application; black, grey, white box
Difference between infrastructure and application testing and between black, grey and white box approaches.
Key points
- Infrastructure testing targets networks, hosts and services (ports, OS, configuration).
- Application testing targets the logic of a web or mobile app (authentication, input handling, sessions).
- Black box: tester has no prior knowledge.
- Grey box: partial knowledge, such as a normal user account.
- White box: full knowledge, such as source code and diagrams, giving more depth in less time.
Practice questions
In a white box test the tester is typically given
- nothing beyond the company name
- only a list of public IP addresses
- detailed information such as source code or architecture
- a single stolen credential
Show answer
Answer: C. detailed information such as source code or architecture
White box means full knowledge, so effort goes into depth rather than discovery. Only a name or IP list is black box.
Which targets fall under infrastructure testing?
- Firewall rule base and open ports
- SQL injection in a search form
- Patch level of a file server
- Session fixation in a login page
- Business logic of a checkout flow
Show answer
Answer: A. Firewall rule base and open ports, C. Patch level of a file server
Network devices, ports and host patching are infrastructure. Injection, sessions and checkout logic are application concerns.
A black box test always gives a more realistic result than a white box test, so it is always the better choice.
Show answer
Answer: False
Black box mimics an outsider but spends time on discovery and may miss deep flaws within a fixed budget. The best choice depends on the client's goal.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
