Mastodon Feed: Post

Mastodon Feed

cwebber@social.coop ("Christine Lemmer-Webber") wrote:

Most security vulnerabilities have pretty common shapes. But we also have solutions to them:

- Ambient authority! Mitigation: capability security
- Confused deputies! Mitigation: capability security
- Memory exploits: Mitigation: use memory safe languages (Rust and etc if you gotta go low level, though languages with a GC or etc are actually even *safer* because they don't have "unsafe" blocks of code) or use CHERI
- Injection attacks: Use structured representations. Quasiquote or combinator templating is much safer than string templating, for example. Why are we speaking to our databases in sentences? Send them the AST of the query!
- Bad crypto usage: Use standardized cryptography patterns

There are a few others, but even if you just focus on the above, we can simply *eliminate* huge swaths of security issues.