trivy

aquasecurityApache-2.0活跃维护

一款用 Go 写的安全扫描器,能查容器镜像、Kubernetes、代码仓库和云环境里的漏洞、配置错误和泄露密钥,还能生成 SBOM。

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

v0.76.2发布于 2026-11-05 12:50 UTC39,203star +116 / 7 天846fork同步于 2026-11-10 17:20 UTC

怎么上手

由 README 提炼,执行前请确认
brew install trivy
docker run aquasec/trivy
硬件要求按 README 说明

README 未说明

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

一站式安全扫描器,扫容器镜像、文件系统、K8s 和代码仓库,查漏洞、配置错误和密钥

一款用 Go 写的安全扫描器,能查容器镜像、Kubernetes、代码仓库和云环境里的漏洞、配置错误和泄露密钥,还能生成 SBOM。

核心能力

  • 扫描容器镜像、文件系统、远程 Git 仓库、虚拟机镜像和 Kubernetes
  • 检测 OS 包与软件依赖的已知 CVE 漏洞并生成 SBOM
  • 检查 IaC 配置错误与敏感信息泄露
  • 支持软件许可证扫描
  • 提供 GitHub Actions、K8s Operator、VS Code 插件等集成

容易踩的坑

canary 构建可能含严重 bug,不建议用于生产;完整安装方式与扫描覆盖范围需查阅官方 Installation 和 Scanning Coverage 文档

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.76.2
  1. v0.76.2最新正式版2026-11-05 · 2026-11-05 12:50 UTC

    🔐 Security update 🛡️

    Trivy v0.76.2 bundles several security fixes:

    • Official container images are rebuilt on Alpine 3.24.3, which fixes musl/musl-utils (CVE-2026-107891), and the build picks up fixed libcurl (24 CVEs, including HIGH CVE-2026-92392) and brotli-libs (CVE-2026-111497) from the v3.24 package repository.
    • golang.org/x/net is bumped to v0.62.0, fixing two vulnerabilities in golang.org/x/net/html: CVE-2026-78661 (quadratic complexity when coalescing text nodes) and CVE-2026-97045 (missing ancestor namespace check when rendering raw text).
    • github.com/go-jose/go-jose/v4 is bumped to v4.1.6, fixing GHSA-mgcc-cww5-fp2q.

    We recommend upgrading to v0.76.2 and redeploying container images to apply these updates.

    Changelog

    • 3f6334d223b52188324af3b9923b4249cd206652 release: v0.76.2 [release/v0.76] (#11552)
    • 1cabe83c11ffed6e984ab46be8886e1e01516ead fix(deps): bump golang.org/x/net from 0.61.0 to 0.62.0 [backport: release/v0.76] (#11554)
    • be08de47d0d76fca7e992c0f47fbcf7853f8a713 chore(deps): bump the common group across 1 directory with 14 updates [backport: release/v0.76] (#11555)
    • a8537d389cbd0fa215eddfddc27150fc7bc82a6c fix(deps): bump github.com/go-jose/go-jose/v4 from 4.1.5 to 4.1.6 [backport: release/v0.76] (#11553)
    • ae26b88c3b3c380808e767dfb63f9b8dcd5f64fd fix(deps): bump alpine to 3.24.3 in container images [backport: release/v0.76] (#11551)
  2. v0.76.12026-10-21 · 2026-10-21 11:18 UTC
    查看更新说明

    🔐 Security update: eMudhra CA incident 🛡️

    Trivy v0.76.1 includes mitigations for the eMudhra intermediate CA key compromise.

    • Official binaries are built with Go 1.27.3, which includes the certificate distrust mitigation tracked as CVE-2026-111943.
    • Official container images include an updated Alpine CA trust store that rejects the affected certificate chains.

    We recommend upgrading to v0.76.1 and redeploying container images to apply these updates. If you build Trivy from source, use Go 1.27.3 or later and keep your runtime CA trust store up to date.

    Changelog

    • e713f67f7d54decdcd9b3132c9751833dcced698 release: v0.76.1 [release/v0.76] (#11445)
    • 6647bd6ec5924087956285b773b8cae10508736e fix(deps): bump the aws group across 1 directory with 6 updates [backport: release/v0.76] (#11446)
    • e0964c97819b1d6a45b7e0426803745f173fc550 fix(deps): bump the docker group with 3 updates [backport: release/v0.76] (#11443)
    • 992c360c33d9f9627bb24c1fe3f20815110c88e5 fix(deps): bump the common group with 3 updates [backport: release/v0.76] (#11442)
  3. v0.76.02026-10-14 · 2026-10-14 11:45 UTC
    查看更新说明
  4. v0.75.02026-10-01 · 2026-10-01 13:34 UTC
    查看更新说明
  5. v0.74.02026-08-14 · 2026-08-14 11:29 UTC
    查看更新说明

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    GitHub Release Test Go Report Card License: Apache-2.0 GitHub Downloads Docker Pulls

    📖 Documentation

    Trivy (pronunciation) is a comprehensive and versatile security scanner. Trivy has scanners that look for security issues, and targets where it can find those issues.

    Targets (what Trivy can scan):

    • Container Image
    • Filesystem
    • Git Repository (remote)
    • Virtual Machine Image
    • Kubernetes

    Scanners (what Trivy can find there):

    • OS packages and software dependencies in use (SBOM)
    • Known vulnerabilities (CVEs)
    • IaC issues and misconfigurations
    • Sensitive information and secrets
    • Software licenses

    Trivy supports most popular programming languages, operating systems, and platforms. For a complete list, see the Scanning Coverage page.

    To learn more, go to the Trivy homepage for feature highlights, or to the Documentation site for detailed information.

    Quick Start

    Get Trivy

    Trivy is available in most common distribution channels. The full list of installation options is available in the Installation page. Here are a few popular examples:

    Trivy is integrated with many popular platforms and applications. The complete list of integrations is available in the Ecosystem page. Here are a few popular examples:

    Canary builds

    There are canary builds (Docker Hub, GitHub, ECR images and binaries) generated with every push to the main branch.

    Please be aware: canary builds might have critical bugs, so they are not recommended for use in production.

    General usage

    trivy <target> [--scanners <scanner1,scanner2>] <subject>
    

    Examples:

    trivy image python:3.4-alpine
    

    https://github.com/user-attachments/assets/af1c11e7-d9c5-48af-8e05-cb34dfd6352a

    trivy fs --scanners vuln,secret,misconfig myproject/
    

    https://github.com/user-attachments/assets/6b3894b7-77c5-4ffc-ac94-ffe6648a30dc

    trivy k8s --report summary cluster
    

    k8s summary

    FAQ

    How to pronounce the name "Trivy"?

    tri is pronounced like trigger, vy is pronounced like envy.

    Want more? Check out Aqua

    If you liked Trivy, you will love Aqua which builds on top of Trivy to provide even more enhanced capabilities for a complete security management offering.
    You can find a high level comparison table specific to Trivy users here. In addition check out the https://aquasec.com website for more information about our products and services. If you'd like to contact Aqua or request a demo, please use this form: https://www.aquasec.com/demo

    Community

    Trivy is an Aqua Security open source project.
    Learn about our open source work and portfolio here.
    Contact us about any matter by opening a GitHub Discussion here

    Please ensure to abide by our Code of Conduct during all interactions.