vet

command module
v1.12.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

README ΒΆ

image

SafeDep VET

πŸ›‘οΈ Real-time malicious package detection & software supply chain security

Quick Start β€’ Documentation β€’ Community

Go Report Card License Release OpenSSF Scorecard SLSA 3 CodeQL

Ask DeepWiki


[!NOTE] vet supports special mode for Agent Skills. Run vet scan --agent-skill <owner/repo> to scan an Agent Skill hosted in a GitHub repository.

🎯 Why vet?

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:

βœ… Real-time malicious package detection β€” Active scanning and analysis of unknown packages
βœ… Modern SCA with actual usage analysis β€” Prioritize real risks over vulnerability noise
βœ… Policy as Code β€” Express security requirements using CEL expressions

Hosted SaaS version available at SafeDep Cloud. Get started with GitHub App and other integrations.

⚑ Quick Start

Install in seconds:

# macOS & Linux
brew install safedep/tap/vet

or 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-fail

# Get API key for advanced malware detection
vet cloud quickstart

πŸ“¦ Architecture

graph TB
    subgraph "OSS Ecosystem"
        R1[npm Registry]
        R2[PyPI Registry]
        R3[Maven Central]
        R4[Other Registries]
    end
    
    subgraph "SafeDep Cloud"
        M[Continuous Monitoring]
        A[Real-time Code Analysis<br/>Malware Detection]
        T[Threat Intelligence DB<br/>Vulnerabilities β€’ Malware β€’ Scorecard]
    end
    
    subgraph "vet CLI"
        S[Source Repository<br/>Scanner]
        P[CEL Policy Engine]
        O[Reports & Actions<br/>SARIF/JSON/CSV]
    end
    
    R1 -->|New Packages| M
    R2 -->|New Packages| M
    R3 -->|New Packages| M
    R4 -->|New Packages| M
    M -->|Behavioral Analysis| A
    A -->|Malware Signals| T
    
    S -->|Query Package Info| T
    T -->|Security Intelligence| S
    S -->|Analysis Results| P
    P -->|Policy Decisions| O
    
    style M fill:#7CB9E8,stroke:#5A8DB8,color:#1a1a1a
    style A fill:#E8A87C,stroke:#B88A5A,color:#1a1a1a
    style T fill:#7CB9E8,stroke:#5A8DB8,color:#1a1a1a
    style S fill:#90C695,stroke:#6B9870,color:#1a1a1a
    style P fill:#E8C47C,stroke:#B89B5A,color:#1a1a1a
    style O fill:#B8A3D4,stroke:#9478AA,color:#1a1a1a

πŸ”’ Key Features

πŸ›‘οΈ Malicious Package Detection

Real-time protection against malicious packages powered by SafeDep Cloud. Free for open source projects. Detects zero-day malware through active code analysis.

πŸ•΅οΈ Smart Vulnerability 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.

πŸ“‹ Policy as Code

Define security policies using CEL expressions to enforce context specific requirements:

# Block packages with critical CVEs
vet scan --filter 'vulns.critical.exists(p, true)' --filter-fail

# Enforce license compliance
vet scan --filter 'licenses.contains_license("GPL-3.0")' --filter-fail

# Require minimum OpenSSF Scorecard scores
vet scan --filter 'scorecard.scores.Maintained < 5' --filter-fail

🎯 Multi-Ecosystem Support

Package managers: npm, PyPI, Maven, Go, Ruby, Rust, PHP
Container images: Docker, OCI
SBOM formats: CycloneDX, SPDX
Source repositories: GitHub, GitLab

πŸ›‘οΈ Malicious Package Detection

Real-time protection against malicious packages with active scanning and behavioral analysis.

πŸš€ Quick Setup

# One-time setup for advanced scanning
vet cloud quickstart

# Scan for malware with active scanning (requires API key)
vet scan -D . --malware

# Query known malicious packages (no API key needed)
vet scan -D . --malware-query

Example detections:

Key security features:

  • βœ… Real-time analysis against known malware databases
  • βœ… Behavioral analysis using static and dynamic analysis
  • βœ… Zero-day protection through active code scanning
  • βœ… Human-in-the-loop triaging for high-impact findings
  • βœ… Public analysis log for transparency

🎯 Advanced Usage

# Specialized scans
vet scan --vsx --malware                    # VS Code extensions
vet scan -D .github/workflows --malware     # GitHub Actions
vet scan --image nats:2.10 --malware        # Container images

# Analyze specific packages
vet inspect malware --purl pkg:npm/nyc-config@10.0.0

πŸš€ Production Ready Integrations

πŸ“¦ GitHub Actions

Zero-config security guardrails in CI/CD:

- uses: safedep/vet-action@v1
  with:
    policy: ".github/vet/policy.yml"

See vet-action documentation.

πŸ”§ GitLab CI

Enterprise scanning with vet CI Component:

include:
  - component: gitlab.com/safedep/ci-components/vet/scan@main

🐳 Container Integration

Run vet anywhere using our container image:

docker run --rm -v $(pwd):/app ghcr.io/safedep/vet:latest scan -D /app --malware

πŸ“¦ Installation

brew tap safedep/tap
brew install safedep/tap/vet

πŸ“₯ Direct Download

See releases for pre-built binaries.

🐹 Go Install

go install github.com/safedep/vet@latest

🐳 Container Image

# 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

βš™οΈ Verify Installation

vet version
# Should display version and build information

πŸ“š Advanced Features

Learn more in our comprehensive documentation:

πŸ“Š Privacy

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

🎊 Community & Support

🌟 Join the Community

Discord GitHub Discussions Twitter Follow

πŸ’‘ Get Help & Share Ideas


⭐ Star History

Star History Chart

πŸ™ Built With Open Source

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

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
Package agent declares the building blocks for implement vet agent.
Package agent declares the building blocks for implement vet agent.
cmd
agent
Package agent provides a CLI for running agents.
Package agent provides a CLI for running agents.
doc
ent
gen
cpv1
Package cpv1 provides primitives to interact with the openapi HTTP API.
Package cpv1 provides primitives to interact with the openapi HTTP API.
insightapi
Package insightapi provides primitives to interact with the openapi HTTP API.
Package insightapi provides primitives to interact with the openapi HTTP API.
internal
analytics
analytics package is for internal utility functions for tracking anonymous usage analytics.
analytics package is for internal utility functions for tracking anonymous usage analytics.
ui
mcp
pkg
cloud
Package cloud contains the services for interacting with SafeDep Cloud.
Package cloud contains the services for interacting with SafeDep Cloud.
readers
Package readers implement the various supported package manifest readers.
Package readers implement the various supported package manifest readers.
reporter
Package reporter provides a contract for implementing reporting modules.
Package reporter provides a contract for implementing reporting modules.
reporter/templates
templ: version: v0.3.924
templ: version: v0.3.924

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL