Bitzu

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

Single choice

In a white box test the tester is typically given

  1. nothing beyond the company name
  2. only a list of public IP addresses
  3. detailed information such as source code or architecture
  4. 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.

Select all that apply

Which targets fall under infrastructure testing?

  1. Firewall rule base and open ports
  2. SQL injection in a search form
  3. Patch level of a file server
  4. Session fixation in a login page
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CPSA topics in this module