From skillry-security
Use when you need to review dependencies, scripts, lockfiles, package provenance, and install-time risks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skillry-security:50-dependency-supply-chain-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit the project's package dependency graph for known CVEs, suspicious install-time scripts, lockfile integrity issues, typosquatting candidates, outdated packages with breaking changes, and transitive dependency risks. Produce a prioritized remediation plan.
Audit the project's package dependency graph for known CVEs, suspicious install-time scripts, lockfile integrity issues, typosquatting candidates, outdated packages with breaking changes, and transitive dependency risks. Produce a prioritized remediation plan.
npm audit, yarn audit, or pip-audit has flagged vulnerabilities and you need a structured remediation plan.package-lock.json, yarn.lock, poetry.lock) is missing or was recently deleted and regenerated.Confirm lockfile presence and integrity. Check that package-lock.json / yarn.lock exists and is committed. A missing lockfile means installs are non-deterministic. Verify it was generated with npm ci semantics (resolves from lock, not from package.json ranges).
Run audit non-destructively. Execute npm audit --json or yarn audit --json and capture output. Do not run npm audit fix --force without reviewing the proposed changes.
Classify CVEs by exploitability. For each finding, determine:
Inspect install-time scripts. For every dependency with postinstall, prepare, preinstall, or install scripts in its package.json, read what the script does. Flag any that download binaries, execute curl/wget, or modify system files.
Check for typosquatting candidates. Compare package names against their intended counterparts: lodash vs lod4sh, express vs expres. Pay special attention to recently added packages with few downloads.
Audit transitive dependency pinning. Check if critical transitive packages are pinned via overrides (npm) or resolutions (yarn). Missing overrides for a vulnerable transitive dep means audit fix cannot resolve it without manual intervention.
Verify npm ci is used in CI, not npm install. npm install can silently update the lockfile; npm ci fails if the lockfile is out of sync, ensuring reproducibility.
Check for outdated major versions. Run npm outdated and flag packages more than one major version behind, especially those with known breaking changes or end-of-life status (Node.js 16, webpack 4, etc.).
Review private registry configuration. If .npmrc configures a private registry, confirm it falls back to the public registry only for scoped packages (@company/*), not for all packages, to prevent dependency confusion attacks.
Document approved exceptions. For CVEs marked as not exploitable, create or update a npm-audit-exceptions.json or similar file with justification, reviewer, and review date.
npm ci / yarn --frozen-lockfile.npm audit returns zero critical or high findings, or all findings have documented exceptions.overrides/resolutions where direct upgrade is not possible.npm ci, not npm install..npmrc scopes private registry to @company/* only.package.json ranges are not * or >=0.0.0 for production dependencies.npm install in CI: lockfile can mutate between runs; always use npm ci.devDependencies promoted to production: require() in application code pulling a dev-only package that is not in dependencies.--legacy-peer-deps flag in CI: silently installs incorrect peer versions; treat as a warning signal for outdated dep graph.@acme/utils can be published by anyone if the org namespace is not claimed.puppeteer and cypress download large binaries at install; verify checksums and consider vendoring or caching.npm audit checks node_modules, but client-side bundles may include vulnerable code that audit does not flag if the package is not in the dep tree directly.## Dependency Supply Chain Review
### Critical CVEs requiring immediate fix
| Package | Installed | Safe version | CVE | Exploitable in this project |
|---------|-----------|-------------|-----|----------------------------|
### Suspicious install-time scripts
- package@version: script content summary, risk level.
### Outdated packages (1+ major behind)
| Package | Current | Latest | EOL? |
|---------|---------|--------|------|
### Lockfile status
- Present: yes/no. Generator: npm/yarn. CI uses npm ci: yes/no.
### Audit exceptions (not exploitable)
| CVE | Package | Reason | Reviewer | Date |
### Recommended next commands
1. npm audit fix (safe upgrades only — review diff before committing)
2. ...
npm audit --json (read-only) only. Do not run npm audit fix --force, npm install, or any script that modifies node_modules or the lockfile without explicit user approval..npmrc auth values.npx claudepluginhub fluxonlab/skillry --plugin skillry-securityProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.