~/talk

Protecting cryptography code from timing vulnerabilities

Talkat StarCon 2018 · on Sunday, 2018-01-07· [security]
slides:none on file

Shows a concrete string-compare leak exploited by measuring tiny timing differences across many requests and even from co‑resident EC2 VMs, demonstrates attacks that recover API keys byte‑by‑byte, and quantifies which microarchitectural channels matter (cache, memory bandwidth, scheduler effects). Presents a coding style that enforces constant‑time control flow and avoids secret-dependent memory accesses, warns that a compiler reintroduces branch optimizations, and points to AddressTimingShield as a practical mitigation.

AI-written summary · about

  1. 0:00Start
  2. 0:39Can you see the vulnerability?
  3. 3:00Exploitation
  4. 4:06Can timing differences be measured?
  5. 5:01sleep(random_int)
  6. 5:32Modern computers multitask
  7. 6:52Causes of interference patterns
  8. 7:57Will this get fixed in hardware?
  9. 8:43Identify secret values
  10. 9:26no secret control flow
  11. 9:59no secret memory locations
  12. 10:14avoid variable-time ops
  13. 10:39An example (before)
  14. 11:09An example (after)
  15. 11:33But sadly, compilers.
  16. 12:12How do we fix this?
  17. 12:59rust-timing-shield
  18. 13:24Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.