Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, pacman, zypper, scoop, winget 安装 osv-scanner

查看 osv-scanner 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install osv-scanner

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add osv-scanner

Alpine Linux edge package indexes · osv-scanner · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#osv-scanner

nixpkgs package indexes · pkgs/by-name/os/osv-scanner/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S osv-scanner

Arch Linux sync databases · osv-scanner · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install osv-scanner

openSUSE Tumbleweed package metadata · osv-scanner · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/osv-scanner

Scoop official bucket manifest trees · bucket/osv-scanner.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Google.OSVScanner -e

Windows Package Manager source index · Google.OSVScanner · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Vulnerability scanner which uses the OSV database

命令和别名

  • osv-scanner

历史

项目历史与用法

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.

时间线

  • 2022-11-14: GitHub records creation of `google/osv-scanner`.
  • 2022-12-13: Google announced OSV-Scanner on the Google Online Security Blog.
  • 2025-01-24: the project opened a discussion thread for OSV-Scanner V2 beta feedback.
  • 2026-06-18: GitHub release v2.4.0 added support including CycloneDX 1.7, more default source-scanning plugins, Alpine PURL distro qualifiers, Swift Package.resolved scanning, and Chisel container extraction.

Related projects

  • OSV.dev provides the vulnerability database and API that OSV-Scanner queries.
  • OSV-Scalibr provides extraction and scanning components used under the OSV-Scanner V2 architecture.
  • deps.dev supplies supplemental package data used by OSV-Scanner for dependency resolution, license scanning, container metadata, and package deprecation checks.

安全态势

风险级别:red

escape, surveillance, or offensive capability signal.

风险分类器

red 风险 · 中 置信度 · escape-surveillance-offensive

原因

  • escape, surveillance, or offensive capability signal

信号

  • text:vulnerability scanner

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
osv-scanner.toml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
osv-scannercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.4.0
管理器更新时间2026-06-18
本地数据OK
上游当前
检测到的最新版本v2.4.0

https://github.com/google/osv-scanner

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameosv-scanner
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

osv-scanner

nix profile install nixpkgs#osv-scanner
  • normalized package name match
  • 匹配方式:Osv Scanner
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/os/osv-scanner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

osv-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-scanner
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: osv-scanner
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Osv Scanner
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: osv-scanner from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

osv-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-scanner
  • License: Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Osv Scanner
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: osv-scanner from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

osv-scanner 2.3.8-1.1

Vulnerability scanner written in Go

https://github.com/google/osv-scanner

sudo zypper install osv-scanner
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: osv-scanner
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Osv Scanner
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: osv-scanner from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Scoop95%

main/osv-scanner

scoop install main/osv-scanner
  • normalized package name match
  • 匹配方式:Osv Scanner
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/osv-scanner.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Google.OSVScanner

winget install --id Google.OSVScanner -e
  • normalized package name match
  • 匹配方式:Osv Scanner
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Google.OSVScanner from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment