Vulnerability Static Analysis for Containers
open sourceApache-2.0self-hostablefree
Clair is an open source service that statically analyses container images (OCI and Docker) for known vulnerabilities, and the scanner behind Red Hat's Quay. Clients send it a manifest over its HTTP API: the indexer fetches the layers and records what's installed, the matcher correlates that with vulnerability data it keeps current, and the notifier tells subscribers by webhook, AMQP or STOMP when a newly published vulnerability affects an image already indexed. It covers Ubuntu, Debian, RHEL, SUSE, Oracle Linux, Alpine, Amazon Linux, VMware Photon and Python packages, runs as one process or as separate indexer, matcher and notifier services on Kubernetes or OpenShift, and stores its data in PostgreSQL. It's Apache-2.0, built on the ClairCore library; compare Trivy and Grype.
Ways to install
Package managers
Problems it solves
- add vulnerability scanning to our self-hosted container registry as a service the registry calls
- get notified when a new CVE affects an image we pushed months ago, without rescanning everything
- an API that indexes container image layers once and re-matches them as new vulnerability data arrives
- scan images for vulnerable Ubuntu, Debian, RHEL and Alpine packages from our own infrastructure
- send vulnerability notifications for registry images to a webhook or a message queue
- run container vulnerability scanning as separate scalable services on Kubernetes or OpenShift
Features
- indexes image manifests into IndexReports and matches them against vulnerability data
- vulnerability data kept current as new security data is ingested
- notifier for newly discovered vulnerabilities in indexed manifests, delivered by webhook, AMQP or STOMP
- support matrix: Ubuntu, Debian, RHEL, SUSE, Oracle, Alpine, AWS Linux, VMware Photon and Python
- combined mode in one process, or distributed mode with indexer, matcher and notifier in their own pods
- HTTP API and the clairctl command-line client
- PostgreSQL storage, one database or one per process
- container images on quay.io (quay.io/projectquay/clair)
Limitations
- Static analysis only: it doesn't inspect running containers2
- Covers only the distributions and ecosystems in its support matrix: no Go, Java, npm or Ruby packages2
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Sends webhooks | plan not known |
Alternatives
The same job
These do what Clair does.
- Grype A vulnerability scanner for container images and filesystems.
- Trivy Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
- Dockle Container image linter for security and Docker best practices
- Docker Scout Finds vulnerabilities, outdated packages and compliance problems in container images
- Aqua Platform Secure What Runs in the Cloud
