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, backups
Tenant 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

Taught in

References

Certification courses