r/devops • u/No-Peanut-6988 • Sep 27 '26
Security We audited the default Helm charts and Docker configs of popular AI stack tools (Ray, Weaviate, MCP servers, LangChain). The out-of-the-box security defaults are surprisingly bad.
Over the past few weeks, we set up a fresh cluster to test what actually gets deployed when an engineer runs helm install with zero extra configuration on popular AI, vector DB, and MCP charts (Ray, vLLM, LiteLLM, Qdrant, Weaviate, KubeRay, etc.).
Everyone focuses on prompt injection and model jailbreaks, but the platform-level defaults on these workloads look like Kubernetes five to seven years ago:
Ray / KubeRay (Distributed Compute)
- The default deployment accepts unauthenticated job submissions over internal cluster networking.
- Worker containers run with passwordless sudo out of the box.
- Any compromised pod on the flat cluster network that can reach the Ray API gets arbitrary remote execution as root with zero barrier.
MCP (Model Context Protocol) Servers
- Several popular MCP server implementations implement local protection solely by checking
Host: localhost. - Any basic SSRF or internal proxy passing
-H "Host: localhost"bypasses this immediately. - In live testing, one Kubernetes MCP server mounted a ClusterRole with cluster-wide Secret read and pod exec permissions, exposed over unauthenticated HTTP.
- Several popular MCP server implementations implement local protection solely by checking
LiteLLM Migration Job Credential Leak
- The primary deployment pulls the database password from a Secret using
secretKeyRef, but the database migration Job embeds the raw database password in plain-text environment variables. - Anyone with basic cluster read permissions (devs, CI service accounts, dashboards) can run
kubectl get job -o yamland extract the database password directly from the env block, even without permission to read Secrets.
- The primary deployment pulls the database password from a Secret using
Vector DBs & RAG Stores
- Multiple upstream charts still ship with default values that enable anonymous read and write access.
- Raw embeddings and ingested document payloads are queryable by any internal service without an authentication header.
Scanner Blindspots
- 14 of 15 charts provide no default NetworkPolicy objects.
- All 15 charts leave Kubernetes' default
automountServiceAccountToken: trueenabled. - Standard static linters (Checkov, Trivy, Kubescape) missed the containers nested inside Custom Resource Definitions like Ray clusters.
The takeaway for platform and security teams: The AI supply chain conversation is hyper-focused on prompts, but your teams might be deploying unauthenticated root execution endpoints right now. If your cluster is not enforcing Kyverno or OPA gatekeeper admission rules, mandatory NetworkPolicies, and dropping default service account tokens on AI namespaces, the internal perimeter is wide open.
Curious what other teams are doing here. Have you written custom Kyverno/OPA policies or wrapper charts for AI workloads at your org, or are you putting everything behind a service mesh like Istio/Linkerd?
Full write-up, reproduction manifests, and probe logs: https://sorami.com.au/research/ai-kubernetes-helm-chart-security/ Raw probe logs and reproduction repository: https://github.com/Sorami-Consulting-AU/ai-kubernetes-helm-chart-security
5
u/totheendandbackagain Sep 27 '26
Great work, I bet the projects will be grateful for the issues you e raised in their repo. Maybe you could even make some branches to fix the bigger issues you've found.
3
u/Torutofu_Raeva Sep 27 '26
Default NetworkPolicies and dropping service-account tokens are good baselines, but I’d also gate rendered manifests in CI, including operator-generated CRD paths, since static scanners often miss resources materialized later.
1
u/dariusbiggs Sep 28 '26
No surprise there, far too many people assume AI means secure, it is the opposite.
1
u/raisputin Sep 28 '26
It’s because people are rushing this stuff to market to try and get ahead of the competition
1
u/vincentdesmet Sep 28 '26
not surprising, helm rewards quick and easy demo setups
not long term day-2 ops, that gets quickly dependent on the actual integration into the platform it needs to land
and a yaml DSL translated through a text engine (nindent all over), is a recipe for hard to maintain and easy to break setups
helm is great for demos, but most teams have a sunken cost fallacy issue before they invest into a proper solution
1
u/Fantastic-Mr-Default Sep 28 '26
Treat "helm install with defaults" as hostile input, not a starting point.
Put AI and MCP workloads in a dedicated namespace (or cluster) with no flat path to the rest of prod. Default deny NetworkPolicy, no automounted service account tokens, and no cluster-admin-shaped Roles coming from a chart you did not review. If Ray's API is open on the pod network, that network should not include anything you care about.
Admission (Kyverno / Gatekeeper / whatever you already run) is the policy. Charts are suggestions. Deny known-bad patterns: privileged or sudo workers, Host-header "auth," Secrets echoed into Job env, anonymous vector write. Wrapper charts that force your values are fine; expecting upstream defaults to grow up is how you keep finding the same report.
Static scanners missing CRD-nested pods is expected. Render with the operator schemas you actually use, or smoke-probe the Ray/MCP ports from a canary Job after apply. If the canary can submit a job with no creds, the install failed even if the chart was green.
Service mesh helps for mTLS between known services. It does not fix an unauthenticated control plane you exposed on purpose.
1
u/AdmirableChest3236 Oct 17 '26
Auditing default Helm charts and Docker configurations is a good reminder that working out of the box does not necessarily mean secure enough for production. The tricky part is keeping those checks consistent as dependencies and deployments change, rather than treating the audit as a one time task. Teams that build security into their infrastructure workflow from the start, alongside sound practices around cloud management and trusted tech, are in a much better position to catch risky defaults before they become incidents.