Skip to content

v1.4.0 — Supply Chain Enforcement (immunity CLI)

Choose a tag to compare

@Ar9av Ar9av released this 12 May 16:16
· 1129 commits to main since this release

Supply Chain Enforcement — `immunity` CLI

Intercepts package manager install commands before execution, scores each package against live threat intelligence, and blocks or warns based on risk signals. Ships with IOC coverage for the mini-shai-hulud attack (May 11 2026) out of the box.

Added

  • `immunity` CLI wrapper — shebang script at repo root intercepts `npm/pip/pnpm/uv/cargo/go install` commands before execution.
  • `supplychain/ecosystems/detector.py` — parses install argv into a structured `InstallEvent` across 9 ecosystems.
  • `supplychain/ecosystems/metadata.py` — fetches npm and PyPI registry metadata (age, maintainers, install scripts); stdlib only, fail-open.
  • `supplychain/scoring/engine.py` — additive signal scorer producing allow/warn/block verdicts.
  • `supplychain/ioc.py` — IOC database covering `@tanstack/*`, `@mistralai/mistralai` 1.7.1–2.2.4, C2 domains (`getsession.org`, `masscan.cloud`), and install script patterns (Bun download, `router_init.js`, credential env var access, persistence writes).
  • `docs/supply-chain.md` — full documentation: usage, scoring table, ecosystem support, IOC advisory for mini-shai-hulud, guide for adding new IOCs, internal architecture.

Quick start

```bash
immunity npm install express # resolves cleanly, execs npm
immunity npm install @tanstack/react-router # blocks on IOC match
immunity pip install requests # resolves cleanly, execs pip
```