Domain 8

Objective 8.3

Assessing software security

What it is

You measure software security with tests aimed at abuse, not only at the happy path. Static testing reads the code or the binary without running it, looking for dangerous patterns. Dynamic testing runs the software and sends it real requests, including cruel ones. Interactive testing mixes the two. Fuzzing throws malformed input at a program to see if it crashes or misbehaves. Code review is humans reading changes. Coverage measures how much of the code the tests actually touch. A high coverage number that never tests authorization is a comforting lie. Maturity is whether findings are fixed and whether the same bug class stops returning.

Why it matters

Each method sees a different slice. Static tests can find a dangerous function early and can drown you in false alarms. Dynamic tests see the running configuration and miss code you did not execute. Fuzzing is good at parsers and bad at business rules such as “this clerk may not approve their own refund.” Review catches design intent. None of them replace the requirement that someone owns the fix.

A simple example

Reading the recipe for “do not store raw chicken above salad” is static review. Ordering the dish and sending back a strange request, such as a note that tries to change the price, is dynamic. Throwing random ingredients at the blender to see if the lid flies off is fuzzing. If you only ever test the chicken sandwich you meant to sell, you have not tested the blender, and you have not tested a customer who asks for someone else's order.

On the exam

Match the method to the question. Source available and you want a pattern: static. Running app and you want behavior: dynamic. Crashes on bad input: fuzz. “Who may do this?” often needs review and an authenticated dynamic test. A trap is a green dashboard of static warnings that were all marked “won't fix,” or coverage that never logs in.

Words worth keeping

Static testing
Examining code without running it, to find dangerous patterns early.
Dynamic testing
Testing the running software by sending it requests and watching behavior.
Fuzzing
Sending large amounts of malformed input to find crashes and odd failures.
Practice this section