supply-chain-audit
Skill2 starsChanged 8 months agoApache-2.0View on GitHub
Reviews software supply chain security — dependency vulnerabilities, lockfile pinning, SBOM generation, build reproducibility, base image hygiene, commit signing, secret scanning in history, and CI/CD pipeline integrity. Use when the user asks about "supply chain", "dependencies", "SBOM", "vulnerabilities", "CVEs", "dependency security", invokes /supply-chain-audit, or when the orchestrator delegates. Stack-agnostic, mode-aware, scope-tier-aware.
- Reads credentials
8 other projects use a version of this.
Adopted by
Most recently taken up by
- TheColliery/CoalMinetheir own version, first seen Oct 2, 2026
- mtarcure/claude-vibe-squadtheir own version, first seen Sep 19, 2026
- ulises-jeremias/agent-toolkittheir own version, first seen Aug 31, 2026
- crafter-station/skillstheir own version, first seen Aug 25, 2026
- michaelalber/ai-toolkittheir own version, first seen Jul 30, 2026
- rana/skillstheir own version, first seen Apr 1, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- mtarcure/claude-vibe-squad★ 162same name
- crafter-station/skills★ 111same name
- ulises-jeremias/agent-toolkit★ 18same name
- TheColliery/CoalMine★ 13same name
- Montimage/skills★ 9same name
- IsaacGemal/claude-skills★ 2same name
- michaelalber/ai-toolkit★ 2same name
- rana/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- accessibility-auditSkill
- ai-readinessSkill
- compliance-checkSkill
- data-protection-auditSkill
- observability-auditSkill
- production-readinessSkill
- release-readinessSkill
- reliability-auditSkill
- scalability-reviewSkill
- security-auditSkill
- test-coverageSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 66
Review findings: look at the last N weeks of audit output if available.
- Distinctive: line 85
If Docker / OCI images are used:
- Very specific: line 107
Pull-request workflows from forks: must not have write access or secrets.
- Distinctive: line 140
Auto-merge rules: only for patch updates with green tests.
- Distinctive: line 342
Do not auto-merge dependency upgrades even if tests pass — malicious deps publish with passing tests.
- Distinctive: line 343
Do not claim a dep is safe just because no CVE is published.
- Distinctive: line 344
Do not lower severity thresholds to "make CI pass".
- Very specific: line 345
Do not rely on npm audit/yarn audit alone — they miss known-malicious packages that haven't been CVE'd.
- Distinctive: line 346
Do not confuse "I ran the audit" with "there's nothing to fix" — audits produce a baseline, not a verdict.
- Very specific: line 347
Do not ignore abandoned deps — they're the ones most likely to be hijacked (see event-stream).
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Supply Chain Audit
You review the trust boundary between the project and everything it pulls in — packages, container base images, CI actions, build tools, commit signing, and the integrity of the path from source to deployed artifact.
Supply-chain incidents (event-stream, Codecov, SolarWinds, xz-utils) are often more damaging than application-level bugs because they bypass the application's own defenses.
Inputs
From orchestrator: scope_tier, stack_summary, gitnexus_indexed, deployment target.
Mode detection
- Plan mode — report supply-chain gaps with fix recommendations.
- Edit mode — apply low-risk config fixes (lockfile generation,
.npmrchardening, base image pinning by digest). Dependency upgrades require per-change confirmation — they're the highest-risk edits.
Thresholds by tier
| Tier | Lockfile | Vuln scanning | SBOM | Signing | CI hardening |
| prototype | required | advisory | optional | optional | basic |
| team | required + committed + CI-gated | required on PRs | recommended | commits signed by contributors | secrets in vault, pinned actions |
| scalable | required + reproducible install | required + policy | required on artifacts | required on artifacts + provenance | required — pinned actions by SHA, isolated runners, SLSA level ≥2 |
Review surface
1. Dependency manifests and lockfiles
Check per ecosystem:
- npm / pnpm / yarn —
package.jsonpresent?package-lock.json/pnpm-lock.yaml/yarn.lockcommitted?npm ciused in CI, notnpm install.- No
^/~in a published library's peer deps (too loose). overrides/resolutionsfor transitive security pins documented.
- Python —
pyproject.toml+ lockfile (poetry.lock,uv.lock,pdm.lock,pipenv.lock, orrequirements.txtwith hashes viapip-compile --generate-hashes).- Unpinned
requirements.txtwith only top-level packages → finding. --require-hashesat install time for scalable tier.
- Unpinned
- Go —
go.mod+go.sumcommitted.GOFLAGS=-mod=vendoror explicitvendor/if fully vendored. - Rust —
Cargo.lockcommitted (always for binaries, and for libs too at scalable tier). - Java — Maven
pom.xmlwith pinned versions (notLATEST,RELEASE, version ranges); considermaven-enforcer-pluginwithrequireUpperBoundDeps. Gradle:dependencyLocking. - Ruby —
Gemfile.lockcommitted. - .NET —
packages.lock.jsonwithRestorePackagesWithLockFile. - PHP —
composer.lockcommitted.
Find any dependency file without a lockfile → critical at team+ tier.
2. Vulnerability scanning
- Known-vulnerable dependencies: flag if no scanning is configured.
- GitHub Dependabot enabled with
dependabot.yml. npm audit/pnpm audit/yarn auditon CI.- Python:
pip-audit,safety. - Go:
govulncheckin CI. - Rust:
cargo audit. - Java: OWASP Dependency-Check, Snyk, Trivy.
- General:
trivy,grype,osv-scanner.
- GitHub Dependabot enabled with
- Policy: at team+ tier, CI should fail PRs introducing new high/critical vulns. At scalable tier, also fail on medium.
- Review findings: look at the last N weeks of audit output if available. Are findings being addressed or accumulating?
3. Transitive dependency risk
- Dependency tree size —
npm ls,pip-tree,cargo tree,mvn dependency:tree. An app with 5000 transitive deps is higher risk than one with 500. - Abandoned packages — check package last-publish date via registry metadata. Flag deps unmaintained > 2 years unless they're standard-library-level stable.
- Single-maintainer or low-popularity packages on critical paths (e.g. auth, crypto, payments) — supply-chain risk.
- Typosquatting / dependency confusion risk — internal package names that resemble public names;
.npmrc/pip.confregistry configs don't leak private dep names to public.
4. SBOM generation
- At team+ tier, recommend SBOM generation on build.
- At scalable tier, SBOM is required, ideally SPDX or CycloneDX format.
- Tools:
syft,cdxgen, language-native exporters. - SBOM stored as a release artifact, signed, and referenced from the deployment.
- Required by EU Cyber Resilience Act for products with digital elements (cross-reference compliance-check).
5. Container image hygiene
If Docker / OCI images are used:
- Base image pinned by digest, not tag (
alpine:latest→alpine@sha256:...). Tag-only pins are mutable. - Use minimal / distroless base images at scalable tier (
gcr.io/distroless/*,alpine,chainguard/*). - Multi-stage builds so build-time dependencies don't ship in the runtime image.
- Non-root user (
USER nonrootor UID > 0). .dockerignorepresent and excludes secrets,.git,node_moduleswhere appropriate.- No secrets baked in —
docker historycheck;ARGvalues,COPY .env, etc. - Minimal layers with known package sources — curl piped to bash → finding.
- Base image scanned:
trivy image,grype, ECR/GCR/etc. built-in scanners. - Signed images:
cosign sign, Sigstore, Docker Content Trust at scalable tier.
6. CI/CD pipeline integrity
For GitHub Actions / GitLab CI / CircleCI / Jenkins / Azure DevOps / etc.:
- Third-party actions pinned by SHA, not tag.
uses: actions/checkout@v4is vulnerable to tag hijack; useuses: actions/checkout@<40-char-sha>.- Grep
.github/workflows/*.ymlfor@v/@main/@masterpatterns → finding.
- Grep
- Minimal permissions —
permissions:block scoped per-job. Defaultcontents: read, elevate per-need. - Secrets scoped — production secrets only available to production jobs.
environment:protection rules. - No secrets echoed in logs — check for
echo "$SECRET"patterns. - Runners: self-hosted runners isolated per repo / per job? Ephemeral? Reusing a runner across jobs of different trust levels is a finding.
- Pull-request workflows from forks must not have write access or secrets. Use
pull_requestnotpull_request_targetunless you understand the trust model. - Branch protection enabled on main: required reviews, required status checks, no force-push, no direct commits.
- Workflow files require code review (can't bypass main-branch protection via workflow edits — GitHub has a setting for this).
7. Commit signing
At team+ tier recommended, scalable required:
- Commits signed with GPG / Sigstore (
gitsign) / SSH signing. - Branch protection requires signed commits.
- Tags (release tags) signed.
8. Secret scanning in history
- Secret scanning on the repo — GitHub secret scanning, GitLab secret detection,
gitleaks,trufflehog. - Run over the whole history, not just HEAD. Old commits with leaked secrets must have those secrets rotated (moving them in a new commit doesn't invalidate them — they're in history).
.gitleaks.tomlor equivalent config committed, excluding false-positive patterns.- Pre-commit / pre-push hooks at developer workstations at scalable tier.
9. Build reproducibility + provenance
At scalable tier:
- Reproducible builds — identical inputs produce bit-identical artifacts. Useful for verifying artifact integrity.
- SLSA (Supply-chain Levels for Software Artifacts) — aim for SLSA level ≥2.
- Build provenance attestation —
in-toto/ Sigstore provenance showing: what source commit, what builder, what dependencies, what outputs. - Artifact signing:
cosignfor containers,gpgfor tarballs, language-registry signing (npm provenance, PyPI attestations). - Reproducible install: CI installs only from lockfile; no
updatehappens during CI.
10. Dependency update discipline
- Automated update PRs via Dependabot / Renovate configured with a sane cadence.
- Group updates to reduce PR noise but not so aggressively that a single PR bundles 30 unrelated upgrades.
- Auto-merge rules only for patch updates with green tests; major updates reviewed manually.
- Lockfile-only updates (security-only, no feature updates) available as a mode.
11. Build tool + runtime pinning
- Language runtime pinned —
.nvmrc,.python-version,.tool-versions(asdf/mise),go.modgo directive,rust-toolchain.toml. - Build tool versions pinned — CI uses specific
node@,python@,go@versions not "latest". - Docker base image tags include version + digest.
12. Third-party script / asset inclusion
For frontend apps:
- Third-party scripts loaded from CDNs have SRI (subresource integrity) hashes.
- Self-host where feasible for privacy + supply-chain reasons.
- CSP (see security-audit) restricts script sources.
13. License compliance (operational, not legal)
- License inventory of dependencies (
license-checker,pip-licenses,go-licenses). - Policy excludes prohibited licenses (GPL in a closed-source product, for example).
- Attribution file generated for distribution.
Severity classification
| Severity | Meaning |
| critical | Active known-exploited vulnerability in a production dependency. No lockfile. Secrets in repo history with no rotation. CI secrets exposed to forks. |
| high | Critical CVE in dep. Unpinned third-party action with write access. No vulnerability scanning. Missing lockfile at team+ tier. |
| medium | Outdated dep with known vuln, no exploit public. Base image pinned by tag. SBOM missing at scalable tier. |
| low | Nice-to-have: commit signing, SLSA provenance, SRI on frontend. |
| info | Inventory observations. |
Output format
- id: SUPP-<NNN>
severity: ...
category: lockfile | vulnerabilities | transitive | sbom | container | ci-cd | signing | secret-scanning | provenance | licenses
title: ...
location: <file or stack-level>
description: |
<what, why, realistic supply-chain compromise scenario>
evidence: [...]
remediation:
plan_mode: |
<fix description>
edit_mode: |
<config diff / command to run>
references:
- <OWASP Top 10 for SCM / SLSA / vendor docs>
blocker_at_tier: [...]
cve_ids: [CVE-2024-XXXX] # if applicableDimension summary:
## Supply Chain Summary
Ecosystems detected: <list>
Lockfiles: <status per ecosystem>
Vulnerability scanning: <configured? how?>
Known vulns: <count by severity>
Container base images: <pinned? scanned?>
CI provider: <name>
Unpinned third-party actions: <count>
SBOM: <generated? format?>
Top 3 supply-chain risks:
1. ...Example findings
Example 1 — Third-party GitHub Action pinned by tag
- id: SUPP-003
severity: high
category: ci-cd
title: "12 third-party GitHub Actions pinned by tag, vulnerable to tag hijack"
location: ".github/workflows/*.yml"
description: |
Workflows reference third-party actions by mutable tag
(`actions/checkout@v4`, `actions/setup-node@v4`,
`some-vendor/deploy@main`). If the action's repo is compromised or
the tag is re-pointed, every subsequent CI run executes attacker
code with the repo's secrets in scope. The classic
tj-actions/changed-files precedent and multiple Codecov-style
incidents show tag-pinning is insufficient. GitHub recommends
pinning third-party actions by full SHA.
evidence:
- ".github/workflows/ci.yml:14: uses: actions/checkout@v4"
- ".github/workflows/release.yml:28: uses: some-vendor/deploy@main"
remediation:
plan_mode: |
Pin every third-party action to its current commit SHA, with the
human-readable tag as a trailing comment, e.g.
`uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1`.
Adopt a bot (dependabot or renovate) to propose SHA updates
alongside tag moves. Skip for GitHub-owned `actions/*` if policy
allows — but most orgs include them anyway.
edit_mode: |
Safe. Script lookup of current SHAs per action + apply across
workflows. Run a workflow after pinning to confirm identical
behavior.
references:
- "GitHub docs — Security hardening for GitHub Actions"
- "OpenSSF Scorecard — Pinned-Dependencies"
blocker_at_tier: [team, scalable]Example 2 — Docker base image pinned by mutable tag
- id: SUPP-009
severity: medium
category: container
title: "Dockerfile uses node:20-alpine — digest not pinned"
location: "Dockerfile:1"
description: |
`FROM node:20-alpine` pulls the current tag every build.
Registry-side the tag moves roughly weekly, which changes both
behavior and attack surface without a code change. Reproducible
builds require digest pinning. A further concern: image scans
done last week no longer apply to images built tomorrow.
evidence:
- |
# Dockerfile:1
FROM node:20-alpine
remediation:
plan_mode: |
1. Replace with `FROM node:20-alpine@sha256:<digest>` — look up
current digest via `docker buildx imagetools inspect`.
2. Automate refresh via renovate with a `docker` manager that
PRs digest updates alongside announcements.
3. Re-scan (Trivy) on every digest update.
edit_mode: |
Safe. Apply with current digest; rebuild and confirm image
boots.
references:
- "SLSA L3 — Hermetic, reproducible builds"
blocker_at_tier: [team, scalable]Example 3 — Known critical CVE in production dependency
- id: SUPP-017
severity: critical
category: vulnerabilities
title: "lodash 4.17.15 — CVE-2021-23337 (command injection) in production dep"
location: "package-lock.json"
description: |
`lodash` is a direct dependency at 4.17.15, affected by
CVE-2021-23337 (command injection via the `template` function).
The app's `src/notifications/templates.ts` does pass user content
through `_.template` with a restricted allowlist, but the
allowlist is incomplete. Even if the current call site is safe,
leaving a direct lodash below the patch threshold means any
future call could become a vector without review catching it.
evidence:
- "package-lock.json — lodash 4.17.15"
- "npm audit → 'High — Command Injection in lodash' (advisory GHSA-35jh-r3h4-6jhm)"
- "src/notifications/templates.ts:22 uses _.template on user-derived template strings"
remediation:
plan_mode: |
1. Upgrade lodash to 4.17.21+ (minor upgrade, mostly
backward-compatible).
2. Add a regression test covering the template-rendering path.
3. Configure CI to fail on new high/critical vulns (`npm audit
--audit-level=high`) and wire Dependabot grouped PRs.
edit_mode: |
Safe. Bump via `npm update lodash`; review `npm ls lodash` to
ensure no resolver stuck on old version.
references:
- "GHSA-35jh-r3h4-6jhm"
- "CVE-2021-23337"
cve_ids: [CVE-2021-23337]
blocker_at_tier: [prototype, team, scalable]Edit-mode remediation
Safe:
- Generating / committing lockfile from current manifest state.
- Pinning third-party actions to SHA in workflow files.
- Adding a
dependabot.ymlorrenovate.json. - Adding vulnerability scanning steps to CI.
- Adding
.dockerignoreentries. - Adding SRI to known third-party frontend scripts.
Require per-change confirmation:
- Dependency version upgrades (they can break the build).
- Removing dependencies (may affect behavior).
- Changing base images (different defaults, different behaviors).
- Tightening CI permissions (may break existing workflows).
- Enabling signed-commits requirement on branch protection (blocks contributors without keys).
- Anything that rotates or replaces CI secrets.
Do not
- Do not auto-merge dependency upgrades even if tests pass — malicious deps publish with passing tests.
- Do not claim a dep is safe just because no CVE is published. Absence of published vulns ≠ security.
- Do not lower severity thresholds to "make CI pass". The fix is to address vulns, not silence them.
- Do not rely on
npm audit/yarn auditalone — they miss known-malicious packages that haven't been CVE'd. - Do not confuse "I ran the audit" with "there's nothing to fix" — audits produce a baseline, not a verdict.
- Do not ignore abandoned deps — they're the ones most likely to be hijacked (see
event-stream).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

