Back to skills
SKILL.md
Supply Chain
ASecuritySoftware supply-chain review — compromised/malicious dependencies, typosquats, abandoned packages, lockfile/integrity review, and SBOM generation across npm, pip, Maven, NuGet, RubyGems, Go. Tier 1 (analysis/detection). Use when source, manifests, or lockfiles are available, or to assess third-party dependency risk.
- 16 stars
- 0 votes
- 0 copies
- 2 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill supply-chain --agent claude-codeAre you the author of Supply Chain?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-supply-chain)---
name: supply-chain
description: Software supply-chain review — compromised/malicious dependencies, typosquats, abandoned packages, lockfile/integrity review, and SBOM generation across npm, pip, Maven, NuGet, RubyGems, Go. Tier 1 (analysis/detection). Use when source, manifests, or lockfiles are available, or to assess third-party dependency risk.
---
# Supply-Chain Dependency Review (typosquats, malicious deps, SBOM)
Beyond "outdated": dependencies can be actively malicious, typosquatted, hijacked, or abandoned. This skill audits the dependency graph and lockfiles for compromise and generates an SBOM.
## Trigger phrases
`supply chain, malicious package, typosquat, compromised dependency, sbom, lockfile, package integrity, abandoned package, postinstall script`
## Method
1. **Gather manifests + lockfiles:** `package.json`/`package-lock.json`/`yarn.lock`/`pnpm-lock.yaml`, `requirements.txt`/`poetry.lock`/`Pipfile.lock`, `pom.xml`/`gradle.lockfile`, `*.csproj`/`packages.lock.json`, `Gemfile.lock`, `go.mod`/`go.sum`. From a live target: exposed `.git` (git-dumper), readable lockfiles, source maps (→ dep tree).
2. **Generate SBOM:** `syft dir:. -o cyclonedx-json`, `cdxgen`, or `npm sbom`. Consolidate into `./.zazy/sbom.md`.
3. **Scan for known-malicious / vulnerable:** `osv-scanner -r .`, `trivy fs .`, `grype dir:.`, `npm audit`, `pip-audit`, `snyk test`. OSV/GitHub Advisories flag packages pulled in known supply-chain incidents.
4. **Typosquat & confusion check:** diff each dependency name against the popular canonical name (`reqeusts` vs `requests`, `crossenv` vs `cross-env`, char-swaps, hyphen/underscore, scope spoof). Tools: `confused`, manual Levenshtein review. Also check **dependency confusion** (→ that skill) for internal names.
5. **Install-hook & integrity review:** inspect `postinstall`/`preinstall`/`prepare` scripts, pip `setup.py`/`sdist` code, gem extensions for network calls, obfuscation, encoded blobs, exfil. Verify lockfile integrity hashes present and `npm ci`/`--frozen-lockfile` used (no drift).
6. **Maintenance health:** last-publish date, single-maintainer, recently transferred ownership, archived/deprecated, unexpected maintainer change (hijack signal).
## Modern / rare techniques
- **Lockfile injection / poisoning:** attacker PR edits `resolved`/`integrity` or adds a transitive dep pointing at a malicious tarball — diff lockfile changes in PRs (→ `cicd-pipeline`).
- **Compromised maintainer / release** (e.g. event-stream, ua-parser-js, xz-style stealth backdoors): check for sudden post-install network behavior and version-specific advisories.
- **Starjacking / install-count inflation** and look-alike scoped packages.
- **Transitive-only malicious dep** — pin and review the full resolved tree, not just direct deps.
## Bypass / evasion
N/A (defensive analysis). For dynamic confirmation, install in an isolated sandbox VM with egress monitoring — never on the client's build host.
## Escalation / chaining
Malicious dep with code exec → `cicd-pipeline`/`cicd-secrets`; names → `dependency-confusion`; version CVEs → `vulnerable-components`/`retirejs`; secrets in deps → `source-code-review`.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP). syft/grype/trivy/osv-scanner, npm/pip-audit, confused, sandbox VM for behavioral check. See `zazy-orchestrator`.
## Verification (background, before reporting)
Corroborate a malicious/typosquat flag with the advisory or observed behavior (sandbox egress) before reporting; reproduce the detection. Report true positives only.
## Evidence
SBOM, flagged packages with reason (CVE/advisory/typosquat/hijack), install-hook snippets, lockfile integrity status. Remediation: pin + hash-lock deps (`npm ci`, hashes in requirements), remove/replace flagged packages, allow-list registries, review install scripts, enable SCA + lockfile-diff gates in CI, prefer scoped/verified publishers.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.