What is Seccomp?
Seccomp (Secure Computing Mode) is a Linux kernel feature that restricts which system calls (syscalls) a process can make.Why Limit Syscalls?
Most applications use only 50-100 of Linux’s 300+ syscalls. Blocking unused syscalls:- Reduces attack surface
- Prevents privilege escalation exploits
- Stops malicious code from using dangerous syscalls
How kguardian Generates Profiles
- Observes all syscalls made by the container via eBPF
- Aggregates unique syscall names over observation period
- Generates JSON profile with allowlist
Actions
SCMP_ACT_ALLOW: Allow the syscallSCMP_ACT_ERRNO: Block with error (default for unlisted)SCMP_ACT_LOG: Log the syscall but allow itSCMP_ACT_KILL: Kill the process (most restrictive)
Next steps: