Every program that runs on Linux, macOS, or Android must ask the operating-system kernel for anything it wants to do beyond pure computation — open a file, write to a socket, spawn a child process, allocate memory. These requests are called system calls (or syscalls), and there are roughly three hundred of them on a modern Linux kernel.
That channel is precisely what an attacker exploits. When a bug lets an adversary run arbitrary code inside your process — a buffer overflow, a use-after-free, a deserialized payload — the very first thing the exploit does is reach for a syscall: connect out to a command-and-control server, write a backdoor to disk, or escalate privilege via a kernel vulnerability.
seccomp (Secure Computing mode) is a Linux kernel feature that lets a process permanently restrict the system calls it may make. The kernel enforces the policy at the hardware level; no amount of code running inside the process can lift it. A blocked syscall simply returns an error — or kills the process outright, before the payload gets to do anything useful.
The security model is principle of least privilege applied to the OS interface: give the process only the syscalls it genuinely needs, and everything else becomes a wall the exploit cannot climb.
Comments
Loading comments...