Foundations

Defense in depth

Protect the same asset with controls that can catch different failures.

Start with the asset

Defense in depth means combining security layers so one failed control does not leave everything exposed. A password can be stolen, a firewall rule can be wrong, and a trusted application can contain a bug. The next layer should still reduce the attacker’s options.

For a teaching website, the valuable asset might be its private student records. Work outward from that data and ask what could protect it at each layer.

Security layers from physical access through identity, network, compute, applications, and data.

What each layer contributes

Layer Example control
Physical Restrict entry to the server room
Identity Require MFA and limit permissions
Perimeter Filter hostile traffic at the network edge
Network Isolate application and database subnets
Compute Patch server operating systems
Application Validate input and check authorization
Data Restrict access and encrypt sensitive records

These layers are a way to reason about protection, not a requirement to buy seven separate products.

Three outcomes to protect

The CIA triad names three security goals:

  • Confidentiality: only permitted people or systems can read the records.
  • Integrity: grades cannot be changed without authorization.
  • Availability: teachers can use the service when they need it.

Encryption mainly helps confidentiality. It does not keep an overloaded website available. A control should match the failure you are trying to prevent.

Walk through a failure

Suppose an attacker steals a teacher’s password. MFA might stop sign-in. If the attacker also gets a session, limited permissions can restrict access. If the account tries to reach the database directly, network controls can prevent that route. Monitoring may expose suspicious behavior for investigation. None of these controls justifies removing the others.

Defense in depth complements Zero Trust: layered controls provide multiple protections, while Zero Trust guides how you evaluate access.

Check your understanding

1. A site encrypts all records but goes offline during a traffic flood. Which security goal failed?

Show explanation

Availability. Encryption does not supply the capacity or traffic filtering needed to keep the site reachable.

2. Why keep database permissions when the application already checks users?

Show explanation

The application check can fail or be bypassed. Database permissions form another boundary and can reduce what a compromised application identity may do.

Sources

Sources consulted November 28, 2026. Examples and questions are original study exercises.

Markdown sourcecontent/notes/sc-900/defense-in-depth.md

Search notes