Step 12 of 36 · Engineering partnership
Secure defaults and paved roads
Fix a class of problem once, in the platform, so that the easy way to build is also the safe way.
You can ask every engineer to remember every rule, or build the rule into the tools they already use. Only the second scales. A framework that escapes output by default, a service template with authentication built in, a secrets store that is easier than a config file: each removes a class of mistake without a review.
Treat these as products. They need an owner, documentation, migration help and users who would choose them. Often the platform team builds and you specify. Your review question then shrinks to one: are you on the paved road? Teams that are get a light touch. Teams that leave it get your attention.
The mistake is to mandate a road that is slower than the dirt track. Engineers will take the track.
Try this week
- Group your last twenty security findings by cause. Pick the largest group and ask what default would have prevented it.
- Sit with a team as they create a new service and note every security decision they had to make by hand.
Signs you've got it
- New services are secure in the common respects without anyone from security being involved.
- Whole categories of finding stop appearing in reviews and tests.
Resources
- paperSecure by Design at Google (opens in a new tab)Christoph Kern
- bookWriting Code (Building Secure and Reliable Systems, chapter 12) (opens in a new tab)Michał Czapiński and Julian Bangert
- articleA Pragmatic Approach for Internal Security Partnerships (opens in a new tab)Clint Gibler, on a talk by Scott Behrens and Esha Kanekar
- guideSecure by Design (opens in a new tab)CISA
- articleWhat I Talk About When I Talk About Platforms (opens in a new tab)Evan Bottcher