Kubernetes clusters fail audits for the same reasons year after year: over-privileged workloads, leaky networks, secrets in Git, and pipelines that ship faster than security can review.
π This Top 10 Kubernetes OWASP-style checklist maps the highest-impact risks to concrete controls you can verify today—plus a layered architecture view for platform and security teams.
Use it as a sprint audit, a pre-production gate, or input to your cluster standards.
π§ Kubernetes Security Model (Diagram)
+----------------------+
| CI/CD Pipeline |
| (Scan + Validate) |
+----------+-----------+
|
v
+---------------------------+
| Kubernetes Cluster |
|---------------------------|
| API Server (Secure) |
| RBAC (Least Privilege) |
| Network Policies |
| Secrets Management |
+-----------+---------------+
|
v
+------------------------+
| Workloads (Pods) |
| - Non-root containers |
| - Secure images |
+------------------------+
|
v
+------------------------+
| Cloud IAM / Infra |
| - Least privilege |
+------------------------+
π Security must be enforced at every layer—pipeline, control plane, workload, and cloud IAM—not only inside the cluster.
✅ Top 10 Kubernetes OWASP Security Checklist (2026)
Work through each area. A single “No” is a gap worth prioritizing by blast radius (RBAC, secrets, and egress usually come first).
1. Insecure workload configuration
- ☐ Containers do not run as root
- ☐ Privileged mode is disabled
- ☐
securityContextenforced on Pods and containers - ☐ Read-only root filesystem where feasible
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
2. Broken access control (RBAC)
- ☐ No routine use of
cluster-admin - ☐ Roles follow least privilege (namespace-scoped where possible)
- ☐ Service accounts are dedicated per workload
- ☐ Access reviewed on a schedule
3. Insecure network exposure
- ☐ Default-deny
NetworkPolicybaseline - ☐ Only required Services exposed (avoid wide
LoadBalancersprawl) - ☐ Ingress and API endpoints restricted by source
policyTypes:
- Ingress
- Egress
4. Secrets and sensitive data leakage
- ☐ Secrets not stored in Git or container images
- ☐ Encryption at rest enabled for etcd secrets
- ☐ External secret manager or KMS integration in use
5. Vulnerable and untrusted container images
- ☐ Images scanned before deploy (CVE policy enforced)
- ☐ Only trusted registries and signed images allowed
- ☐ Base images pinned and updated on a cadence
trivy image my-app:latest
6. Insecure cluster configuration
- ☐ Kubernetes API server not unnecessarily public
- ☐ etcd access restricted and encrypted
- ☐ Anonymous auth and unsafe admission plugins disabled
7. Insufficient logging and monitoring
- ☐ Audit logs enabled and retained
- ☐ Metrics collected (for example Prometheus)
- ☐ Alerts on auth failures, policy denials, and crash loops
8. CI/CD pipeline security gaps
- ☐ Pipeline includes SAST, image scan, and manifest checks
- ☐ Signed images or attestations enforced at deploy
- ☐ Deploy credentials are short-lived and scoped
9. Supply chain and dependency risks
- ☐ Dependencies and Helm charts validated
- ☐ SBOM generated and stored per release
- ☐ Third-party operators reviewed before install
10. Cloud IAM and identity misalignment
- ☐ Cloud IAM roles use least privilege
- ☐ IRSA (or cloud equivalent) used instead of long-lived node keys
- ☐ Federation and SSO aligned with Kubernetes RBAC
⚠️ Quick risk assessment
If you answered “No” to any item above:
- π Treat it as a tracked finding with owner and target date
- π Prioritize RBAC, secrets, network egress, and image trust first
- π Re-run the checklist after each major cluster or platform change
π₯ CloudChef Pro Tip
The best Kubernetes security posture is boring and repeatable: the same controls on every cluster, enforced in CI and at admission—not a quarterly spreadsheet exercise.
π Continue Your CloudChef Journey
π References
- OWASP Kubernetes Top Ten
- Kubernetes — Security concepts
- Kubernetes — Pod Security Standards
- CNCF — Open Policy Agent (policy as code)
π Final Thoughts
Kubernetes security is not about buying another dashboard—it is about consistent controls applied from commit to cloud IAM.
π Run this Top 10 checklist on staging before production, then bake the winners into your platform templates so every team inherits the same guardrails.
π₯ CloudChef Tip: Document one “golden cluster” profile and diff new environments against it—audits get faster every quarter.
No comments:
Post a Comment