~/talk

Using Seccomp to Limit the Kernel Attack Surface

Talkat NDC TechTown 2018 · 2018-09-27..09-30· [security]
slides:none on file

Seccomp uses BPF programs to whitelist or block kernel calls, reducing a 400-call kernel surface to the small set an app actually needs — typical apps uses <40 syscalls — and can kill or return errno for unexpected calls. Filters are per-process, permanent, expressed as BPF (only read-only syscall numbers/args, no pointer dereference yet) and limited to 4k-instruction filter / 32k total across all filters; installation via prctl or the newer seccomp syscall, often generated with libseccomp API. Expect measurable overhead (example: getppid +25%) and brittleness from libc/ABI changes (open→openat).

AI-written summary · about

  1. 0:00Intro
  2. 0:19What is Seccomp
  3. 0:29System calls
  4. 2:26Seccomp history
  5. 4:30Filter mode
  6. 5:15System call limitation
  7. 7:19Seccomp
  8. 8:02Second Filtering
  9. 12:58BPF
  10. 15:48Virtual Machine
  11. 18:27Conditional Jump Instructions
  12. 19:39Relative Offsets
  13. 20:25System Call Structure
  14. 22:22BPF Statement
  15. 25:11BPF Jump
  16. 26:06BPF Return
  17. 26:46ADD
  18. 27:30Architecture
  19. 27:45System Call Numbers
  20. 28:58System Call Conventions
  21. 32:55Filter Program
  22. 35:17Example
  23. 41:22Performance Cost
  24. 43:28Which System Causes My Application Make
  25. 44:09What About That
  26. 44:51System Call Filtering
  27. 45:59Lubeset Comp
  28. 46:41Seccomp Context
  29. 47:29BPF Compiler
  30. 47:49JIT Compiler
  31. 48:49Applications
  32. 49:54Further Information
  33. 50:12Questions
~/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.