登录 注册
网络与基础设施数据分析与数据处理
39,244
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Go
语言
创建时间
最近更新

项目能做什么

开源安全工具,可扫描容器、Kubernetes、代码仓库及云环境中的漏洞、配置错误、敏感信息与 SBOM。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<div align="center">
<img src="docs/imgs/logo.png" width="200">

[![GitHub Release][release-img]][release]
[![Test][test-img]][test]
[![Go Report Card][go-report-img]][go-report]
[![License: Apache-2.0][license-img]][license]
[![GitHub Downloads][github-downloads-img]][release]
![Docker Pulls][docker-pulls]

[📖 Documentation][docs]
</div>

Trivy ([pronunciation][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][homepage] for feature highlights, or to the [Documentation site][docs] 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:

- `brew install trivy`
- `docker run aquasec/trivy`
- Download binary from <https://github.com/aquasecurity/trivy/releases/latest/>
- See [Installation] for more

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:

- [GitHub Actions](https://github.com/aquasecurity/trivy-action)
- [Kubernetes operator](https://github.com/aquasecurity/trivy-operator)
- [VS Code plugin](https://github.com/aquasecurity/trivy-vscode-extension)
- See [Ecosystem] for more

### Canary builds
There are canary builds ([Docker Hub](https://hub.docker.com/r/aquasec/trivy/tags?page=1&name=canary), [GitHub](https://github.com/aquasecurity/trivy/pkgs/container/trivy/75776514?tag=canary), [ECR](https://gallery.ecr.aws/aquasecurity/trivy#canary) images and [binaries](https://github.com/aquasecurity/trivy/actions/workflows/canary.yaml)) 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

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

Examples:

```bash
trivy image python:3.4-alpine
```

<details>
<summary>Result</summary>

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

</details>

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

<details>
<summary>Result</summary>

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

</details>

```bash
trivy k8s --report summary cluster
```

<details>
<summary>Result</summary>
阅读完整原文

商业机会分析 AI 生成

Trivy-UI:轻量级团队安全集中看板(SaaS/私有化)

产品构想针对Trivy原生仅提供CLI输出的痛点,构建轻量级Web仪表盘,聚合CI/CD中多项目的扫描结果,提供漏洞趋势与优先级排序。
核心功能Webhook一键接收Trivy扫描JSON结果、多项目资产集中大屏、漏洞CVE严重度分级过滤、Slack/飞书告警推送、修复进度追踪。
目标用户10-100人规模的研发团队、没有预算采购大型商业安全平台的中小企业DevOps负责人。
难度/周期中等 · 4-6周 · 成本:极低(服务器 + 基础数据库存储扫描元数据)
收费模式免费版支持单项目/本地部署;团队版按扫描资产数或席位收取月费(如$29-$99/月)。
竞争风险开源社区可能存在零星类似开源前端方案,需要靠更极致的开箱即用体验与团队协作功能打差异化。
依据 已验证事实

SBOM合规与供应链安全审计报告生成器

产品构想利用Trivy生成的SBOM和漏洞数据,一键生成符合欧美及行业监管标准(如SPDX/CycloneDX合规文档、SOC2安全佐证)的客户交付报告。
核心功能标准CycloneDX/SPDX解析与验证、一键导出PDF/HTML合规包、开源许可风险分析、审计就绪的差异对照报告。
目标用户需要向海外客户或审计机构证明软件供应链安全的B2B软件厂商、合规主管。
难度/周期较低 · 2-4周 · 成本:极低(文档渲染服务 + 静态站点)
收费模式按次付费(单份审计报告$19-$49)或按企业订阅无限生成($99/月)。
竞争风险合规标准变动较快,需紧跟国际与行业标准更新。
依据 数据支持的判断

Trivy-Fixer:漏洞自动修复与依赖升级GitHub App

产品构想结合Trivy扫描结果与包管理器机制(并辅以LLM分析Breaking Change),不仅指出漏洞,更自动生成修复漏洞的Pull Request。
核心功能CI集成触发扫描、安全依赖版本匹配算法、自动提交升版PR、安全更新破坏性风险提示。
目标用户维护海量依赖仓库的开源作者、缺乏专职安全人员的敏捷开发团队。
难度/周期中等偏高 · 6-8周 · 成本:中等(GitHub App服务器成本 + 少量LLM API调用费)
收费模式公开仓库免费;私有仓库按Repository阶梯收费(如$15/月/5个私有库)。
竞争风险自动更新依赖可能导致CI构建中断,需要精细化控制版本升幅。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
kubernetes/kubernetes 中文介绍暂未生成
Production-Grade Container Scheduling and Management
128,982 Go
bregman-arie/devops-exercises 中文介绍暂未生成
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansibl
86,703 Python
moby/moby 中文介绍暂未生成
The Moby Project - a collaborative project for the container
72,365 Go
dockur/windows 中文介绍暂未生成
Windows inside a Docker container.
54,149 Shell
sickcodes/Docker-OSX 中文介绍暂未生成
Run macOS VM in a Docker! Run near native OSX-KVM in Docker!
53,003 Shell
moeru-ai/airi 中文介绍暂未生成
💖🧸 Self hosted, you-owned Grok Companion, a container of sou
51,262 TypeScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 96 个 Release
社区活跃Star 39,244 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/aquasecurity/trivy.git
cd trivy
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。