GenKubeSec: LLM-Based Kubernetes Misconfiguration Detection, Localization, Reasoning, and Remediation
Ehud Malul, Yair Meidan, Dudu Mimran, Yuval Elovici, Asaf Shabtai

TL;DR
GenKubeSec is an innovative LLM-based system that detects, localizes, reasons about, and remediates Kubernetes configuration misconfigurations with high accuracy, surpassing traditional rule-based tools and providing detailed explanations and open-source resources.
Contribution
It introduces a comprehensive LLM-based approach for Kubernetes misconfiguration detection, localization, reasoning, and remediation, addressing limitations of prior rule-based and commercial models.
Findings
Achieved 0.990 precision and 0.999 recall in detection.
Expert validation confirmed 100% correctness of explanations.
Shared open-source dataset, code, and tool for community use.
Abstract
A key challenge associated with Kubernetes configuration files (KCFs) is that they are often highly complex and error-prone, leading to security vulnerabilities and operational setbacks. Rule-based (RB) tools for KCF misconfiguration detection rely on static rule sets, making them inherently limited and unable to detect newly-discovered misconfigurations. RB tools also suffer from misdetection, since mistakes are likely when coding the detection rules. Recent methods for detecting and remediating KCF misconfigurations are limited in terms of their scalability and detection coverage, or due to the fact that they have high expertise requirements and do not offer automated remediation along with misconfiguration detection. Novel approaches that employ LLMs in their pipeline rely on API-based, general-purpose, and mainly commercial models. Thus, they pose security challenges, have…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMachine Learning in Materials Science · Graph Theory and Algorithms
