Does Runtime Topology Context Improve LLM-Generated Kubernetes Security Patches?
This work addresses the challenge that large language models (LLMs) often generate Kubernetes security patches without awareness of runtime topological context, risking service dependency violations and functional disruptions. To overcome this limitation, the authors propose KuTIE, a novel framework that systematically integrates runtime topology information—including Istio call graphs, Trivy security findings, and service account bindings—into LLM prompt engineering to enable context-aware automated remediation. Experimental evaluation on the VulnCare platform demonstrates that incorporating such topological context substantially improves the correctness of dependency-sensitive patches, increasing accuracy from 11.1% to 78.0%. These results validate the effectiveness and innovation of the proposed approach in enhancing the precision of LLM-generated security configurations for Kubernetes environments.