liveBook · Manning

Defense in depth

As explained in Real-World Cryptography

A defense-in-depth technique is a security measure that adds an independent protective layer to reduce the impact of failures or compromises.

Defense in depth layers imperfect, independent protections so an attacker must defeat several barriers rather than one. A password database, for example, can hash passwords, add per-user salts, and use deliberately slow password hashing. Each measure addresses a different failure mode, but none makes compromise impossible. section 2.6

Common defensive layers include:

  • Hash passwords instead of retaining plaintext, then add salts to prevent shared precomputation and use slow password-hashing functions to raise brute-force costs. section 2.6
  • Combine certificate revocation with OCSP, OCSP stapling, and Certificate Transparency so compromised or mis-issued certificates can be detected or invalidated. section 9.3
  • Separate cryptographic keys onto dedicated hardware and add further protections when attackers may physically access devices. section 13.2

A compromised certificate

Certificate revocation may appear useless until a certificate is compromised. It then provides a fallback layer, while Certificate Transparency helps expose certificates that were issued improperly. These defenses still depend on monitoring and rapid response. section 9.3

Figure 9.9 Certificate revocation on the web has had three popular solutions: Certificate Revocation Lists (CRLs), Online Certificate Status Protocol (OCSP), and OCSP stapling.

Compare CRLs, OCSP, and OCSP stapling as successive approaches to certificate revocation. section 9.3

How Real-World Cryptography covers it

How deep it goes
Defines layering through password, web, and hardware examples, but stops short of prescribing one universal defense stack.
Examples
Uses hashed passwords, certificate revocation, OCSP stapling, Certificate Transparency, skimmers, evil maid attacks, and hardware key isolation.
What it assumes
Assumes basic familiarity with passwords, certificates, cryptographic keys, and attackers while framing threat assumptions explicitly.
What you can do after
Evaluate security designs by identifying independent layers and estimating how each raises an attacker’s cost.
How it connects
Connects password hashing, salts, certificate revocation, Certificate Transparency, trusted systems, and hardware security.

Also explained in

Compare how 7 books explain defense in depth →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.