Cybersecurity and Secrets Management in Kubernetes: A Deep Learning-Assisted Framework for Modern DevSecOps
Kubernetes has become the industry standard for container orchestration, allowing scalable deployment, automation, and management of microservices. However, its native secrets management is not designed for high-security workloads it stores secrets as base64-encoded strings in etc., without encryption by default, making it vulnerable to unauthorized access. This paper introduces an intelligent, AI-driven framework to secure the entire lifecycle of Kubernetes secrets. The proposed system integrates a Secrets Store Interface that supports Kubernetes-native secrets, HashiCorp Vault, and Bitnami Sealed Secrets, alongside a custom monitoring agent deployed as a DaemonSet across clusters. This agent captures access patterns including time, frequency, service account, and pod association. These features are normalized and processed through a Long Short-Term Memory (LSTM) neural network that detects behavioral anomalies indicating potential misuse of secrets. To enforce compliance and organizational policies, our framework utilizes Open Policy Agent (OPA) with Gatekeeper to dynamically validate access against pre-defined rego policies. These policies include constraints based on pod labels, namespaces, and service identities, enabling fine-grained control and real-time violation alerts. Through extensive experimentation across simulated DevSecOps environments, our system demonstrated a 94% accuracy in anomaly detection and reduced unauthorized secrets access incidents by 83%. This approach enhances both proactive and reactive security measures in CI/CD pipelines and multi-tenant clusters. By combining AI-based anomaly detection with policy-as-code enforcement, this study lays a foundation for scalable and adaptive secrets governance in Kubernetes, addressing a critical gap in container security.
Paper
Full text
Cybersecurity and Secrets Management in Kubernetes: A Deep Learning-Assisted Framework for Modern DevSecOps
Semantic Scholar · 2025
Abstract
Kubernetes has become the industry standard for container orchestration, allowing scalable deployment, automation, and management of microservices. However, its native secrets management is not designed for high-security workloads it stores secrets as base64-encoded strings in etc., without encryption by default, making it vulnerable to unauthorized access. This paper introduces an intelligent, AI-driven framework to secure the entire lifecycle of Kubernetes secrets. The proposed system integrates a Secrets Store Interface that supports Kubernetes-native secrets, HashiCorp Vault, and Bitnami Sealed Secrets, alongside a custom monitoring agent deployed as a DaemonSet across clusters. This agent captures access patterns including time, frequency, service account, and pod association. These features are normalized and processed through a Long Short-Term Memory (LSTM) neural network that detects behavioral anomalies indicating potential misuse of secrets. To enforce compliance and organizational policies, our framework utilizes Open Policy Agent (OPA) with Gatekeeper to dynamically validate access against pre-defined rego policies. These policies include constraints based on pod labels, namespaces, and service identities, enabling fine-grained control and real-time violation alerts. Through extensive experimentation across simulated DevSecOps environments, our system demonstrated a 94% accuracy in anomaly detection and reduced unauthorized secrets access incidents by 83%. This approach enhances both proactive and reactive security measures in CI/CD pipelines and multi-tenant clusters. By combining AI-based anomaly detection with policy-as-code enforcement, this study lays a foundation for scalable and adaptive secrets governance in Kubernetes, addressing a critical gap in container security.