๐Ÿ”’ Vault
alpha ยท written in Rust ยท MIT

Audit first.
Install second.

A secure, pnpm-style package manager for Node.js that actively blocks supply-chain attacks before a single file is extracted.

$ npm install -g vaultpm

Installs the vault and vt commands. Vault's own install runs zero postinstall scripts.

Security built into the installer

Not a scanner you run afterwards. The package manager itself is the guard.

๐Ÿ›ก๏ธ

Pre-install CVE gate

Every package is checked against OSV.dev before download. Critical CVEs are blocked, not just reported.

๐Ÿ”ฌ

Script analysis

Obfuscation-resistant scan of preinstall/postinstall for credential theft, exfiltration and eval-based payloads.

๐Ÿงฌ

Maintainer takeover

Flags freshly-published versions and maintainer-set changes between installs โ€” the classic hijack pattern.

๐ŸŽฏ

Typosquat detection

Catches look-alike names (expresss, crossenv) before you install the wrong thing.

๐Ÿ“ฆ

Landlock sandbox

Lifecycle scripts run under a kernel sandbox with no access to ~/.ssh, ~/.aws or the network.

๐Ÿ’ฝ

Content-addressable store

pnpm-style global store + hard links. Ten projects on lodash = one copy on disk.

How it compares

Socket-style analysis, built into a native package manager โ€” open source.

 VaultSocket / Aikidosnpm / rnpmpnpm 10 / bun
Is a package managerโœ“โœ— wraps npmโœ“โœ“
Pre-install CVE scanโœ“โœ“partialโœ—
Static script analysisโœ“โœ“โœ—โœ—
Kernel sandboxโœ“ Landlockโœ—โœ—โœ—
Open source & self-containedโœ“โœ— SaaSโœ“โœ“

Vault is the first open-source native package manager where the security analysis is built into the installer itself. See honest benchmarks.

Fast and safe

Security usually means "slower". Vault refuses the trade-off โ€” on a warm cache it's ~2ร— faster than pnpm (and level with it cold), while auditing every dependency.

Package managerCold cacheWarm cacheAudits deps?
vault3.7s1.3s ๐Ÿฅ‡โœ“
pnpm2.8s2.1sโœ—
npm8.0s3.5sโœ—

One back-to-back run ยท ~150-package tree ยท scripts disabled for all tools. Times vary with network; cold ordering vs pnpm flips run-to-run. Reproduce it: BENCHMARKS.md.

The pipeline

A malicious package is rejected on metadata alone โ€” before any file touches disk.

package.json โ”‚ โ–ผ resolve graph โ”€โ”€โ–ถ AUDIT (metadata, before download) โ”œโ”€โ”€ OSV.dev CVE lookup โ”œโ”€โ”€ static scan of install scripts โ”œโ”€โ”€ maintainer-takeover + typosquat โ””โ”€โ”€ policy gate โ”€โ”€ BLOCK โ”€โ”€โ–ถ abort (nothing extracted) โ”‚ โ–ผ (clean) verify SHA-512 โ”€โ”€โ–ถ content-addressable store โ”€โ”€โ–ถ node_modules โ”€โ”€โ–ถ vault.lock