Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

supply-chain-risk-auditor

Skill by trailofbits

Audits a project's npm, PyPI and Go dependencies for supply-chain risk. It is for developers and security reviewers who need a dependency tree report before an engagement.

  • Score 92
  • 8.4k stars
  • CC-BY-SA-4.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install supply-chain-risk-auditor

Built from the published package, never by AI.

git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor ~/.claude/skills/supply-chain-risk-auditor

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install supply-chain-risk-auditor in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Audits a project's dependencies for supply-chain risk across npm, PyPI and Go. It runs two deterministic scripts, collect.py and render.py, that check version-matched advisories for direct dependencies and the full lockfile tree, abandoned or archived upstreams, npm publisher concentration, and install-time script execution.

The skill reads package-lock.json, npm-shrinkwrap.json, uv.lock and go 1.17+ go.mod files. It does not read yarn.lock, pnpm-lock.yaml or poetry.lock. It never installs, builds or executes anything, and it does not read dependency source. Criteria that cannot be assessed are reported with a reason rather than counted as clean. It is intended for teams reviewing a dependency tree before an engagement.

Written from the project's SKILL.md and checked against it.

What it can do

  • Advisory sweepChecks version-matched advisories for direct dependencies and the full lockfile tree.
  • Abandoned upstream checkFlags dependencies whose upstream repositories are abandoned or archived.
  • npm publisher concentrationMeasures how many npm publish rights holders a package has.
  • Install script detectionFlags dependencies that execute scripts at install time.
  • Risk reportRenders collected findings into a report.md and a findings.json artifact.
  • Replacement candidatesSuggests verified registry alternatives for abandoned or archived dependencies, labeled as judgment.

What you need

  • uv, to run the collect.py and render.py scripts
  • GitHub CLI (gh), authenticated, to avoid rate limits on repository criteria
  • Project manifests: package.json, pyproject.toml, requirements files or go.mod

Try asking

  • Audit the dependencies in this project for supply-chain risk.
  • Check the package-lock.json tree for known advisories and install scripts.
  • Review the dependency tree before our security engagement next week.

Good to know

  • Does not read yarn.lock, pnpm-lock.yaml or poetry.lock; versions fall back to pins or latest release.
  • Unauthenticated GitHub allows 60 requests per hour, so repository criteria may be unassessable.
  • PyPI publishes no maintainer ACL and Go has no registry for some criteria.
  • Does not perform license compliance, source scanning, or install and build checks.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/SKILL.md, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/collect.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/model.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/render.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/sources.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/test_collect.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/test_model.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/test_render.py, plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/scripts/test_sources.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Bash Glob Grep

  • SKILL.md7 KB
  • agents/openai.yaml252 B
  • assets/trail-of-bits-mark.svg3 KB
  • scripts/collect.py64 KB
  • scripts/model.py17 KB
Show all 13 files
  • scripts/pyproject.toml683 B
  • scripts/render.py34 KB
  • scripts/sources.py29 KB
  • scripts/test_collect.py37 KB
  • scripts/test_model.py8 KB
  • scripts/test_render.py14 KB
  • scripts/test_sources.py10 KB
  • scripts/uv.lock337 B

Alternatives to supply-chain-risk-auditor

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

supply-chain-risk-auditor: common questions

Which lockfiles does the supply chain risk auditor read?

It reads package-lock.json, npm-shrinkwrap.json, uv.lock and go 1.17+ go.mod files. yarn.lock, pnpm-lock.yaml and poetry.lock are not read, and the report says so when they are present.

Does it install or run my project's code?

No. The source states the audit works from manifests and lockfiles only and never installs, builds or executes anything.

Why do some dependency checks show as unassessable?

PyPI publishes no maintainer ACL and Go has no registry, so those criteria cannot be measured. Unauthenticated GitHub access can also limit repository criteria.

How do I install supply-chain-risk-auditor?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is supply-chain-risk-auditor free?

The code is published under the CC-BY-SA-4.0 licence. The service it connects to may have its own pricing.

Is supply-chain-risk-auditor safe to use?

It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to supply-chain-risk-auditor?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

supply-chain-risk-auditor Install

Add to stack

Loading.