DeSFAM: An Adaptive eBPF and AI-Driven Framework for Securing Cloud Containers in Real Time
Sehar Zehra, Hassan Jamil Syed, Fahad Samad, Ummay Faseeha · IEEE Access · 2025
Containerized applications offer lightweight and scalable deployment but remain exposed to security risks due to a shared kernel. We present DeSFAM (Dynamic eBPF-driven Syscall Filtering and Anomaly Mitigation), a real-time security framework that enforces least-privilege syscall usage and detects behavioral anomalies. DeSFAM integrates: (i) hybrid syscall profiling through static analysis and dynamic eBPF tracing; (ii) SyscallAD (System call Anomaly Detection), a low-latency anomaly detector combining Variational Autoencoder (VAE) and Isolation Forest (iForest); (iii) contextual risk scoring based on MITRE ATT&CK mappings and CVE correlations; and (iv) adaptive syscall enforcement using eBPF maps and LSM hooks. Evaluations using the DongTing dataset and real-world CVE attack scenarios show DeSFAM achieves 94% precision, 90% recall, sub-millisecond enforcement latency, and less than 1% performance overhead. DeSFAM effectively blocks privilege escalation, container escape attempts, and syscall injection attacks in modern container environments.