/amplihack:supply-chain-auditfrom amplihack
Audits software supply chain security across CI/CD pipelines, container images, and language ecosystems. Detects mutable dependency references, insecure CI patterns, credential exposure risks, and missing SBOM/SLSA controls.
Ships in amplihack. 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.
Read when SKILL.md points to them.
Auditing software supply chain security across CI/CD pipelines, container images, and
language package ecosystems. Produces structured findings with severity ratings,
file:line references, and actionable fix templates.
Before running the audit, check for missing external tools and offer to install them:
# Build once (from the amplihack-rs workspace root):
cargo build -p amplihack-supply-chain-audit --bin amplihack-supply-chain-audit
# List any missing external tools and their install options:
amplihack-supply-chain-audit --check-tools
--check-tools prints each missing tool, what it is used for, and the
platform-specific install commands. The audit itself is invoked the same way,
pointing the binary at the repository root:
# Full markdown report (default), scoped to the detected ecosystems:
amplihack-supply-chain-audit /path/to/repo --scope all
# Machine-readable output for tooling:
amplihack-supply-chain-audit /path/to/repo --scope all --json
The audit runs without these tools (offline/degraded mode) but produces fewer findings:
| Tool | What's lost without it |
|---|---|
gh | Cannot resolve action tags to SHAs via GitHub API |
crane | Cannot resolve container image digests |
syft | Cannot generate SBOMs (SPDX/CycloneDX) |
grype | Cannot scan for known CVEs |
cosign | Cannot verify image signatures or attestations |
Detect which dimensions apply before running checks:
| Signal | Ecosystem | Dimensions Triggered |
|---|---|---|
.github/workflows/*.yml | GitHub Actions | 1, 2, 3, 4 |
Dockerfile / docker-compose.yml | Containers | 5, 12 |
.github/workflows/ with secrets.* | Credentials | 6 |
*.csproj / NuGet.Config | .NET / NuGet | 7 |
requirements*.txt / pyproject.toml / setup.cfg | Python | 8 |
Cargo.toml / Cargo.lock | Rust | 9 |
package.json / package-lock.json / yarn.lock | Node.js | 10 |
go.mod / go.sum | Go | 11 |
Run all triggered dimensions. Report skipped dimensions explicitly.
| # | Name | What to Check |
|---|---|---|
| 1 | Action SHA pinning | uses: refs must be @<40-char-SHA> # vX.Y.Z |
| 2 | Workflow permissions | Top-level permissions: read-all; job-level minimal grants |
| 3 | Secret exposure | No secrets in run: echo/env; ACTIONS_STEP_DEBUG guard |
| 4 | Cache poisoning | actions/cache key collision; restore-keys breadth |
| # | Name | What to Check |
|---|---|---|
| 5 | Base image pinning | FROM image@sha256:<digest> not :latest or semver tag |
| 12 | Docker build chain | Multi-stage scratch/distroless final stage; non-root USER |
| # | Name | What to Check |
|---|---|---|
| 6 | OIDC vs long-lived secrets | Prefer id-token: write OIDC; verify subject constraints |
| # | Name | What to Check |
|---|---|---|
| 7 | NuGet lock & audit | RestoreLockedMode, authorized sources, NuGetAudit severity gate |
| # | Name | What to Check |
|---|---|---|
| 8 | Python dependency integrity | --require-hashes, --extra-index-url risks, typosquatting signals |
| # | Name | What to Check |
|---|---|---|
| 9 | Cargo supply chain | Cargo.lock committed, build.rs risk, [patch]/[replace] scope |
| # | Name | What to Check |
|---|---|---|
| 10 | Node.js integrity | npm ci not npm install, npx resolution, postinstall scripts |
See reference/go.md
| # | Name | What to Check |
|---|---|---|
| 11 | Go module integrity | go.sum present and committed, GONOSUMCHECK, replace directive scope |
# Detect active ecosystems
ls .github/workflows/*.yml 2>/dev/null && echo "GHA detected"
ls Dockerfile docker-compose.yml 2>/dev/null && echo "Containers detected"
ls requirements*.txt pyproject.toml 2>/dev/null && echo "Python detected"
ls package.json 2>/dev/null && echo "Node detected"
ls go.mod 2>/dev/null && echo "Go detected"
ls Cargo.toml 2>/dev/null && echo "Rust detected"
ls *.csproj 2>/dev/null && echo ".NET detected"
Record active dimensions. Skip and annotate inactive ones in the report.
Run dimension-specific checks from each reference file. Collect raw findings with:
file:line)Map findings to CVSS-aligned severity bands:
| Severity | CVSS Range | Examples |
|---|---|---|
| Critical | 9.0-10.0 | Unpin third-party action with write permissions + secret access |
| High | 7.0-8.9 | Mutable action ref; :latest container; long-lived secret with broad scope |
| Medium | 4.0-6.9 | Missing permissions: read-all; missing Cargo.lock commit |
| Info | 0.1-3.9 | Semver action ref for first-party org action; advisory-only NuGet finding |
Produce a structured markdown report:
## Supply Chain Audit Report
**Date**: YYYY-MM-DD
**Scope**: [list active ecosystems]
**Skipped**: [list inactive ecosystems with reason]
### Summary
| Severity | Count |
| -------- | ----- |
| Critical | N |
| High | N |
| Medium | N |
| Info | N |
### Findings
#### CRITICAL-001 · Dim 1 · Unpin third-party action
- **File**: `.github/workflows/release.yml:14`
- **Current**: `uses: actions/checkout@v4`
- **Expected**: `uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2`
- **Fix**: Look up SHA at https://github.com/actions/checkout/releases
### SLSA Readiness
[See reference/sbom-slsa.md for compliance table]
### Recommended Next Steps
1. Fix all Critical findings before next deployment
2. Delegate lock-file issues to `dependency-resolver` skill
3. Install SHA-pinning pre-commit hooks via `pre-commit-manager` skill
Order fixes:
dependency-resolverpre-commit-managerfile:line (e.g., .github/workflows/ci.yml:23)| Skill | When to Delegate |
|---|---|
dependency-resolver | Lock file conflicts, outdated transitive deps, version incompatibilities |
pre-commit-manager | Install SHA-pinning hooks, npm ci enforcement, go mod verify hooks |
cybersecurity-analyst | Runtime threat modeling, network exposure analysis, post-incident review |
silent-degradation-audit | CI reliability issues, flaky tests masking security regressions |
See reference/eval-scenarios.md for three graded scenarios:
gh api repos/{owner}/{repo}/git/ref/tags/{tag}dependency-resolver — lock file conflict resolutionpre-commit-manager — automated quality enforcement hookscybersecurity-analyst — runtime security and threat modelingsilent-degradation-audit — CI reliability and regression detectionreviewing-code — code and pull request reviewreference/actions.md (opens in a new tab)reference/containers.md (opens in a new tab)reference/contracts.md (opens in a new tab)reference/credentials.md (opens in a new tab)reference/dotnet.md (opens in a new tab)reference/eval-scenarios.md (opens in a new tab)reference/go.md (opens in a new tab)reference/node.md (opens in a new tab)reference/python.md (opens in a new tab)reference/rust.md (opens in a new tab)reference/sbom-slsa.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
supply-chain, ci-cd-security, dependency-audit, sbom, slsa, container-security
30 skills in this plugin
/agentic-workflow-firstStart new work as a deterministic workflow of agentic steps, prompts, and tools instead of code. Use when designing a feature, deciding how to build something, choosing code vs recipe, or asking "how should I structure this"./amplihack-expertComprehensive knowledge of amplihack framework architecture, patterns, and usage/code-atlasBuilds comprehensive, living code-atlases as multi-layer architecture documents derived from
code-first truth. Defaults to both Graphviz DOT and Mermaid. User can override to single format.
Language-agnostic (Go, TypeScript, Python, .NET, Rust, Java). Files issues with
'code-atlas-bughunt' label. Treats atlas-building as a multi-agent bug-hunting journey:
graph-form reasoning exposes structural bugs, route/DTO mismatches, orphaned env vars,
dead code paths, and stale documentation that linear review misses. Three-pass bug hunt
with per-journey PASS/FAIL/NEEDS_ATTENTION verdicts.
Use when: creating architecture documentation, investigating unfamiliar codebases,
hunting structural bugs, setting up CI/CD diagram refresh, or publishing to GitHub Pages/mkdocs.
npx claudepluginhub rysweet/amplihack-rs --plugin amplihackOther plugins' skills for the same job