Principles of Security
summary
Argues that deterrence and secrecy fail and only prevention works, citing Kerckhoffs and no security in obscurity; demonstrates the one‑time pad rules (key secrecy, key length, single use) to show what truly unbreakable means. Details web realities: XSS lets injected script read pages, steal cookies, submit data and load more code; same‑origin limits reads but not script loading; CSP and iframe sandbox exist but are off by default. Prescribes principle of least authority and the object‑capability model, strict linting and server‑side validation (JSON encoding not string concatenation), plus daily code reviews.
AI-written summary · about
chapters (23)
- 0:00Why security matters
- 1:04Security is everyone's job
- 2:06Kerckhoffs principle
- 5:40One-time pad explained
- 9:56Security cast of characters
- 11:21Designing against Satan
- 12:24Security must be built-in
- 14:11Web browser insecurity
- 16:41XSS attack consequences
- 21:01Why XSS is misnamed
- 22:05Limited progress on XSS
- 22:46Web stack complexity
- 24:59Principle of least authority
- 27:09Object capability model
- 31:06Capability patterns
- 32:11Keep code simple and clean
- 33:13Never trust the browser
- 35:25Ecommerce security lessons
- 36:49Simple XSS attack example
- 38:54Filter and encode properly
- 39:38Financial incentives to attack
- 40:24Mismanagement risks
- 41:11Q&A
