| name | implementing-aqua-security-for-container-scanning |
| description | Deploy Aqua Security's Trivy scanner to detect vulnerabilities, misconfigurations, secrets, and license issues in container images across CI/CD pipelines and registries. |
| domain | cybersecurity |
| subdomain | devsecops |
| tags | ["aqua-security","trivy","container-scanning","vulnerability-scanning","sbom","image-security","supply-chain"] |
| version | 1.0 |
| author | mahipal |
| license | Apache-2.0 |
| nist_csf | ["PR.PS-01","GV.SC-07","ID.IM-04","PR.PS-04"] |
| mitre_attack | ["T1195","T1554","T1059.004","T1610","T1611"] |
Implementing Aqua Security for Container Scanning
Overview
Aqua Security provides Trivy, the world's most popular open-source universal security scanner, designed to find vulnerabilities, misconfigurations, secrets, SBOM data, and license issues in containers, Kubernetes, code repositories, and cloud environments. Trivy covers OS packages (Alpine, Debian, Ubuntu, RHEL, etc.) and language-specific dependencies (npm, pip, Maven, Go modules, Cargo, etc.) with vulnerability databases sourced from NVD, vendor advisories, and GitHub Security Advisories. The enterprise Aqua Platform extends Trivy with centralized policy management, runtime protection, and compliance reporting.
When to Use
- When deploying or configuring implementing aqua security for container scanning capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Docker installed for local image scanning
- CI/CD platform (GitHub Actions, GitLab CI, Jenkins, etc.)
- Container registry access (Docker Hub, ECR, GCR, ACR, Harbor)
- Trivy CLI (
trivy) or Trivy Operator for Kubernetes
- Aqua Platform license for enterprise features (optional)
Core Scanning Capabilities
Image Vulnerability Scanning
Trivy scans container images layer by layer, identifying CVEs in OS packages and application dependencies. It supports scanning local images, remote registry images, and tar archives.
trivy image python:3.11-slim
trivy image --severity HIGH,CRITICAL nginx:latest
trivy image --exit-code 1 --severity CRITICAL myapp:latest
trivy image --format cyclonedx --output sbom.json myapp:latest
Filesystem and Repository Scanning
trivy fs --scanners vuln,secret,misconfig .
trivy fs --scanners vuln package-lock.json
trivy repo https://github.com/org/project
Kubernetes Scanning with Trivy Operator
The Trivy Operator runs inside a Kubernetes cluster and continuously scans workloads: