Skip to main content
ClaudeWave

Protect against malicious open source packages 🤖

ToolsOfficial Registry1.1k stars107 forksGoApache-2.0Updated today
ClaudeWave Trust Score
100/100
Verified
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Healthy fork ratio
  • Clear description
  • Topics declared
  • Mature repo (>1y old)
Last scanned: 6/11/2026
Get started
Method: Clone
Terminal
git clone https://github.com/safedep/vet
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Use cases

Tools overview

<p align="center">
  <a href="https://safedep.io">
    <picture>
      <source srcset="docs/assets/vet-banner-dark.svg" media="(prefers-color-scheme: dark)">
      <source srcset="docs/assets/vet-banner-light.svg" media="(prefers-color-scheme: light)">
      <img src="docs/assets/vet-banner-light.svg" alt="SafeDep VET - Real-time malicious package detection & software supply chain security" width="100%">
    </picture>
  </a>
</p>

<div align="center">
  <p>
    <a href="#quick-start"><strong>Quick Start</strong></a> •
    <a href="https://docs.safedep.io/"><strong>Documentation</strong></a> •
    <a href="#community--support"><strong>Community</strong></a>
  </p>
</div>

<div align="center">

[![Go Report Card](https://goreportcard.com/badge/github.com/safedep/vet)](https://goreportcard.com/report/github.com/safedep/vet)
[![License](https://img.shields.io/github/license/safedep/vet)](https://github.com/safedep/vet/blob/main/LICENSE)
[![Release](https://img.shields.io/github/v/release/safedep/vet)](https://github.com/safedep/vet/releases)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/safedep/vet/badge)](https://api.securityscorecards.dev/projects/github.com/safedep/vet)
[![SLSA 3](https://slsa.dev/images/gh-badge-level3.svg)](https://slsa.dev)
[![CodeQL](https://github.com/safedep/vet/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/safedep/vet/actions/workflows/codeql.yml)

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/safedep/vet)
[![MCP Toplist](https://mcptoplist.com/badge/io.github.safedep%2Fvet-mcp.svg)](https://mcptoplist.com/server/io.github.safedep%2Fvet-mcp)

</div>

---

> [!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 is open source code** — how do you know it's safe?

Traditional SCA tools drown you in CVE noise. **vet** takes a different approach:

- **Shadow AI discovery** — Discover AI tool usage signals across various tools and configurations
- **Catch malware before it ships** — Zero-day detection through static and dynamic behavioral analysis (requires SafeDep Cloud access)
- **Cut through vulnerability noise** — Analyzes actual code usage to surface only the risks that matter
- **Enforce policy as code** — Express security, license, and quality requirements as [CEL](https://cel.dev/) expressions
- **CI/CD integration** — Zero-config security guardrails in CI/CD

Free for open source. Hosted SaaS available at [SafeDep](https://safedep.io).

## Quick Start

**Install in seconds:**

```bash
# macOS & Linux
brew install safedep/tap/vet

# Using npm
npm install -g @safedep/vet
```

or download a [pre-built binary](https://github.com/safedep/vet/releases)

**Get started immediately:**

```bash
# 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
```

## Architecture

`vet` 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.

<details>
<summary>View architecture diagram</summary>

```mermaid
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
```

</details>

## Key Features

### **Malicious Package Detection**

Real-time protection against malicious packages powered by [SafeDep Cloud](https://docs.safedep.io/cloud/malware-analysis).
Free for open source projects. Detects zero-day malware through active code analysis.

### **Vulnerability Analysis**

Unlike dependency scanners that flood you with noise, `vet` analyzes your **actual code usage** to prioritize real risks.
See [dependency usage evidence](https://docs.safedep.io/vet/guides/dependency-usage-identification) for details.

### **Policy as Code**

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

```bash
# 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** by querying SafeDep's threat intelligence
database, continuously populated through static and dynamic behavioral analysis.

### Quick Setup

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

> [!NOTE]
> The `--malware` flag is deprecated. Active (on-demand) scanning has been retired in favour of
> querying SafeDep's threat intelligence database. `--malware` now behaves identically to
> `--malware-query` and is retained for backward compatibility.

**Example detections:**

- [MAL-2025-3541: express-cookie-parser](https://safedep.io/malicious-npm-package-express-cookie-parser/)
- [MAL-2025-4339: eslint-config-airbnb-compat](https://safedep.io/digging-into-dynamic-malware-analysis-signals/)
- [MAL-2025-4029: ts-runtime-compat-check](https://safedep.io/digging-into-dynamic-malware-analysis-signals/)

**Key security features:**

- Real-time lookups against SafeDep's known malicious packages database
- Behavioral analysis using static and dynamic analysis (performed continuously in SafeDep Cloud)
- Human-in-the-loop triaging for high-impact findings
- Public [analysis log](https://vetpkg.dev/mal) for transparency

### Advanced Usage

```bash
# Specialized scans
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](https://github.com/safedep/vet-action) documentation.

### GitLab CI

Enterprise scanning with [vet CI Component](https://docs.safedep.io/vet/guides/gitlab-dependency-scanning):

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

### Container Integration

Run `vet` anywhere using our container image:

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

## Installation

### Homebrew (Recommended)

```bash
brew install safedep/tap/vet
```

### npm

```bash
npm install @safedep/vet
```

### Direct Download

See [releases](https://github.com/safedep/vet/releases) for pre-built binaries.

### Go Install

```bash
go install github.com/safedep/vet@latest
```

### Container Image

```bash
# 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

```bash
vet version
# Should display version and build information
```

## Advanced Features

**Learn more in our comprehensive documentation:**

- **[AI Usage Discovery](./docs/ai-discovery.md)** - Discover AI tool usage signals across various tools and configurations
- **[AI Agent Mode](./docs/agent.md)** - Run vet as an AI agent
- **[MCP Server](./docs/mcp.md)** - Run vet as an MCP server for AI-assisted code analysis
- **[Reporting](./docs/reporting.md)** - SARIF, JSON, CSV, HTML, Markdown formats
- **[SBOM Support](https://docs.safedep.io/vet/guides/cyclonedx-sbom)** - CycloneDX, SPDX import/export
- **[Query Mode](https://docs.safedep.io/cloud/quickstart#query-your-data)** - Scan once, analyze multiple times
- **[GitHub Integration](https://docs.safedep.io/)** - Repository and organization scanning
- **[GitHub Actions Pinning](./docs/github-actions-pinning.md)** - Pin GitHub Actions to commit SHAs to prevent supply chain attacks

## Privacy

`vet` collects anonymous usage telemetry to improve the product. **Your code and package information is never transmitted.**

```bash
# Disable telemetry (optional)
export VET
devsecopsgolanghacktoberfestnpmpolicy-as-codepypirubygemssecuritysoftware-composition-analysisstatic-analysissupply-chain-security

What people ask about vet

What is safedep/vet?

+

safedep/vet is tools for the Claude AI ecosystem. Protect against malicious open source packages 🤖 It has 1.1k GitHub stars and was last updated today.

How do I install vet?

+

You can install vet by cloning the repository (https://github.com/safedep/vet) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is safedep/vet safe to use?

+

Our security agent has analyzed safedep/vet and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains safedep/vet?

+

safedep/vet is maintained by safedep. The last recorded GitHub activity is from today, with 102 open issues.

Are there alternatives to vet?

+

Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.

Deploy vet to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: safedep/vet
[![Featured on ClaudeWave](https://claudewave.com/api/badge/safedep-vet)](https://claudewave.com/repo/safedep-vet)
<a href="https://claudewave.com/repo/safedep-vet"><img src="https://claudewave.com/api/badge/safedep-vet" alt="Featured on ClaudeWave: safedep/vet" width="320" height="64" /></a>

More Tools

vet alternatives