dependency-vulnerability-scanning
БесплатноБез исполняемых скриптовНе проверенUse when a repo needs dependency CVE scanning (SCA) in CI, a team is choosing between native audits (npm audit, pip-audit, cargo audit), OSV-Scanner and Snyk…
от testland★ 18 звёзд на GitHubОб этом скилле
dependency-vulnerability-scanning
Overview
Software composition analysis (SCA) matches the dependencies a repo declares (lockfiles, manifests, SBOMs) against vulnerability advisory databases. Each scanner family reads a different database, so their coverage differs:
| Family | Database | Cost |
|---|---|---|
Native audits (npm audit, pip-audit, cargo audit, bundle-audit, Dependency-Check) |
The ecosystem's own advisory feed (npm, PyPA, RustSec, RubySec, NVD) | Free; usually already installed |
| OSV-Scanner | OSV.dev, aggregated across ecosystems ([OSV-Scanner usage][osv-usage]) | Free, open source |
| Snyk | Snyk's own database, plus snyk monitor alerts ([Snyk CLI][sn-gh]) |
Commercial license |
The workflow below is the same for all three; the per-tool detail is in the references.
When to use
- A repo has no dependency scanning in CI yet.
- The team must choose between native audits, OSV-Scanner and Snyk, or layer two of them.
- A scanner reports findings and someone wants to suppress, waive or gate on them.
Step 1 - Pick the scanner
| Repo situation | Start with | Reference |
|---|---|---|
| One ecosystem, fastest first gate, nothing extra to install | That ecosystem's native audit | references/native-audits.md |
| Several ecosystems, open source only, or an SBOM as input | OSV-Scanner | references/osv-scanner.md |
| A Snyk license, or alerts on new CVEs against pinned versions | Snyk | references/snyk.md |
For full coverage run one native audit plus one cross-ecosystem scanner (OSV-Scanner or Snyk): each database misses advisories the others carry.
Step 2 - Scan the committed lockfile
Scan lockfiles, not loose manifests: a manifest range resolves to whatever is newest today, a lockfile is what actually ships.
npm audit --audit-level=high # npm; also yarn npm audit / pnpm audit
pip-audit -r requirements.txt # Python
cargo audit # Rust
bundle-audit check --update # Ruby; --update refreshes the advisory DB
osv-scanner scan -L package-lock.json # one lockfile
osv-scanner scan -r ./ # every lockfile and SBOM under ./
snyk test --all-projects --severity-threshold=high
SBOM input: OSV-Scanner picks up SBOMs whose names follow the SPDX or
CycloneDX patterns (*.spdx.json, bom.json, *.cdx.json) and scans
one directly with osv-scanner scan source -L my-app.cdx.json; the
components need Package URLs ([OSV-Scanner source scanning][osv-src]).
Snyk scans one with snyk sbom test --file=my-app.cdx.json (CycloneDX
1.4-1.6 JSON or SPDX 2.3 JSON, Enterprise plans) ([Snyk sbom test][sn-sbom]).
syft-generation produces the SBOM.
Step 3 - Check the scan saw packages
A scan that found no lockfile passes silently. Before trusting a green result, confirm the scanner reported the packages you expect.
OSV-Scanner makes this explicit with its exit codes ([OSV-Scanner output][osv-out]):
| Exit code | Meaning | CI action |
|---|---|---|
| 0 | Packages found, no known vulnerabilities | Pass |
| 1 | Packages found, vulnerabilities found | Fail (or triage, Step 5) |
| 127 | General error | Fail |
| 128 | No packages found | Fail: the scan did nothing; fix the path or lockfile name |
For the other scanners, read the JSON report's dependency count, or run once against a branch with a known-vulnerable pin and confirm the job goes red.
Step 4 - Emit machine-readable output
osv-scanner scan -r ./ --format sarif --output-file osv.sarif
snyk test --sarif-file-output=snyk.sarif
pip-audit --format sarif --output pip-audit.sarif
npm audit --json > npm-audit.json
--format and --output-file are OSV-Scanner's output flags
([OSV-Scanner usage][osv-usage]); the container image takes the same
arguments ([installation][osv-install]). Upload SARIF to code scanning, and
pass two or more reports to multi-tool-finding-triage (or the
security-finding-triager agent) to dedupe findings across scanners.
Step 5 - False-positive triage
Suppress a finding only in a committed file, per advisory, with a reason, an approver and an expiry date, so it comes back for review:
| Scanner | Suppression | Expiry |
|---|---|---|
| Snyk | .snyk ignore: entry |
expires: (required) |
| OSV-Scanner | osv-scanner.toml IgnoredVulns |
ignoreUntil |
| pip-audit | --ignore-vuln <id> |
Record in a committed ignore list |
| Dependency-Check | dependency-check-suppressions.xml |
<suppress until="2026-12-31Z"> ([suppression docs][dc-supp]) |
| cargo audit | .cargo/audit.toml [advisories] ignore |
Record in the justification |
| bundler-audit | .bundler-audit.yml ignore: |
Record in the justification |
Before suppressing as "not exploitable", prove it: reachability-analyzer
checks whether the vulnerable function is called, and
`cve-exploita
Установить dependency-vulnerability-scanning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dependency-vulnerability-scanning?
Use when a repo needs dependency CVE scanning (SCA) in CI, a team is choosing between native audits (npm audit, pip-audit, cargo audit), OSV-Scanner and Snyk, or findings need triage. Scans lockfiles with thresholds, checks packages were seen, outputs SARIF and allows only expiring ignores.
Как установить скилл dependency-vulnerability-scanning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dependency-vulnerability-scanning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub