# Supply chain audit

> Supply chain audit is an open-source agent skill for security. Read-only scan of a developer machine for known npm and PyPI supply-chain malware. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/crafter-station/skills/tree/main/skills/supply-chain-audit
- **Repository:** https://github.com/crafter-station/skills
- **GitHub stars:** 115
- **License:** MIT
- **Skill name:** supply-chain-audit
- **Collection:** https://github.com/crafter-station/skills
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill runs a read-only forensic check of a developer machine for indicators of compromise from recent npm and PyPI supply-chain attacks. It looks for persistence artifacts such as LaunchAgents, systemd units, Windows Run keys and dropper files, searches for known payload filenames and hashes, and flags compromised package versions found in node_modules under the project roots the user chooses.

The scanner works in phases. Persistence and payload checks run first, followed by package version and lockfile inspection, a time-window check for files written during published attack periods, and a review of project repositories for planted artifacts and forged commit authors in git history. The IOC list is kept in a versioned JSON file so new campaigns can be added without changing the skill itself.

Results are reported as a PASS or FAIL verdict with an IOC checklist, an inventory of packages from affected scopes marked for review rather than failure, and a phase summary. When compromise signals appear, the output starts with a warning not to revoke access tokens until the user has checked token activity from a clean machine. When the host is clean, it recommends a minimum release age setting for package managers. Expects bash and standard Unix tools such as find, grep, jq, shasum and git.

## When your agent uses it

> Read-only audit of a developer machine for npm/PyPI supply-chain compromise. Checks for known IOCs from the 2025-2026 wave — Shai-Hulud 2.0 (Nov 2025), Mini Shai-Hulud / TeamPCP (May 2026), Axios DPRK (Mar 2026), Shai-Hulud 3.0 / keyv-cacheable (Aug 2026), and any future campaigns added to the IOC pack. Scans persistence artifacts (LaunchAgent / systemd unit / Windows Run key / gh-token-monitor / .claude and .vscode droppers), payload files (router_init.js, setup_bun.js, bun_environment.js, Math_Symbol.js, math_init.js), compromised package versions in every node_modules under the user's project roots, C2 / typosquat domain strings (git-tanstack.com, api.masscan.cloud, sfrclak.com, getsession.org, npm-cache.com), malicious commit hashes (79ac49ee), payload SHA256s, optionalDependencies pointing at git refs, and files written during the published attack windows. Produces a PASS/FAIL verdict, IOC checklist, at-risk package list, phase summary, and 48h bake-period remediation. Use this skill whenever the user as

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/crafter-station/skills/tree/HEAD/skills/supply-chain-audit)
- [No network calls found in its scripts](https://github.com/crafter-station/skills/tree/HEAD/skills/supply-chain-audit)
- [License: MIT](https://github.com/crafter-station/skills/tree/HEAD/skills/supply-chain-audit)

## Features

- **Persistence artifact checks:** Looks for LaunchAgents, systemd units, Windows Run keys and dropper files that malware leaves to survive reboots.
- **Payload and hash matching:** Searches for known payload filenames, SHA256 hashes, and command-and-control or typosquat domain strings.
- **Compromised package detection:** Checks node_modules under project roots for known malicious package versions and git-ref optional dependencies.
- **Attack window timeline:** Flags files written during published attack periods, which indicates whether the host was exposed.
- **Repository and git history review:** Scans project repos for planted artifacts and commits authored by forged identities.
- **Remediation guidance:** Produces a verdict with next steps, including token handling order and a 48-hour release-age setting.

## Good for

- Check whether my machine was affected by a recent npm supply-chain attack
- Scan my project folders for compromised package versions
- Verify a coworker's developer machine after a security disclosure
- Review git history for commits from forged author identities
- Set up a 48-hour minimum package release age after a clean scan

## Install

### Claude Code

This skill ships in the `stable` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add crafter-station/skills
/plugin install stable@crafter-station-skills
```

Or copy only this skill to `~/.claude/skills/supply-chain-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/supply-chain-audit &&
cp -R "$tmp/skills/supply-chain-audit" ~/.claude/skills/supply-chain-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/supply-chain-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/supply-chain-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/supply-chain-audit &&
cp -R "$tmp/skills/supply-chain-audit" ~/.agents/skills/supply-chain-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/supply-chain-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/supply-chain-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/supply-chain-audit &&
cp -R "$tmp/skills/supply-chain-audit" ~/.cursor/skills/supply-chain-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/supply-chain-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/crafter-station/skills.git --path skills/supply-chain-audit
```

Or copy the folder to `~/.gemini/skills/supply-chain-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/supply-chain-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/supply-chain-audit &&
cp -R "$tmp/skills/supply-chain-audit" ~/.copilot/skills/supply-chain-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/supply-chain-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/crafter-station/skills.git
```

Then copy `skills/skills/supply-chain-audit` into your agent's skills folder as `supply-chain-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It runs a bash scanner script using standard tools such as find, grep, jq, shasum and git, and it does not modify files on the target machine.

### Does Supply chain audit change anything on my machine?

No. The skill is read-only and writes only to a temporary workdir under /tmp, and it avoids reading credential files and running package installs.

### Why does a package show as REVIEW instead of FAIL?

Having a package from an affected scope installed does not prove exposure. Only confirmed signals such as persistence artifacts, payload matches or time-window hits produce a FAIL.

### How are new campaigns added?

New campaigns are appended to the iocs.json file, and the scanner picks them up without changes to the skill body.

### How do I install Supply chain audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/supply-chain-audit to use it in all your projects, or to .claude/skills/supply-chain-audit in one project. Or install the stable plugin, which includes it: /plugin marketplace add crafter-station/skills, then /plugin install stable@crafter-station-skills.

### Does Supply chain audit run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Supply chain audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Supply chain audit?

The closest alternatives to Supply chain audit are Supply chain audit, Supply chain risk auditor, Skill scanner, Source code scanning and Dependency health triage.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Supply chain audit](https://ai-powered.com/skills/supply-chain-audit): Supply chain audit is an open-source agent skill for security.
- [Supply chain risk auditor](https://ai-powered.com/skills/supply-chain-risk-auditor): Supply chain risk auditor is an open-source agent skill for security.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.
- [Source code scanning](https://ai-powered.com/skills/source-code-scanning): Source code scanning is an open-source agent skill for security.
- [Dependency health triage](https://ai-powered.com/skills/dependency-health-triage): Dependency health triage is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Gha security review](https://ai-powered.com/skills/gha-security-review): Gha security review is an open-source agent skill for security.
- [Pre audit threat model](https://ai-powered.com/skills/pre-audit-threat-model): Pre audit threat model is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/supply-chain-audit-crafter-station
