Comprehensive 8-part series covering container security from image to runtime, from build to incident response β including AI-era threats.
Contents β’ Quick Start β’ Stack β’ Stats β’ Contributing
| # | Part | Topics | Read Time |
|---|---|---|---|
| 1 | Introduction & Overview | Attack surface, lifecycle framework, threat landscape, hands-on labs | 15 min |
| 2 | Image Security & Supply Chain | Image scanning, SBOM, Sigstore/Cosign, SLSA, Dockerfile hardening | 25 min |
| 3 | Runtime Security & Monitoring | eBPF, Falco, Tetragon, Seccomp, AppArmor, AI agent detection | 30 min |
| 4 | Kubernetes Security Hardening | RBAC, PSS, Network Policies, Secrets, Admission Control, Terraform | 30 min |
| 5 | Network Security & Zero Trust | mTLS, Service Mesh (Istio/Cilium), SPIFFE, micro-segmentation | 25 min |
| 6 | Security Tools & Platforms | Trivy, Falco, Wiz, Sysdig, Aqua, Snyk β comparison & cost analysis | 20 min |
| 7 | Best Practices & Checklist | 75-item checklist, maturity model, roadmap, automation scripts | 20 min |
| 8 | K8s Security in the AI Era | AI agent attacks, LLM threats, sandboxing, causal chain detection | 25 min |
| 9 | Platform Engineering Reference Architecture | Terraform + ArgoCD + CI/CD + security stack (end-to-end) | 30 min |
| 10 | Multi-tenancy & Developer Experience | Tenant isolation, Day-2 ops, security SLOs, golden images | 25 min |
New to container security? Read in order (Part 1 β 8).
Need something specific?
| Question | Go To |
|---|---|
| "What tools should I use?" | Part 6 β Tools & Platforms |
| "Give me a checklist" | Part 7 β 75-item Checklist |
| "How to harden Kubernetes?" | Part 4 β K8s Hardening |
| "How to detect runtime attacks?" | Part 3 β Runtime Security |
| "How to secure CI/CD pipeline?" | Part 2 β Supply Chain |
| "What about AI/LLM workloads?" | Part 8 β AI Era |
| "I'm a platform engineer β where to start?" | Part 9 β Reference Architecture |
| "Multi-tenancy and Day-2 ops?" | Part 10 β Multi-tenancy & DX |
| "Give me deployable code" | examples/ β Terraform, Kyverno, Falco, scripts |
| "How to become a Platform Engineer?" | Career Guide |
Build: Trivy + Syft + Grype + Cosign + Hadolint
Deploy: Kyverno + Sigstore Policy Controller
Runtime: Falco + Tetragon + Seccomp
Network: Cilium (CNI + Service Mesh + Hubble)
Monitor: Prometheus + Grafana + OpenSearch
CNAPP: Wiz (agentless) | Sysdig (runtime) | Aqua (container-native)
DevSec: Snyk (developer-first) | Docker Scout
Comply: Prisma Cloud (broadest coverage)
| Metric | Value | Source |
|---|---|---|
| Organizations using containers in production | 56% | CNCF Survey 2025 |
| K8s users in production | 82% | CNCF Survey 2025 |
| Time to first attack on new K8s cluster | 18 min | Wiz Research |
| Container lifespan (70% of containers) | < 5 min | Sysdig |
| Malicious packages published (2025) | 454,000+ | Sonatype |
| K8s security incidents (organizations) | 93% | CNCF Survey |
| AI breaches involving agentic systems | 1 in 8 | HiddenLayer 2026 |
| Container lateral movement attacks (YoY) | +34% | Vectra AI |
container-security-series/
βββ README.md
βββ LICENSE
βββ CONTRIBUTING.md
βββ .gitignore
βββ docs/
β βββ part1-introduction-overview.md
β βββ part2-image-security-supply-chain.md
β βββ part3-runtime-security-monitoring.md
β βββ part4-kubernetes-security-hardening.md
β βββ part5-network-security-zero-trust.md
β βββ part6-security-tools-platforms.md
β βββ part7-best-practices-checklist.md
β βββ part8-kubernetes-security-ai-era.md
β βββ part9-platform-engineering-reference-architecture.md
β βββ part10-multitenancy-developer-experience.md
βββ examples/
βββ terraform/main.tf # Hardened EKS (VPC + KMS + ECR + GuardDuty)
βββ kyverno/policies.yaml # 10 production admission policies
βββ falco/values.yaml # Production Helm values
βββ falco/custom-rules.yaml # 10 custom detection rules
βββ scripts/
βββ bootstrap-security-stack.sh # Deploy full stack (run once)
βββ security-audit.sh # Quick posture assessment
βββ onboard-tenant.sh # Create secured namespace
- β How container security works across the entire lifecycle
- β Practical Dockerfile hardening (before/after examples)
- β SBOM generation, image signing with Sigstore/Cosign
- β Runtime threat detection with Falco & eBPF
- β Kubernetes hardening (RBAC, PSS, NetworkPolicies, Secrets)
- β Zero Trust networking with mTLS and service mesh
- β Tool comparison with cost analysis (OSS vs Commercial)
- β Ready-to-run automation scripts for cluster hardening
- β Terraform modules for hardened EKS clusters
- β NEW: AI agent threats and LLM workload security (2026)
Series nay cover phan Security cua Platform Engineering Roadmap (by mbianchidev).
| Roadmap Topic | Series Coverage | Part |
|---|---|---|
| Encryption, Certificates, TLS, PKI | mTLS, Sigstore, certificate management | 2, 5 |
| Authentication, Authorization, IAM | RBAC, Pod Identity, OIDC, Service Accounts | 4, 9 |
| OPA (Open Policy Agent) | OPA Gatekeeper + Kyverno so sanh chi tiet | 4, 6 |
| DevSecOps (SAST, DAST, Container Scanning) | Trivy, Grype, Hadolint, CI/CD pipeline | 2, 6, 9 |
| Threat Detection | Falco, Tetragon, GuardDuty, eBPF | 3, 8 |
| CNAPP, CDR | Wiz, Sysdig, Aqua, Prisma Cloud | 6 |
| Container (Docker, OCI, Registry) | Image hardening, scanning, signing, SBOM | 2 |
| Kubernetes (full topic list) | Hardening, PSS, NetworkPolicy, Secrets | 3, 4, 5 |
| Service Mesh (Istio, Linkerd) | mTLS, AuthorizationPolicy, Cilium mesh | 5 |
| CNI (Cilium) | Cilium vs Calico, L7 policies, Hubble | 5 |
| GitOps (ArgoCD, FluxCD) | ArgoCD security config, drift detection | 9 |
| IaC (Terraform) | Hardened EKS module, KMS, GuardDuty | 9 |
| Rollout (Canary, Blue-Green) | Argo Rollouts + Falco, auto-rollback | 9 |
| Observability (Prometheus, Grafana) | Security dashboards, SLOs, alerting | 9 |
| Platform Engineering (IDP, DevEx) | Self-service, golden images, onboarding | 10 |
| Multitenancy | Hard vs soft, namespace isolation, quotas | 10 |
| AI Workload Security | AI agent attacks, LLM threats, sandboxing | 8 |
Contributions are welcome! See CONTRIBUTING.md for guidelines.
- π Found an error? Open an issue
- π‘ Have a suggestion? Open a PR
- β Found this useful? Give it a star!
Van Hoang Kha
- GitHub: @vanhoangkha
This project is licensed under the MIT License.
Based on research from 40+ industry sources including:
Sysdig β’ Wiz β’ Docker β’ AquilaX β’ CNCF β’ Microsoft β’ Aqua Security β’ Falco Project β’ ARMO β’ Sigstore β’ AppSecSanta β’ TasrieIT β’ BeyondScale β’ HiddenLayer β’ Sonatype β’ GitGuardian β’ and more.
β Star this repo if you find it useful!
"Shift left, but never skip right." β Container Security Series