Supply-chain security for AI coding agents

Your agent wants to install it.
Warden checks it first.

Warden stops AI coding agents and dependency updates from installing fake, look-alike, or tampered npm packages before they ever run.

Install from source Node 22.12+ · no AI model · no account
git clone https://github.com/hamza-paracha/warden.git && cd warden && npm ci && npm run build && npm install -g .

Then run warden agent-setup claude devin in your project.

Source-only for now. The commands on this page are on the main branch and ship in the next npm release. Until then, npm install -g @devdonzo/warden installs an older version without them.

warden guard
  1. agent npm install reqeusts colros chalk@5
  2. warden ─ checking 3 packages
  3. BLOCK reqeusts doesn't exist on npm, so an attacker could claim the name
  4. BLOCK colros doesn't exist on npm · did you mean colors?
  5. ALLOW chalk@5.6.2 nothing risky added since the last version
  6. install stopped · the agent is told why
What happens when an AI agent tries to install a package that doesn't exist.

Why it matters

Most security tools only catch attacks that are already known.

In 2025, hijacked versions of popular packages and a self-spreading worm were installed for hours before anyone flagged them. Warden compares each new version with the one before it and flags anything risky it adds, so normal updates stay quiet.

Example: a hijacked package update Result: BLOCK
criticalNew code reads your secrets and sends data over the internet
highPublished 2 hours ago, before anyone could review it
highThe last version was verified by its publisher; this one isn't
highHooks into crypto wallets and web requests
mediumPublished by an account that didn't release the earlier versions

What you can do with it

Check packages before, during, and after a change.

Source-only until the next npm release.

  1. 01

    Before installing

    Check any package before it touches your machine.

    warden inspect express
  2. 02

    Pull requests

    Check every package a pull request adds, without running its code.

    warden review . --base main
  3. 03

    Security fixes

    Confirm a fix removed the vulnerability and the tests still pass.

    warden verify
  4. 04

    Proof

    Sign the results so reviewers can tell nothing was changed.

    warden attest

Works with your AI agent

One command protects every install your agent makes.

Warden checks installs before they run and tells the agent why it blocked one, so it can pick a safe package instead. Agents can also ask Warden directly before they choose a dependency.

warden agent-setup claude devin codex

Source-only until the next npm release.

Claude Code
pre-install check and built-in tools
Devin
pre-install check and built-in tools
Codex
built-in tools
0AI models, accounts, or cloud services needed
0lines of package code run while checking
3coding agents supported: Claude Code, Devin, and Codex

Good to know

Warden covers npm packages today. It flags what to review; it doesn't prove a package is malware. Read the guide →

New in Warden

Warden now checks packages before they install.

Stop a malicious package before it reaches your machine, your CI, or your AI agent. Source-only until the next npm release.

Read the guide