Ruby Web Application Security Defense in Depth
summary
Practical controls and measured outcomes: using separate database users limits SQL injection blast radius, deploying chroot + privilege drop and seccomp / pledge reduces post‑exploit abilities, and switching Unicorn to fork+exec (worker_exec) thwarts address‑space discovery. Support was added to unicorn and rack‑unloader to enable these modes; deployment yields three minor environment mismatches in the first four months and no security‑control–related incidents in the subsequent eight, with low ongoing maintenance.
AI-written summary · about
chapters (11)
- 0:00Start
- 4:10Exploitation
- 4:41Limit Exploit Damage
- 5:50Admin/Public
- 18:56autoload
- 20:45Ruby HACK Development Environments
- 22:36Testing
- 25:45Limit Ability to Pivot
- 31:26Privilege Escalation
- 35:32minitest
- 37:35Memory Protections








