All posts

Scanning Containers and Code with Trivy: A Practical Guide for Small Businesses

Containers, dependencies and configuration files are common sources of security flaws for small organisations. A vulnerable library, a mis‑configured Kubernetes manifest or an exposed secret can lead to data loss,...

Containers, dependencies and configuration files are common sources of security flaws for small organisations. A vulnerable library, a mis‑configured Kubernetes manifest or an exposed secret can lead to data loss, downtime or regulatory breach. Detecting these issues early saves money and protects reputation.

What it is Trivy is an open source security scanner maintained by Aqua Security. The project lives at https://github.com/aquasecurity/trivy and is released under the Apache‑2.0 licence. As of 24 Oct 2026 it has 38,676 stars on GitHub. The repository was last updated on 2026‑10‑23 and the latest release is v0.76.1 published on 2026‑10‑21.

What it finds Trivy can examine several target types: container images, local filesystems, remote Git repositories, virtual machine images and Kubernetes clusters. For each target it runs a set of scanners that look for: - Operating system packages and software dependencies, providing a software bill of materials. - Known vulnerabilities identified by CVE identifiers. - Infrastructure as code misconfigurations. - Sensitive information such as hard‑coded passwords or API keys. - Software licences that may conflict with corporate policy. The scanners work together so a single command can reveal a wide range of risk factors.

How a small business would use it A web development agency that builds Dockerised applications can run Trivy on each image before pushing it to a registry. This catches outdated libraries and known CVEs that could be exploited in client sites. A small health‑care clinic that hosts a patient portal can scan the Git repository of the portal code to ensure no secret keys have been accidentally committed. A startup that uses Terraform for its cloud infrastructure can point Trivy at the Terraform directory to discover misconfigurations that could expose public endpoints. In each case the scan can be added to a CI pipeline so that failures stop a build from progressing.

Trying it The quickest way to start is to install Trivy with a package manager or Docker. Example commands from the README are: ``bash trivy image python:3.4-alpine ` The command analyses the specified container image and prints any vulnerabilities or secrets it finds. `bash trivy fs --scanners vuln,secret,misconfig myproject/ ` Here Trivy scans a local directory called myproject using the vulnerability, secret and misconfiguration scanners. `bash trivy k8s --report summary cluster `` This command asks Trivy to examine the Kubernetes cluster named cluster and produce a summary report. For additional installation steps or advanced options, follow the full README on GitHub.

Limits Trivy reports only what is known from public vulnerability databases and its built‑in rule sets. New zero‑day flaws that have not been catalogued will not appear in the output. The scanner can generate false positives, especially for secrets that match pattern rules but are not actually sensitive. Misconfiguration checks are limited to the IaC tools that are covered in the project documentation; custom scripts or proprietary configuration formats are ignored. Finally, interpreting the results and deciding which remediation steps to take still requires human judgement.

The skull take Trivy gives small teams a fast, low‑cost way to surface obvious security gaps in containers, code and infrastructure. Use it early in the development cycle and treat the findings as a checklist, not a replacement for a deeper security review.

Repository: https://github.com/aquasecurity/trivy · facts checked on GitHub 24 Oct 2026.

First published on the skull blog: https://www.adris.tech/skull/blog/scanning-containers-and-code-with-trivy-a-practical-guide-for-small-bu

Share this LinkedIn X WhatsApp

Built on your own machine, not someone else’s cloud.

adris is eight AI products in one desktop app. Free to install, and your data never leaves your computer.