Domain-Driven Security
summary
Claim: applying Domain-Driven Design removes whole classes of security bugs by making implicit concepts explicit. Examples: ordering a quantity of -1 triggers a real credit invoice so a quantity value object with guarded constructor fixes business integrity; SQL injection demo on the FacePalm app becomes admin, showing prepared statements alone are not enough so treat injection as a modeling problem; HTTP header cookie injection and stored XSS are avoided by context mapping and by wrapping secrets in a one‑time read guard.
AI-written summary · about
chapters (23)
- 0:00Introduction to Domain-Driven Security
- 1:06Talk overview and sessions
- 2:51Four quadrants of security attacks
- 3:12Real-world simple domain attack example
- 7:54Modeling quantity as domain primitive
- 11:50Modeling email addresses securely
- 14:21What is Domain-Driven Security?
- 16:52Simple technical attacks and injection flaws
- 18:39Demo: SQL injection vulnerability
- 22:11Injection flaws beyond SQL
- 22:56HTTP header injection attack
- 27:59Domain-Driven Security for injection flaws
- 29:45Validation order and security
- 32:42Complex technical attacks overview
- 33:23Cross-site scripting explained
- 36:18Context mapping and XSS
- 39:17Rethinking attacks with bounded contexts
- 41:25Second order injection attacks
- 43:31Pattern for sensitive data leakage
- 45:40Complex domain attacks explained
- 47:05Microservices and semantic dependencies
- 49:17Refuting surgical microservice changes
- 50:01Key takeaways and conclusion
