macOS
brew install osv-scannerlocal Homebrew formula metadata
安装
brew install osv-scannerlocal Homebrew formula metadata
sudo apk add osv-scannerAlpine Linux edge package indexes · osv-scanner · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#osv-scannernixpkgs package indexes · pkgs/by-name/os/osv-scanner/package.nix · 来源: api.github.com
sudo pacman -S osv-scannerArch Linux sync databases · osv-scanner · 来源: geo.mirror.pkgbuild.com
sudo zypper install osv-scanneropenSUSE Tumbleweed package metadata · osv-scanner · 来源: download.opensuse.org
scoop install main/osv-scannerScoop official bucket manifest trees · bucket/osv-scanner.json · 来源: api.github.com
winget install --id Google.OSVScanner -eWindows Package Manager source index · Google.OSVScanner · 来源: cdn.winget.microsoft.com
概览
Vulnerability scanner which uses the OSV database
历史
OSV-Scanner is Google's command-line vulnerability scanner for matching project dependencies, source trees, SBOMs, and container contents against the OSV.dev vulnerability database. It is significant because it turns the OSV schema and distributed advisory corpus into a developer-facing tool that package maintainers, security teams, and CI systems can run without buying into a proprietary advisory database.
Google's GitHub repository records `google/osv-scanner` as created on 2022-11-14, and the Google Online Security Blog announced OSV-Scanner on 2022-12-13 as a free tool from the Google Open Source Security Team. The announcement framed it as an access layer for OSV vulnerability information: it would scan manifests, lockfiles, SBOMs, and git directories, then report known vulnerabilities affecting the discovered packages.
The project later moved beyond a thin OSV lookup client. Its README describes OSV-Scanner as both the officially supported frontend to the OSV database and a CLI interface to OSV-Scalibr, Google's extraction/scanning library. The V2 line added broader package extraction, OS package detection, container image scanning, license scanning through deps.dev data, offline database downloads, and guided remediation workflows for selected ecosystems.
OSV-Scanner's adoption path is closely tied to OSV.dev itself. OSV.dev presents OSV as an open, precise, distributed vulnerability database and publishes GitHub workflows that run OSV-Scanner in CI/CD. That made the scanner useful not just as a local audit command, but also as a reusable supply-chain check for pull requests and scheduled repository scans.
Package-manager availability widened the audience beyond Go developers: the input metadata records packages for Homebrew, Alpine, Nix, Arch, Scoop, winget, and zypper. Homebrew packaging is especially important for a CLI security tool because it lets macOS developers add the scanner to local and CI environments with the same command style they use for other developer tools.
Developers use OSV-Scanner to recursively scan a source directory, point it at lockfiles and manifests, scan SBOMs, or inspect container images. Its documented `scan source` and `scan image` modes cover the common package-nerd cases: checking npm, Go, Maven, PyPI, Cargo, RubyGems, Composer, NuGet, and other ecosystem metadata against advisories.
Security teams use it in automation because the output is tied to machine-readable OSV records and because it can run without a custom service. The README also documents offline scanning after downloading local OSV databases, which matters for reproducible audits and restricted build environments.
OSV-Scanner is package-nerd infrastructure: it operationalizes lockfile parsing, package URL/ecosystem mapping, advisory matching, and remediation suggestions. Its significance is not just that it scans dependencies, but that it exposes how much package metadata quality determines vulnerability precision.
The tool also sits at the intersection of multiple package ecosystems and OS package databases. For av.db-style metadata, it is a useful example of a CLI whose value comes from being able to understand many package managers consistently rather than from managing one package format deeply.
安全态势
escape, surveillance, or offensive capability signal.
red 风险 · 中 置信度 · escape-surveillance-offensive
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
osv-scanner.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
osv-scanner | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/google/osv-scanner
安装元数据
| 软件包键 | brew:osv-scanner |
|---|---|
| 版本 | 2.4.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/osv-scanner |
| 主页 | https://google.github.io/osv-scanner/ |
| 仓库 | https://github.com/google/osv-scanner |
| 上游文档 | https://github.com/google/osv-scanner#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/google/osv-scanner/archive/refs/tags/v2.4.0.tar.gz |
| 最后更新 | 2026-06-18T16:37:24Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | osv-scanner |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
osv-scanner
nix profile install nixpkgs#osv-scannerosv-scanner 2.3.8-r1
Vulnerability scanner written in Go which uses the data provided by https://osv.dev
https://github.com/google/osv-scanner
sudo apk add osv-scannerosv-scanner 2.3.8-1
Vulnerability scanner written in Go which uses the data provided by https://osv.dev
https://github.com/google/osv-scanner
sudo pacman -S osv-scannerosv-scanner 2.3.8-1.1
Vulnerability scanner written in Go
https://github.com/google/osv-scanner
sudo zypper install osv-scannermain/osv-scanner
scoop install main/osv-scannerGoogle.OSVScanner
winget install --id Google.OSVScanner -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.