~/talk

Using Seccomp to Limit the Kernel Attack Surface

slides:none on file

Explains how seccomp uses in-kernel BPF programs loaded via prctl or the seccomp syscall (and supported by libseccomp) to whitelist system calls and inspect up to six syscall arguments, with mandated checks of the architecture field and the no_new_privs requirement. Gives a concrete BPF filter that kills process on open (kernel makes the shell report "Bad system call"), notes filters are permanent, and reports performance: a six-instruction filter adds ~25% syscall cost on old kernels, reducible to ~6% with mitigations and ~2% with the JIT.

AI-written summary · about

  1. 0:00Introduction
  2. 3:07History of Seccomp
  3. 5:04Seccomp Filtering
  4. 6:18Seccomp Filtering History
  5. 8:13How Seccomp Works
  6. 10:44Berkeley Packet Filter
  7. 13:17BPF Virtual Machine
  8. 17:17Conditional Jump Instructions
  9. 18:14Relative Offsets
  10. 18:49The Kernel
  11. 19:10System Call Data
  12. 22:28Example Load Instruction
  13. 24:29Example Conditional Jump
  14. 25:36Example Return Statement
  15. 26:14Architecture Field
  16. 29:27Answer the Filter
  17. 30:22Kill the Process
  18. 34:41Attacker
  19. 35:45Unprivileged User
  20. 36:20Example Program
  21. 39:37Filter Program Structure
  22. 40:01Running the Program
  23. 42:01BPA Filter Example
  24. 43:00A Word of Warning
  25. 44:35LibSetComp
  26. 45:48Multiple filters
  27. 48:25Two microphones
  28. 56:55Contacts
  29. 57:29SOC Camera
  30. 58:18SOC Glossary
  31. 59:04Seccomp Camera
~/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.