supply-chain-forensics
БесплатноБез исполняемых скриптовНе проверенSBOM analysis, build pipeline forensics, and dependency verification covering package integrity, build reproducibility, and CI/CD pipeline tampering
от jmagly★ 233 звезды на GitHubОб этом скилле
supply-chain-forensics
Investigates software supply chain compromise across three vectors: dependency integrity (packages and libraries), build pipeline tampering (CI/CD systems and build scripts), and SBOM-based composition analysis. Maps findings to SLSA (Supply-chain Levels for Software Artifacts) and MITRE ATT&CK techniques for supply chain attacks.
Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "SBOM" → Software Bill of Materials analysis
- "build pipeline audit" → supply chain security review
- "dependency confusion" → supply chain attack vector
Purpose
Supply chain attacks compromise software before it reaches users — through malicious packages, tampered build scripts, or poisoned CI/CD pipelines. These attacks are difficult to detect because the delivered artifact may appear legitimate. This skill applies systematic verification of components and build processes to identify tampering.
Behavior
When triggered, this skill:
Identify project type and package ecosystem:
- Detect ecosystems from lock files and manifests:
package-lock.json,yarn.lock,Cargo.lock,Pipfile.lock,go.sum,Gemfile.lock,pom.xml,build.gradle - Record all detected ecosystems for targeted analysis
- Identify package manager in use: npm, pip, cargo, go mod, gem, maven, gradle
- Detect ecosystems from lock files and manifests:
SBOM generation and analysis:
- Generate SBOM if not present:
- npm/Node:
npx @cyclonedx/cyclonedx-npm --output-file sbom.json - Python:
cyclonedx-bom -r -o sbom.json - Go:
cyclonedx-gomod mod -json -o sbom.json
- npm/Node:
- If SBOM already exists, validate schema compliance (CycloneDX or SPDX)
- Count total components, direct vs transitive dependencies
- Flag: components with no version pinning, components with no identified license, components with known CVEs (cross-reference against OSV.dev if network available)
- Generate SBOM if not present:
Dependency integrity verification:
- npm: compare
package-lock.jsonintegrity(sha512) fields against registry-published hashesnpm audit --json 2>/dev/null | jq '.vulnerabilities | keys[]' - pip: verify hashes in
Pipfile.lockagainst PyPI:pip hash --algorithm sha256 <package>.whl - Go: verify
go.sumentries against module proxy checksums:go mod verify - Cargo:
cargo verify-projectand checkCargo.lockhash fields - Flag any dependency where the recorded hash does not match the current registry value (typosquatting or package substitution indicator)
- npm: compare
Typosquatting and dependency confusion detection:
- Check for packages with names similar to popular packages (Levenshtein distance <= 2)
- Check for internal package names that also exist on public registries (dependency confusion vector)
- Flag packages with very high version numbers (confusion attack often uses high semver to win resolution)
- Flag packages published by single-user accounts with no prior history
Build script analysis:
- Locate build scripts:
Makefile,build.sh,.github/workflows/,.gitlab-ci.yml,Jenkinsfile,azure-pipelines.yml,buildkite.yml - Scan for: inline base64-encoded payloads,
curl | shpatterns, outbound network calls during buildgrep -rE 'curl.*(sh|bash)|wget.*sh|base64.*decode|eval.*\$\(' .github/workflows/ - Check for pinned action versions (SHA vs tag): unpinned tags can be silently replaced
- Identify steps that write to artifact directories after the build verification step
- Locate build scripts:
CI/CD pipeline tampering indicators:
- Compare current workflow files against git history:
git log --oneline -- .github/workflows/ - Identify workflow changes made by accounts other than core maintainers
- Check for workflow files added in dependency branches or PRs from forks with write access
- Review secrets usage: identify workflows that access secrets but are triggerable by external contributors
- Flag
pull_request_targettriggers with checkout of untrusted code — common privilege escalation vector
- Compare current workflow files against git history:
Build reproducibility check:
- Identify artifacts for which the build is declared reproducible
- For npm packages: use
reprotestor manual rebuild and hash comparison - Check for embedded timestamps, random salts, or non-deterministic ordering in build output
- Compare artifact hash against published hash in package registry
- Record: reproducibility claim, verification result, variance source if not reproducible
SLSA level assessment:
- Level 1: Build process is scripted (automated, not manual)
- Level 2: Build service generates provenance; source is version-controlled
- Level 3: Build runs in an isolated environment; provenance is signed
- Level 4: Reproducible builds; two-party review for all changes
- Report achieved SLSA level and gaps to next level
**
Установить supply-chain-forensics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteGlobGrepFAQ
Что делает скилл supply-chain-forensics?
SBOM analysis, build pipeline forensics, and dependency verification covering package integrity, build reproducibility, and CI/CD pipeline tampering
Как установить скилл supply-chain-forensics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл supply-chain-forensics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic