Make package installs safe by default.
Shim is a pre-install security layer for modern package managers.
It analyzes packages before installation to detect:
- malicious install scripts
- suspicious dependency changes
- obfuscated code
- vulnerable packages
- suspicious install-time behavior
Shim works directly in the installation workflow to stop suspicious packages before code executes on your system.
- Vulnerability scanning
- Install script inspection
- Dependency diff analysis
- Suspicious metadata detection
- npm / pnpm / yarn support
- Local CLI workflow integration
- Python ecosystem support
- Git repository scanning
- Unicode / obfuscation detection
- AST-based heuristic scanning
- CI/CD integrations
- Optional sandboxed execution
- Real-time vulnerability alerts
| Platform | Status |
|---|---|
| Linux | ✅ |
| macOS | ✅ |
| Windows | ✅ |
| Package Manager | Status |
|---|---|
| npm | ✅ Supported |
| pnpm | ✅ Supported |
| yarn | ✅ Supported |
| bun | 🚧 In Progress |
| pip | 🚧 In Progress |
curl -fsSL https://github.com/shim-sec/shim/releases/download/latest/install.sh | bashpowershell -c "irm https://github.com/shim-sec/shim/releases/download/latest/install.ps1 | iex"Display all available Shim commands and flags.
shim helpUpdate shim to the latest version.
shim updateUninstall shim from the machine.
shim uninstallVerify Shim installation and ensure all components are working correctly.
shim doctor