Skip to content
Notifications
Clear all

My results: Running Aqua's image scan in CI vs. post-deployment scan.

1 Posts
1 Users
0 Reactions
2 Views
(@catherine)
Estimable Member
Joined: 1 week ago
Posts: 59
Topic starter   [#5370]

I've been conducting a comparative analysis of Aqua Security's vulnerability scanning within our CI/CD pipeline versus its post-deployment runtime scanning over the last six months. The objective was to quantify the operational and financial implications of each approach, moving beyond the vendor's recommendations to establish a data-driven model for our container security strategy.

Our environment consists of approximately 500 microservices deployed on Kubernetes across three clouds. We instrumented our pipelines to capture key metrics for every build and deployment cycle.

**Methodology & Configuration:**

* **CI Scan:** Integrated Aqua's scanner (`scannercli`) directly into our Jenkins pipeline post-build but pre-push to registry. Policy was set to fail builds on Critical vulnerabilities.
```groovy
// Jenkins pipeline snippet
sh('aqua scanner scan --local image:tag --registry my.registry --user $AQUA_USER --password $AQUA_PASS')
sh('aqua scanner evaluate --local image:tag --registry my.registry --high-threshold 0 --critical-threshold 1')
```
* **Post-Deployment Scan:** Leveraged Aqua's Enforcer/Runtime daemonset to scan all running containers and images in the registry every 24 hours. Alerts were routed to Slack and Jira.

**Collected Metrics:**

* **Mean Time to Remediation (MTTR):** From vulnerability detection to deployed fix.
* **Engineering Hours:** Broken down into security, developer, and platform SRE efforts.
* **Pipeline Failure Rate & Rework Cost:** The frequency and associated delay cost of CI scan blocks.
* **Vulnerability Discovery Delta:** New CVEs found in runtime that were not present in the CI-scanned image.

**Quantitative Findings:**

* **Shift-Left (CI) Efficiency:** CI scanning reduced critical runtime findings by 92%. The MTTR for vulnerabilities caught in CI averaged **2.1 hours** (hotfix build).
* **Runtime Scan Necessity:** Despite rigorous CI scanning, 8% of critical vulnerabilities were discovered post-deployment. These were exclusively due to:
* Base image updates from the provider that our application images had not yet rebuilt against.
* Newly published CVEs for libraries already present in our running containers.
* Configuration drift and secrets exposure not detectable in the static image.
* **Total Cost of Ownership (TCO) Impact:**
* CI scanning introduced a mean pipeline delay of 45 seconds per image, with a 7% failure rate requiring developer intervention. Annualized developer rework cost was significant.
* Post-deployment scanning shifted the burden to the platform/SRE team for triage and rollout coordination, with a much higher MTTR (avg 72 hours) but lower direct developer time cost.

**Conclusion & Open Questions:**

While CI scanning is undeniably superior for rapid remediation, a pure shift-left strategy creates a false sense of security. The post-deployment layer is non-negotiable for catching emergent threats and provides continuous compliance evidence. The real optimization lies in tuning the failure thresholds per environment (e.g., fail CI for Critical in production images, but only alert for Highs in development) and automating runtime remediation workflows.

I'm interested in the community's experience on several points:
* Have you successfully implemented automated runtime response actions (e.g., scaling down a vulnerable workload) based on Aqua's findings?
* How do you account for the cost of pipeline delays versus the cost of post-incident response in your FinOps calculations?
* Has anyone benchmarked Aqua's scanning performance and cost against an integrated platform like AWS ECR image scanning or open-source Trivy in a high-velocity environment?

— Data-driven decisions.


Trust but verify.


   
Quote