/security-engineering:npm-supply-chain-auditfrom security-engineering
Audits npm projects for supply-chain exposure: lifecycle scripts, Git dependency prepare hooks, release-age gaps, publish-token exposure, trusted publishing, and signed releases.
Ships in security-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when reviewing a JavaScript or TypeScript repository for install-time malware exposure, compromised npm maintainer risk, or CI publish-path abuse.
Search manifests and lockfiles for exotic sources:
rg -n '"(git\\+|git://|github:|file:|link:)|https?://[^"]+\\.(tgz|tar\\.gz)' package.json package-lock.json
Findings to escalate:
github: or git+ dependencies, especially in
optionalDependencies.file: or link: sources outside deliberate local workspace
development.Run the known-affected package feed scan as a separate hard gate:
npm run lint:affected-packages
AIWG_AFFECTED_PACKAGES_CSV=/mnt/ops/users/roctinam/Downloads/22-packages.csv npm run lint:affected-packages
AIWG_AFFECTED_PACKAGES_CSV=https://gist.githubusercontent.com/<user>/<gist-id>/raw/22-packages.csv npm run lint:affected-packages
Treat exact package/version hits as incident evidence. Preserve the package name, version, published timestamp, detected timestamp range, and feed source URL/path in the finding.
Inspect root package scripts and nested package manifests:
rg -n '"(preinstall|install|postinstall|prepare)"' package.json package-lock.json .
Treat install-time scripts as code execution on every developer machine and CI runner. Remove them unless the package cannot function without them. If one must remain, document the exact reason and what it can access.
Check for .npmrc:
min-release-age=7
Confirm contributors and lockfile-changing CI jobs use npm 11.5+. Use 10 days or higher for release-prep dependency churn and security- sensitive branches.
Review release workflows for:
permissions: id-token: write scoped only to the job that publishes.For packages users install from a registry, require:
The verifier docs should avoid commands that run lifecycle scripts while
checking an artifact. Prefer npm install --package-lock-only --ignore-scripts <pkg>@<version> followed by npm audit signatures.
If a known malicious version was installed or a suspicious lifecycle script ran, assume secrets reachable from that environment are exposed. Rotate npm tokens, GitHub/Gitea tokens, cloud credentials, Kubernetes service account tokens, Vault tokens, and deployment secrets. Then audit recent publishes and workflow runs. If the affected-package feed hit a CI runner or workstation cache, quarantine that cache before reuse.
Lead with findings, ordered by severity:
## Findings
- CRITICAL: <file:line> <risk> <fix>
- HIGH: <file:line> <risk> <fix>
## Clean Checks
- No Git dependency sources found.
- No install lifecycle scripts found.
## Follow-up Issues
- <title>, <acceptance criteria>
min-release-age: https://docs.npmjs.com/cli/v11/using-npm/config#min-release-ageWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npm-security, supply-chain, dependency-audit, publish-security
28 skills in this plugin
/auth-factor-designDecision aid for authentication factor architecture — have/know/are mapping, coercion resistance, FIDO2 PIN/UV policy, and PRF hot-path anti-patterns./banned-api-auditScan source code for banned APIs/forbidden functions per project banlist; report violations with paths, line numbers, and recommended replacements/binary-blob-auditScan tracked repository files for committed binary blobs and report reviewability/provenance exceptions/bun-release-age-gateConfigure Bun's install.minimumReleaseAge gate (7-day default, 10-day high-sensitivity) for JavaScript projects on Bun. Includes Corepack-equivalent version detection and lockfile-caveat warning./cargo-supply-chain-auditAudit Rust/Cargo crates for supply-chain exposure: crates.io metadata + checksum verification against Cargo.lock, .crate tarball hash and .cargo_vcs_info.json provenance, previous-vs-patched .crate source diff, Cargo.toml dependency + build-script review, cargo audit / cargo deny / cargo vet trust policy, and publisher / trusted-publishing / yank / release-anomaly checks./chain-of-trust-designDecision aid for bootstrap and verification chains — forces the 'what authenticates the authenticator' question; patterns for signed bootstrap, measured boot, recovery.npx claudepluginhub jmagly/aiwg --plugin security-engineeringOther plugins' skills for the same job