~/talk

Securing Kubernetes Applications by Crafting Custom Seccomp Profiles

Talkat KubeCon + CloudNativeCon Europe 2022 · 2022-05-16..05-20· [security]
slides:none on file

Walks through creating a custom seccomp JSON for a real single-container app (kube-rbac-proxy), first by collecting syscalls via auditd log tracing (shows logging is slow and hit by rate limits) and then with eBPF recorder (bpftrace/libbpf based, lower overhead). Builds an allowlist profile of ~25 syscalls, applies it from /var/lib/kubelet/seccomp, and proves the Security Profiles Operator automates recording, converts recordings to CRs and reconciles profiles to all nodes; notes Kubernetes 1.25 seccomp-default status and CICD integration challenges.

AI-written summary · about

  1. 0:00Start
  2. 1:09seccomp is a syscall (Linux API) interceptor feature of the Linux Kemel . Can boost application security by limiting the list of allowed syscalls Supports different actions if a syscall rule has been hit
  3. 4:11The overall goal is to understand • How seccomp profiles work and which possibilities they allow
  4. 7:25syscalls will only get logged if requested • Logging has a high performance impact (blocks the application) • A special seccomp action is available for logging
  5. 10:08Finally obtain a list of syscalls: sudo cat /var/log/audit/audit.log
  6. 17:34For example, using tools like bpftrace already allows us to collect the required data sudo bpftrace -e 'tracepoint:raw_syscalls:sys_enter
  7. 29:11Thoughts on this approach . We mostly get rid of all manual collection obstacles • Gathering all application code paths is the hardest part
~/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.