SafeDep vet-mcp
helps in vetting open source packages for security risksโsuch as vulnerabilities and malicious codeโbefore they're used in your project, especially with AI-generated code suggestions.
๐ Enterprise grade open source software supply chain security
Download โข Quick Start โข Documentation โข Community
70-90% of modern software constitute code from open sources โ How do we know if it's safe?
vet is an open source software supply chain security tool built for developers and security engineers who need:
โ
Next-gen Software Composition Analysis โ Vulnerability and malicious package detection
โ
Policy as Code โ Express opinionated security policies using CEL
โ
Real-time malicious package detection โ Powered by SafeDep Cloud active scanning
โ
Multi-ecosystem support โ npm, PyPI, Maven, Go, Docker, GitHub Actions, and more
โ
CI/CD native โ Built for DevSecOps workflows with support for GitHub Actions, GitLab CI, and more
โ
MCP Server โ Run vet
as a MCP server to vet open source packages from AI suggested code
โ
Agents โ Run AI agents to query and analyze scan results
Install in seconds:
# macOS & Linux
brew install safedep/tap/vet
or download a pre-built binary
Scan your project:
# Scan current directory
vet scan -D .
# Scan a single file
vet scan -M package-lock.json
# Fail CI on critical vulnerabilities
vet scan -D . --filter 'vulns.critical.exists(p, true)' --filter-fail
# Fail CI on OpenSSF Scorecard requirements
vet scan -D . --filter 'scorecard.scores.Maintained < 5' --filter-fail
# Fail CI if a package is published from a GitHub repository with less than 5 stars
vet scan -D . --filter 'projects.exists(p, p.type == "GITHUB" && p.stars < 5)' --filter-fail
Unlike dependency scanners that flood you with noise, vet
analyzes your actual code usage to prioritize real risks. See dependency usage evidence for more details.
Integrated with SafeDep Cloud for real-time protection against malicious packages in the wild. Free for open source projects. Fallback to Query Mode when API key is not provided. Read more about malicious package scanning.
Define security policies using CEL expressions to enforce context specific security requirements.
# Block packages with critical CVEs
vet scan \
--filter 'vulns.critical.exists(p, true)'
# Enforce license compliance
vet scan \
--filter 'licenses.contains_license("GPL-3.0")'
# Enforce OpenSSF Scorecard requirements
# Require minimum OpenSSF Scorecard scores
vet scan \
--filter 'scorecard.scores.Maintained < 5'
Zero config security guardrails against vulnerabilities and malicious packages in your CI/CD pipeline with your own opinionated policies:
- uses: safedep/vet-action@v1
with:
policy: '.github/vet/policy.yml'
See more in vet-action documentation.
Enterprise grade scanning with vet CI Component:
include:
- component: gitlab.com/safedep/ci-components/vet@main
Run vet
anywhere, even your internal developer platform or custom CI/CD environment using our container image.
docker run --rm -v $(pwd):/app ghcr.io/safedep/vet:latest scan -D /app
brew tap safedep/tap
brew install safedep/tap/vet
See releases for the latest version.
go install github.com/safedep/vet@latest
# Quick test
docker run --rm ghcr.io/safedep/vet:latest version
# Scan local directory
docker run --rm -v $(pwd):/workspace ghcr.io/safedep/vet:latest scan -D /workspace
vet version
# Should display version and build information
๐ Directory Scanning
๐ Manifest Files
|
๐ GitHub Integration
๐ฆ Artifact Scanning
|
# Security-first scanning
vet scan -D . \
--filter 'vulns.critical.exists(p, true) || vulns.high.exists(p, true)' \
--filter-fail
# License compliance
vet scan -D . \
--filter 'licenses.contains_license("GPL-3.0")' \
--filter-fail
# OpenSSF Scorecard requirements
vet scan -D . \
--filter 'scorecard.scores.Maintained < 5' \
--filter-fail
# Popularity-based filtering
vet scan -D . \
--filter 'projects.exists(p, p.type == "GITHUB" && p.stars < 50)' \
--filter-fail
# Scan a CycloneDX SBOM
vet scan -M sbom.json --type bom-cyclonedx
# Scan a SPDX SBOM
vet scan -M sbom.spdx.json --type bom-spdx
# Generate SBOM output
vet scan -D . --report-cdx=output.sbom.json
# Package URL scanning
vet scan --purl pkg:npm/[email protected]
For large codebases and repeated analysis:
# Scan once, query multiple times
vet scan -D . --json-dump-dir ./scan-data
# Query with different filters
vet query --from ./scan-data \
--filter 'vulns.critical.exists(p, true)'
# Generate focused reports
vet query --from ./scan-data \
--filter 'licenses.contains_license("GPL")' \
--report-json license-violations.json
vet generate reports that are tailored for different stakeholders:
๐ For Security Teams |
|
๐ For Developers |
|
๐ข For Compliance |
|
# Multi-format output
vet scan -D . \
--report-json=report.json \
--report-sarif=report.sarif \
--report-markdown=report.md
# Focus on specific issues
vet scan -D . \
--filter 'vulns.high.exists(p, true)' \
--report-json=report.json
vet can be used as an MCP server to vet open source packages from AI suggested code.
# Start the MCP server with SSE transport
vet server mcp --server-type sse
For more details, see vet MCP Server documentation.
See vet Agents documentation for more details.
Malicious package detection through active scanning and code analysis powered by
SafeDep Cloud. vet
requires an API
key for active scanning of unknown packages. When API key is not provided, vet
will
fallback to Query Mode which detects known malicious packages from SafeDep
and OSV databases.
vet cloud quickstart
Malicious package detection requires an API key for SafeDep Cloud.
# One-time setup
vet cloud quickstart
# Enable malware scanning
vet scan -D . --malware
# Query for known malicious packages without API key
vet scan -D . --malware-query
Example malicious packages detected and reported by SafeDep Cloud malicious package detection:
๐ Scan packages with malicious package detection enabled
|
๐ญ Specialized Scans
|
vet
collects anonymous usage telemetry to improve the product. Your code and package information is never transmitted.
# Disable telemetry (optional)
export VET_DISABLE_TELEMETRY=true
vet stands on the shoulders of giants:
OSV โข OpenSSF Scorecard โข SLSA โข OSV-SCALIBR โข Syft
โก Secure your supply chain today. Star the repo โญ and get started!
Created with โค๏ธ by SafeDep and the open source community