Skip to main content
Malware analysis is available for free with SafeDep Cloud. See pricing for details.
Analyze open source packages for malicious code using Vet with SafeDep Cloud’s hosted analysis service. The service scans package artifacts from public package registries.

Supported Ecosystems

npm

JavaScript and TypeScript packages

PyPI

Python packages and wheels

Go Modules

Go language modules

RubyGems

Ruby packages and gems

GitHub Actions

GitHub Action workflows

VS Code Extensions

Visual Studio Code extensions

Requirements

1

Install Vet

You must have Vet version 1.9.7 or above installed.
2

SafeDep Cloud Access

You must be onboarded to SafeDep Cloud with a Tenant Domain and API Key. See SafeDep Cloud Quickstart for onboarding instructions.

Repository Scanning

Basic Malware Scanning

Enable malware analysis with the --malware flag:
vet waits for a timeout period for malware analysis to complete. This works well for pull requests and CI/CD pipelines where the number of changed packages is small.

Timeout Configuration

Adjust analysis timeout for different scenarios:

Specific Manifest Scanning

Scan individual package manifest files:

PURL-Based Scanning

Scan specific packages using Package URLs:
Malware analysis results for llm-oracle package

Visual Studio Code Extensions

Scan locally installed VS Code extensions:
VS Code extension scanning is supported only for local developer machines, not in CI/CD environments.

GitHub Actions Integration

vet-action Cloud Mode

Enable malicious package protection in GitHub repositories using vet-action:

Pull Request Integration

When enabled, Vet scans changed packages for malware and provides results directly in pull requests: vet malware analysis in GitHub PR Expand comments to view detailed package analysis results: Detailed malware analysis results in PR

Package Inspection

Enable Experimental Feature

Package inspection is currently experimental. Enable it with:

Inspect Single Packages

Perform detailed analysis of individual packages:
Package analysis is performed asynchronously. Scanning usually takes a few minutes but may take longer depending on the analysis queue.

Analysis Results

On completion, Vet shows the analysis status and classification: Malware scan result showing package classification

Export Results

Export analysis results as JSON:

Understanding Results

Classification Levels

  • SAFE: No malicious behavior detected
  • SUSPICIOUS: Potentially risky patterns identified
  • MALICIOUS: Confirmed malicious behavior found

Analysis Techniques

  • Code pattern analysis
  • Suspicious function detection
  • Obfuscation identification
  • Network communication patterns
  • File system access patterns
  • Process execution analysis
  • Package metadata anomalies
  • Publisher reputation analysis
  • Distribution pattern analysis

CI/CD Integration Examples

GitLab CI

Jenkins Pipeline

Troubleshooting

  • Increase the timeout with --malware-analysis-timeout
  • Scan smaller package sets
  • Check network connectivity to SafeDep Cloud
  • Verify your API key has malware analysis permissions
  • Check your tenant configuration
  • Ensure you are using Vet v1.9.7 or later
  • Review the analysis details
  • Contact SafeDep support with the package details
  • Use exceptions management for temporary overrides

vet-action Documentation

Complete GitHub Actions integration guide

SafeDep Cloud Setup

Get started with SafeDep Cloud for malware analysis

Package Inspection Guide

Learn more about experimental package inspection features

Report Issues

Report bugs or request features for malware analysis