~/talk

Designing Misuse Resistant APIs - Learning from Security Mistakes

Talkat emBO++ 2026 · 2026-03-18..03-20· [security, c-and-cpp]
slides:none on file

Shows how real failures — AMD microcode signing that replaced a hash with a MAC and used a hardcoded MAC key exploited — arise from exposing unsafe choices, then gives concrete fixes: prefer Libsodium-style high-level functions that hide modes, stop documenting copy‑paste insecure examples (PyAES’s static IV), force SQL prepared statements or an API accepting only string-literal queries, and use C++ techniques (user‑defined literals, non‑empty vector types, and the type-state builder pattern) to make invalid states unrepresentable at compile time.

AI-written summary · about

  1. 0:00Introduction to misuse-resistant APIs
  2. 2:54What misuse resistance means
  3. 11:09Avoiding dangerous API choices
  4. 18:31Documentation best practices
  5. 26:35Preventing SQL injection
  6. 40:59Parse don't validate principle
  7. 47:35Type-state pattern for APIs
  8. 56:23Encoding properties in types
  9. 1:01:54Q&A on team adoption
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.