Cloud & Platform Engineering · Cloud Security
Zero critical CVEs in prod · supply chain hardened · runtime threats detected in <2 min
A SaaS company running Kubernetes in production had 14 critical CVEs in production images, 3 secrets committed to Git, and no runtime monitoring. Adimen built four security layers — supply chain, secrets management, policy-as-code, and runtime detection — and reduced critical CVEs to zero.
Challenge
Three attack surfaces with zero controls in place: a supply chain that shipped vulnerable base images into production, a CI/CD pipeline that had no policy enforcement gate, and a runtime environment with no anomaly detection or observability beyond basic uptime metrics.
Approach
Four security layers built in sequence — supply chain hardening with image scanning and signed artifacts, secrets management via HashiCorp Vault with Git leak detection, policy-as-code enforcement gates in CI/CD using OPA/Gatekeeper, and runtime security with Falco and Elastic SIEM for threat detection and response.
Outcome
Zero critical CVEs in production. Supply chain hardened end-to-end. Secrets rotated and vault-managed. Runtime threats now detected in under 2 minutes. Two enterprise contracts that had been stalled on security review were unblocked and signed within 6 weeks of completion.
The background
What was built
Trivy integrated into the CI pipeline as a blocking gate — builds fail on critical CVEs. Base images pinned to specific digest hashes and verified on pull. Dependabot configured for automated dependency update PRs. Docker images signed with cosign and signature verification enforced at admission. The result: no unsigned or unscanned image can enter the registry, let alone production.
Gitleaks added as a pre-commit hook and a CI pipeline step to prevent new secrets from entering the repository. All 3 discovered secrets rotated immediately. HashiCorp Vault deployed as the secrets backend — applications retrieve credentials via dynamic secrets with TTLs rather than static environment variables. The Git history was cleaned. No application now holds a long-lived credential in its environment.
OPA/Gatekeeper deployed as Kubernetes admission controller with policies covering image source restrictions, required security contexts (non-root, read-only root filesystem, dropped capabilities), resource limits, and network policy requirements. ArgoCD configured to enforce policy compliance before any deployment reaches the cluster. Every deployment is evaluated against policy — non-compliant manifests are rejected at the gate.
Falco deployed as a DaemonSet with custom rules tuned to the application's normal behaviour — distinguishing legitimate process patterns from anomalous ones. Alerts forwarded to Elastic SIEM for correlation, enrichment, and escalation. A runbook was built for each alert class covering investigation steps, containment actions, and escalation paths. Mean time from anomaly event to actionable alert: under 2 minutes.
Architecture
Results