What is Defense in depth?
Layering several independent defences so that when one fails, another still stands. A phishing email that gets past the filter should still meet MFA, endpoint protection, least privilege and monitoring.
No single control is reliable, so defense in depth stacks controls of different kinds: preventive (filters, patching, MFA), detective (logging, EDR, alerting) and corrective (backups, incident response), across people, process and technology. The layers should fail independently. Two products that both rely on the same signature feed are one layer, not two. The idea also guides how to read an incident: asking which layers an attacker passed, and why each one failed, usually produces better fixes than blaming the first one. The trap is complexity. Layers nobody maintains, monitors or understands add cost without adding safety.
Source: NIST CSRC Glossary (NIST SP 800-53 Rev. 5).
Practice it in a lab
Free, hands-on labs that teach Defense in depth. 26 more labs also cover it.
- Add guardrails to your LLM app: filter what goes in and what comes out (beginner, ~50 min)
- Explore the Cyber Kill Chain (beginner, ~30 min)
- Read a website's HTTP security headers (beginner, ~30 min)
- Set up a pre-commit security hook (beginner, ~30 min)
- Understand cross-site scripting (XSS) — and how to stop it (beginner, ~40 min)
- Understand SQL injection — and how to stop it (beginner, ~35 min)
- Attack and defend a GraphQL API (introspection, resolver authz, and query-shape DoS) (intermediate, ~75 min)
- Block cross-site attacks with a Fetch Metadata resource isolation policy (Sec-Fetch-* headers) (intermediate, ~60 min)
Related terms
Related
- Add guardrails to your LLM app: filter what goes in and what comes out
- Explore the Cyber Kill Chain
- Read a website's HTTP security headers
- Set up a pre-commit security hook
- Understand cross-site scripting (XSS) — and how to stop it
- Understand SQL injection — and how to stop it
- Attack and defend a GraphQL API (introspection, resolver authz, and query-shape DoS)
- Block cross-site attacks with a Fetch Metadata resource isolation policy (Sec-Fetch-* headers)
- Least privilege
- False positive
- Sandbox
- Residual risk
- Cybersecurity glossary
- Free cyber labs