Optimus: association-based dynamic system call filtering for container attack surface reduction

Seungyong Yang, Brent ByungHoon Kang, Jaehyun NamJ. Cloud Comput 2024

Introduction

In cloud-native environments, containers have become the standard for application deployment due to their efficiency and portability. However, the shared-kernel architecture of containers presents a significant security challenge: a single vulnerability in the kernel interface can allow an attacker to escape a container and compromise the entire host. Reducing the kernel attack surface—the set of system calls (syscalls) accessible to a container—is therefore a critical security objective.

The Challenge of Syscall Filtering

While the Linux kernel provides approximately 400 syscalls, most containerized applications require only a small subset. Tools like Seccomp allow for the creation of whitelists, but manual configuration is error-prone and difficult to scale. Static analysis often fails to capture syscalls required only at runtime, leading to application crashes. Conversely, dynamic analysis may miss rare but legitimate operations, such as memory resizing or configuration reloads. Furthermore, standard Seccomp profiles cannot be updated on a running process without restarting the container, leading to undesirable downtime.

The Optimus Architecture

To address these limitations, the researchers developed Optimus, an automated framework designed for dynamic syscall filtering with high availability.

The overall architecture of Optimus, illustrating the interaction between the host kernel, eBPF monitoring, and user-space management components.

The Optimus framework consists of three primary components:

  1. Lightweight eBPF Monitoring: Optimus utilizes eBPF (Extended Berkeley Packet Filter) to trace syscalls directly within the kernel. This approach is significantly more efficient than traditional tools like strace. Crucially, the monitor is "container-aware," mapping kernel-level process IDs (PIDs) to specific container metadata to ensure accurate profiling.
  2. Association Analysis via FP-Growth: At the heart of Optimus is an association rule mining engine. By applying the FP-Growth algorithm, the system identifies logical relationships between syscalls. If a syscall appears that deviates from established patterns, it is flagged as a potential security anomaly.
  3. Covert Container Renewal: To enable security updates without service interruption, Optimus employs a "covert swap" mechanism. When a profile update is required, a twin container is launched with the new policy. Once stabilized, traffic is seamlessly redirected to the new instance.
The Trace Table and Container Mapping Table used by Optimus to associate system call records with specific container identities.

Key Results and Performance

The effectiveness of Optimus was evaluated using 71 popular container images from Docker Hub, including MySQL, Nginx, and Redis.

  • Attack Surface Reduction: Optimus achieved an average syscall reduction rate of 69.4%. This performance significantly outperforms static analysis tools like Confine and approaches the efficacy of aggressive dynamic analysis while maintaining higher application stability.
  • Operational Efficiency: The eBPF-based monitoring introduces a negligible overhead of just 1.41%, a stark contrast to the 22.39% penalty associated with strace.
  • Zero-Downtime Updates: During security profile transitions, the "covert renewal" process resulted in a mere 1.07% increase in response time. This is a substantial improvement over standard Kubernetes rolling updates, which can cause latency spikes exceeding 700% during the transition.

Conclusion

Optimus demonstrates that sophisticated kernel-level security does not have to come at the cost of performance or availability. By combining modern observability tools like eBPF with data mining techniques, Optimus provides a scalable, automated path toward securing the containerized cloud.

Summary updated

BibTeX
@article{yang2024optimus,
  author = {Seungyong Yang and Brent ByungHoon Kang and Jaehyun Nam},
  title = {{Optimus: association-based dynamic system call filtering for container attack surface reduction}},
  journal = {J. Cloud Comput.},
  year = {2024},
  doi = {10.1186/s13677-024-00639-3},
}
Figure