KubeGuard: LLM-Assisted Kubernetes Hardening via Configuration Files and Runtime Logs Analysis
Not on the map. Why?
Abstract (arXiv)
The widespread adoption of Kubernetes (K8s) for orchestrating cloud-native applications has introduced significant security challenges, such as misconfigured resources and overly permissive configurations. Failing to address these issues can result in unauthorized access, privilege escalation, and lateral movement within clusters. Most existing K8s security solutions focus on detecting misconfigurations, typically through static analysis or anomaly detection. In contrast, this paper presents KubeGuard, a novel runtime log-driven recommender framework aimed at mitigating risks by addressing overly permissive configurations. KubeGuard is designed to harden K8s environments through two complementary tasks: Resource Creation and Resource Refinement. It leverages large language models (LLMs) to analyze manifests and runtime logs reflecting actual system behavior, using modular prompt-chaining workflows. This approach enables KubeGuard to create least-privilege configurations for new resources and refine existing manifests to reduce the attack surface. KubeGuard's output manifests are presented as recommendations that users (e.g., developers and operators) can review and adopt to enhance cluster security. Our evaluation demonstrates that KubeGuard effectively generates and refines K8s manifests for Roles, NetworkPolicies, and Deployments, leveraging both proprietary and open-source LLMs. The high precision, recall, and F1-scores affirm KubeGuard's practicality as a framework that translates runtime observability into actionable, least-privilege configuration guidance.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 21 of its 92 references that are in the map. First posted on arXiv 4 Sep 2025.
Builds on
21 of 92 references.
References · 21
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 411
- 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 268
- 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 103
- 2023Privacy Issues in Large Language Models: A Surveycited by 60
- 2024GenKubeSec: LLM-Based Kubernetes Misconfiguration Detection, Localization, Reasoning, and Remediationcited by 11
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurationscited by 9
9 more
- 2021KGSecConfig: A Knowledge Graph Based Approach for Secured Container Orchestrator Configurationcited by 5
- 2022Learning State Machines to Monitor and Detect Anomalies on a Kubernetes Clustercited by 4
- 2025LADs: Leveraging LLMs for AI-Driven DevOpscited by 4
- 2020XI Commandments of Kubernetes Security: A Systematization of Knowledge Related to Kubernetes Security Practicescited by 3
- 2024Centralized Defense: Logging and Mitigation of Kubernetes Misconfigurations with Open Source Toolscited by 3
- 2025KubeFence: Security Hardening of the Kubernetes Attack Surfacecited by 2
- 2020Traffic Generation using Containerization for Machine Learningcited by 1
- 2023Automating Microservices Test Failure Analysis using Kubernetes Cluster Logscited by 1
- 2024Migrating Existing Container Workload to Kubernetes -- LLM Based Approach and Evaluationcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.