defense in depth
Using several independent protections, so that if one fails another still limits the damage.
In more detail
For example, SameSite cookies and anti-CSRF tokens protect against the same attack in different ways. Each layer should still help when another has been bypassed.
Examples
Bastion layers: firewall on port 22, keys plus MFA, fail2ban, central logs, backupsTenant isolation: tenant from verified claims at the gateway, scoped repositories in the application, and row-level security in the database.In the course random identifiers, read-only filesystems, dropped capabilities and HttpOnly cookies are depth: useful layers that do not replace the main control.Related terms
- security control — A safeguard that reduces a risk, grouped by timing as preventive (stops a change), detective (notices it) or corrective (undoes it).
- bastion host — A hardened server that is the single entry point from outside into a private network, usually over SSH.
- compensating control — An alternative control used when the usual one cannot be applied, which must meet the same intent and give comparable protection.
- control type — A way of grouping security controls by what they do to an attack: prevent, deter, detect, correct, recover, direct or compensate.
- CSRF token — A secret value tied to the user's session that must accompany each state-changing request, which another website cannot read or guess.
- SameSite — A cookie attribute that limits whether the browser sends the cookie on requests started by other websites.
- multi-tenancy — One running system serving several separate customers, called tenants, while keeping each one's data and settings apart.
- row-level security — A database feature that filters which rows each query may see or change, using policies the database enforces itself.
- least privilege — Giving every program and person only the access they need, and nothing more.
- unguessable identifier — An identifier made from enough random bits, such as secrets.token_urlsafe(12), that nobody can guess another valid one.
Taught in
- Microsoft Entra ID And Access — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Zero Trust, Defence In Depth And Defender For Cloud — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography
- CSRF Mitigations, SameSite Cookies And Subresource Integrity — Frontend Architecture & Web Platform
- Multi-Tenant Identity: Tenant Isolation & Middleware — Production Full-Stack Engineering
- Broken Object Level Authorization — Application Security & Threat Modeling for Engineers
- Container Security: Minimal Bases And Non Root — Application Security & Threat Modeling for Engineers