Design

Defense in depth

Defense in depth is the security principle of layering multiple independent controls so that a failure in any one doesn't expose the system, input validation plus parameterised queries plus least-privilege database access plus output encoding plus a WAF. Each layer catches what others miss; no single layer is the only line of defence.

Updated

The pattern is borrowed from military doctrine and is the basis of every serious security architecture. The discipline: assume each layer will fail eventually, and design so that any single failure doesn't compromise the system. The trap is the inverse: layers that share assumptions (all four reject the same character sets but none reject the fifth) provide no incremental protection. Healthy defence-in-depth has heterogeneous controls, different vendors, different layers, different validation approaches, so an attacker's bypass of one isn't likely to bypass the others.

See the term at work

Stride keeps stories, architecture decisions, tests and delivery data in one workspace, where the terms in this glossary are things you can open.