/
DirectorySecurity Advisories
Sign In
Directory
clamav logo

clamav

Last changed

Create your Free Account

Be the first to hear about exciting product updates, critical vulnerability alerts, compare alternative images, and more.

Sign Up
Tags
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for clamav

ClamAV® is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/clamav:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

This image is comparable to the ClamAV image on Docker Hub. Switching to Chainguard's image should not require any changes to your existing setup. This image contains only the minimum set of tools and dependencies needed to function; for example, it does not include a package manager.

Getting Started

While the official documentation does not provide a clear way to deploy the image on Kubernetes, you can use the following commands to deploy ClamAV on your Kubernetes cluster with Helm.

Start by creating a values.yaml file:

cat <<EOF > values.yaml
image:
  repository: cgr.dev/ORGANIZATION/clamav
  tag: latest
EOF

Now, you can install the Helm Chart:

helm install clamav oci://registry.gitlab.com/xrow-public/helm-clamav/charts/clamav -f values.yaml

When the Pod(s) are running, you can use the following command to scan a file:

# Port-forward to the ClamAV service
kubectl port-forward service/clamav 3310 &
# Download a test file from EICAR
wget https://www.eicar.org/download/eicar-com-2/\?wpdmdl\=8842 -O eicar-com.txt
# Extract the content of the file to a variable
EICAR_CONTENT=$(cat eicar-com.txt)
# Get the Pod name to execute the scan
POD_NAME=$(kubectl get pods -l app.kubernetes.io/instance=clamav -o jsonpath='{.items[0].metadata.name}')
# Execute the test inside the ClamAV pod:
kubectl exec -it ${POD_NAME} -- sh -c "echo '${EICAR_CONTENT}' > /tmp/eicar.txt && clamscan /tmp/eicar.txt"
# Expected output will be similar to: "EICAR_HDB-1 FOUND"

Update the Database Definitions

ClamAV automatically updates its database definitions on Pod startup. But if you want to update the definitions manually, you can exec into the Pod and run the freshclam command, and expect the Database test passed. log messages. Jump to linked documentation for more information.

Documentation and Resources

You can learn more about ClamAV via the official documentation. Additionally, you can find the Helm Chart on Artifact Hub. To update the database definitions, you can refer to the Updating Signature Databases documentation.

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • BSD-3-Clause

  • CC-PDDC

  • GCC-exception-3.1

  • GPL-2.0-only

  • GPL-2.0-or-later

  • GPL-3.0-or-later

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Category
application

Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Products

Chainguard ContainersChainguard LibrariesChainguard VMs