CME-601
Kernel-Level Syscall Filtering (seccomp)
Description
Restricts the set of system calls a process can make to the kernel. Reduces kernel attack surface by blocking syscalls the application doesn't need, preventing exploitation of kernel vulnerabilities through unused syscall handlers.
CVSS Vector Impacts
| Metric | Transition | Rationale |
|---|---|---|
| Scope (S) | C → U | Process cannot invoke blocked syscalls to escape to host kernel |
| Integrity (I) | H → L | Blocked syscalls like execve/ptrace prevent shell breakout |
CWE Relationships
Verification
Check process seccomp status
$ grep Seccomp /proc/<pid>/status
# Expected: Seccomp: 2
# Expected: Seccomp: 2
Platform: linux
Remediation
linux
systemd SystemCallFilter drop-in restricting syscalls to @system-service set
mkdir -p /etc/systemd/system/<service>.service.d
printf '[Service]\nSystemCallFilter=@system-service\nSystemCallErrorNumber=EPERM\n' > /etc/systemd/system/<service>.service.d/seccomp.conf
systemctl daemon-reload
systemctl restart <service>