KubeCap: A Framework for Capability Minimization in Kubernetes via Static Analysis and LLM-Assisted Rule Inference

📅 2026-08-27
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
KubeCap通过静态分析和LLM辅助规则推断,解决Kubernetes中因默认设置或粗粒度安全上下文导致的权限配置问题,减少容器化工作负载的攻击面。
📝 Abstract
As the most widely used container orchestration platform, Kubernetes provides flexible privilege configuration by allowing developers to manage Linux capabilities via manifest files. However, developers rely on default settings or coarse-grained security contexts in practice, violating the principle of least privilege and enlarging the attack surface of containerized workloads. Existing studies either detect vulnerable patterns in Kubernetes manifests or infer required capabilities for standalone Linux programs, but they do not directly address capability minimization in Kubernetes. To bridge this gap, we first conduct an empirical study on three open-source datasets, revealing that 74.67% of projects lack capability configurations. Motivated by our observations, we propose KubeCap, a framework for Kubernetes capability minimization. KubeCap translates deployment specifications into deterministic manifests, locates container entrypoints, performs reachability-guided system call analysis, and leverages LLM-assisted rule specification to derive syscall--parameter--capability relations from Linux kernel code. Based on these results, KubeCap infers the minimal capability set required by each workload and automatically generates repaired manifests. Evaluation on 10 representative Go-based Kubernetes projects shows an average capability reduction rate of 54.97%, outperforming rapid type analysis and class hierarchy analysis baselines while maintaining practical analysis cost. These results demonstrate KubeCap's effectiveness in enforcing least privilege in Kubernetes.
Problem

Research questions and friction points this paper is trying to address.

Kubernetes
capability minimization
least privilege
security context
containerized workloads
Innovation

Methods, ideas, or system contributions that make the work stand out.

Capability Minimization
Static Analysis
LLM-Assisted Rule Inference
Kubernetes Security
🔎 Similar Papers
No similar papers found.
Y
Yuhao Liu
Key Laboratory of Data and Intelligent System Security, Ministry of Education, China (DISSec), Tianjin Key Laboratory of Network and Data Security Technology (NDST), College of Cryptology and Cyber Science, Nankai University, Tianjin 300350, China
Y
Yingnan Zhou
Key Laboratory of Data and Intelligent System Security, Ministry of Education, China (DISSec), Tianjin Key Laboratory of Network and Data Security Technology (NDST), College of Cryptology and Cyber Science, Nankai University, Tianjin 300350, China
Weijie Liu
Weijie Liu
Nankai University
System SecurityVirtualizationBinary AnalysisImage Fusion
Yan Jia
Yan Jia
Nankai University
IoT SecurityVulnerability DiscoverySystem SecurityNovel Attacks
Z
Zheli Liu
Key Laboratory of Data and Intelligent System Security, Ministry of Education, China (DISSec), Tianjin Key Laboratory of Network and Data Security Technology (NDST), College of Cryptology and Cyber Science, Nankai University, Tianjin 300350, China