Protect against malicious open source packages
[!NOTE]
vetalso runs in the cloud. Point it at your GitHub repositories and get continuous scanning, malware detection, and policy enforcement without managing any infrastructure. See SafeDep Cloud for the end-to-end software supply chain security platform.
70-90% of modern software is open source code — how do you know it's safe?
Traditional SCA tools drown you in CVE noise. vet takes a different approach:
Free for open source. Hosted SaaS available at SafeDep.
Install in seconds:
# macOS & Linux
brew install vet
# Using npm
npm install -g @safedep/vetor download a pre-built binary
Get started immediately:
# Scan for malware in your dependencies
vet scan -D . --malware-query
# Fail CI on critical vulnerabilities
vet scan -D . --filter 'vulns.critical.exists(p, true)' --filter-failvet follows a pipeline architecture: readers ingest package manifests from diverse sources (directories, repositories, container images, SBOMs), enrichers augment each package with vulnerability, malware, and scorecard data from SafeDep Cloud, the CEL policy engine evaluates security policies against enriched data, and reporters produce actionable output in formats like SARIF, JSON, and Markdown.
View architecture diagram
…Real-time protection against malicious packages powered by SafeDep Cloud. Free for open source projects. Detects zero-day malware through active code analysis.
Unlike dependency scanners that flood you with noise, vet analyzes your actual code usage to prioritize real risks.
See dependency usage evidence for details.
Define security policies using CEL expressions to enforce context specific requirements:
…bash
vet scan --vsx --malware-query # VS Code extensions vet scan -D .github/workflows --malware-query # GitHub Actions vet scan --image nats:2.10 --malware-query # Container images
> [!NOTE]
> The `vet inspect malware` command (on-demand analysis of a single package) is deprecated and
> will be removed in a future release. Use `vet scan --malware-query` to check packages against
> SafeDep's known malicious packages database.
## Production Ready Integrations
### GitHub Actions
Zero-config security guardrails in CI/CD:
```yaml
- uses: safedep/vet-action@v1
with:
policy: ".github/vet/policy.yml"See vet-action documentation.
Enterprise scanning with vet CI Component:
include:
- component: gitlab.com/safedep/ci-components/vet/scan@mainRun vet anywhere using our container image:
docker run --rm -v $(pwd):/app ghcr.io/safedep/vet:latest scan -D /app --malware-querybrew install safedep/tap/vetnpm install @safedep/vetSee releases for pre-built binaries.
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 /workspacevet version
# Should display version and build information
…
bash
# Disable telemetry (optional)
export VET_DISABLE_TELEMETRY=trueNo open issues yet, or sync has not completed.