aws-eks-kubernetes-workload-env-command

Pod, Deployment, Job, and DaemonSet specifications can contain plaintext environment values and command-line credentials.

awscritical service: aws:eks emits ContainsCredential

Where it sits

locationKubernetes PodTemplateSpec.containers[].env[].value / command / args
location kindenvironment_variable
data kindscredential password api_key connection_string
emits edgeContainsCredential
serviceEKS (aws:eks)

Collection recipe

access modedata_plane
operationKubernetes GET workload resource
response pathspec.template.spec.containers[].{env[].value,command,args}
encodingjson
params{"ClusterName": "\u003ccluster\u003e", "Namespace": "\u003cnamespace\u003e", "Resource": "\u003ckind/name\u003e"}

Required permissions

eks:AccessKubernetesApi
eks:DescribeCluster

References

move · open · esc close