resources/skills/x-audit-supply-chain/SKILL.md
Supply-chain audit: maintainer risk, typosquatting, EPSS, SLSA; SARIF + report.
npx skillsauth add edercnj/claude-environment x-audit-supply-chainInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Performs advanced supply chain security analysis for {{PROJECT_NAME}} that complements (does NOT replace) x-audit-dependencies. While x-audit-dependencies focuses on known CVEs, outdated versions, and license compliance, this skill identifies deeper supply chain risks: single-maintainer dependencies, typosquatting suspects, phantom dependencies, stale packages, EPSS exploit prediction, and SLSA integrity assessment.
| Capability | x-audit-dependencies | x-audit-supply-chain | |------------|-------------------|----------------------| | Known CVEs | Yes | No (defers to x-audit-dependencies) | | Outdated versions | Yes | No (defers to x-audit-dependencies) | | License compliance | Yes | Extends with copyleft risk scoring | | SBOM generation | Yes (CycloneDX) | No (defers to x-audit-dependencies) | | Maintainer risk | No | Yes (bus factor analysis) | | Typosquatting | No | Yes (Levenshtein distance) | | Phantom dependencies | No | Yes (AST scan vs manifest diff) | | Dependency age | No | Yes (registry metadata) | | EPSS scoring | No | Yes (FIRST.org API) | | SLSA assessment | No | Yes (provenance verification) | | Risk scoring | Basic (severity only) | Multi-dimensional (5 weighted factors) |
Both skills can be executed independently. Results from both feed into the security dashboard.
/x-audit-supply-chain — full supply chain audit (all 6 capabilities)/x-audit-supply-chain --depth deep — deep analysis including transitive dependencies/x-audit-supply-chain --focus maintainer — maintainer risk analysis only/x-audit-supply-chain --focus typosquatting — typosquatting detection only/x-audit-supply-chain --focus phantom — phantom dependency detection only/x-audit-supply-chain --focus age — dependency age analysis only/x-audit-supply-chain --focus epss — EPSS exploit prediction only/x-audit-supply-chain --focus slsa — SLSA level assessment only/x-audit-supply-chain --risk-threshold 50 — filter findings below score 50/x-audit-supply-chain --include-dev-deps — include dev dependencies| Parameter | Type | Default | Validation | Description |
|-----------|------|---------|------------|-------------|
| --depth | String | shallow | enum: shallow, deep | shallow = direct deps only; deep = includes transitive |
| --include-dev-deps | boolean | false | — | Include development dependencies in analysis |
| --risk-threshold | int | 0 | 0-100 | Exclude findings with risk score below this value |
| --focus | String | all | enum: all, maintainer, typosquatting, phantom, age, epss, slsa | Analyze specific risk category only |
| Artifact | Path |
|----------|------|
| SARIF report | results/audits/supply-chain-audit-YYYY-MM-DD.sarif.json |
| Markdown report | results/audits/supply-chain-audit-YYYY-MM-DD.md |
| Overall score | 0-100 with grade A..F |
| Findings | Per-rule (SCA-MAINT-001, SCA-TYPO-001, etc.) with severity + recommendation |
1. DETECT -> Parse manifest per build tool ({{BUILD_TOOL}})
2. RESOLVE -> Build dependency graph (direct + transitive when --depth=deep)
3. ANALYZE -> 6 capabilities: Maintainer / Typosquatting / Phantom / Age / EPSS / SLSA
4. SCORE -> Weighted formula (CVE 40% / Depth 20% / Maintainer 15% / License 15% / Popularity 10%)
5. FILTER -> Apply --focus, --risk-threshold, --include-dev-deps, --depth
6. REPORT -> SARIF 2.1.0 + Markdown
Per-stack manifest/graph commands, 6 analysis capabilities with scoring rules, registry API endpoints, severity classification, and report templates in references/full-protocol.md:
npm ls --all, mvn dependency:tree, cargo tree, etc.).SCA-{MAINT,TYPO,PHANTOM,AGE,EPSS,SLSA}-NNN).| Scenario | Action | |----------|--------| | Registry API unavailable | Skip that capability, continue with others, note in report | | No manifest file found | Report error and exit | | No dependencies declared | Report score 100, grade A, zero findings | | EPSS API unavailable | Skip EPSS scoring, continue with other capabilities | | AST scan fails for language | Skip phantom detection, note unsupported language | | Rate limited by registry | Implement exponential backoff, partial results if timeout |
| Skill | Relationship | Context |
|-------|-------------|---------|
| x-audit-dependencies | complementary | Handles CVEs, outdated versions, licenses, and SBOM generation |
| x-generate-security-dashboard | reads | Dashboard aggregates results from this skill |
| x-generate-ci | called-by | Security pipeline may invoke supply chain audit |
| Pack | File | Purpose |
|------|------|---------|
| security | .claude/knowledge/security/sarif-template.md | SARIF 2.1.0 output format |
| security | .claude/knowledge/security/security-scoring.md | Scoring model and grade scale |
| security | .claude/knowledge/security/supply-chain-hardening.md | SLSA framework and hardening patterns |
| security | .claude/knowledge/security/sbom-generation-guide.md | SBOM format reference |
Minimum viable contract above. Detailed per-stack manifest/graph commands, 6 analysis capabilities (Maintainer/Typosquatting/Phantom/Age/EPSS/SLSA) with registry API endpoints and scoring rules, weighted risk formula, SARIF schema with 6 rule IDs, and full Markdown report template live in references/full-protocol.md per ADR-0012 (skill body slim-by-default).
development
Documentation freshness gate: validates 6 dimensions (readme, api, adr, etc.) per PR.
testing
Conditional dep-policy gate: CVEs, licenses, versions, freshness; SARIF + report.
documentation
Incrementally updates the service or system architecture document; never regenerative.
development
Scans code and git history for leaked credentials, API keys, and tokens; SARIF output.