Chapter 1

Security and systems foundations

This chapter defines the vocabulary that every security argument in the book uses. A security claim is never just “the system is secure”: it names what is protected, against which attacker, under which assumptions, and on what evidence. The first entries supply those parts: the system model §1.1 and the threat model §1.2, the trust boundary §1.3 across which data must be checked, and the trusted computing base §1.4 on which a claim depends. Next come the properties a system can promise, such as confidentiality §1.8, integrity §1.9, availability §1.10, safety properties §1.11 and liveness properties §1.12, and the design principles that help it keep them, such as fail-closed §1.13 design, least privilege §1.15 and complete mediation §1.16.

The middle of the chapter covers classic attacks and failure models §1.30: the confused deputy §1.25, replay attacks §1.26, downgrade attacks §1.27, denial of service §1.28, side channels §1.29 and Byzantine failures §1.31. The last part teaches how to state a claim exactly. It separates assumptions from guarantees, mechanisms from evidence, and the authenticity of data from its authorship; it explains how authority and information may flow, through capability security §1.40, information-flow control §1.41, noninterference §1.42 and declassification §1.43; and it ends with attack preconditions §1.44, the scope of a claim, recovery authority §1.46, secure defaults §1.47, strict parsing §1.48, and the controlled use of untrusted input. Most later chapters rely on these terms, so a reader new to security may want to start here.

In this chapter

  1. 1.1 System model
  2. 1.2 Threat model
  3. 1.3 Trust boundary
  4. 1.4 Trusted computing base (TCB)
  5. 1.5 Attack surface
  6. 1.6 Authentication
  7. 1.7 Authorization
  8. 1.8 Confidentiality
  9. 1.9 Integrity
  10. 1.10 Availability
  11. 1.11 Safety property
  12. 1.12 Liveness property
  13. 1.13 Fail closed
  14. 1.14 Fail open
  15. 1.15 Least privilege
  16. 1.16 Complete mediation
  17. 1.17 Reference monitor
  18. 1.18 Defense in depth
  19. 1.19 Policy versus mechanism
  20. 1.20 Observation versus enforcement
  21. 1.21 Detection versus prevention
  22. 1.22 False positive and false negative
  23. 1.23 Security invariant
  24. 1.24 Adversarial composition
  25. 1.25 Confused deputy
  26. 1.26 Replay attack
  27. 1.27 Downgrade attack
  28. 1.28 Denial of service (DoS)
  29. 1.29 Side channel
  30. 1.30 Fault model
  31. 1.31 Byzantine failure
  32. 1.32 Physical versus logical access
  33. 1.33 Root of trust
  34. 1.34 End-to-end security
  35. 1.35 Security versus functional correctness
  36. 1.36 Assumption versus guarantee
  37. 1.37 Mechanism versus evidence
  38. 1.38 Authenticity versus authorship
  39. 1.39 Data plane versus control plane
  40. 1.40 Capability security
  41. 1.41 Information-flow control
  42. 1.42 Noninterference
  43. 1.43 Declassification
  44. 1.44 Attack precondition
  45. 1.45 Security claim scope
  46. 1.46 Recovery authority
  47. 1.47 Secure default
  48. 1.48 Robustness principle and strict parsing
  49. 1.49 Integrity endorsement: when untrusted input may influence trusted state