pentest-supply-chain
Software supply chain security — dependency confusion, CI/CD pipeline attacks, lockfile integrity, and build artifact verification.
How do I install this agent skill?
npx skills add https://github.com/jd-opensource/joysafeter --skill pentest-supply-chainIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a professional framework for auditing software supply chain security and is generally safe. The only identified concern is the inherent risk of indirect prompt injection, as the agent is instructed to process and analyze untrusted repository files like package.json or CI/CD workflow configurations without explicit sanitization or boundary markers.
- Socketwarn
1 alert: gptSecurity
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
3/3 files flagged
What does this agent skill do?
Pentest Supply Chain
Purpose
Supply chain attacks (SolarWinds, Log4Shell, xz-utils) are the fastest-growing threat category. Shannon explicitly excludes "vulnerable third-party libraries." MITRE ATT&CK T1195 has zero coverage in any existing skill.
Prerequisites
Authorization Requirements
- Written authorization with supply chain testing scope
- Repository access for dependency and CI/CD analysis
- Registry awareness — confirm which private registries are in use
- Build system access for pipeline review (if white-box)
Environment Setup
- Snyk CLI for dependency vulnerability scanning
- npm audit / pip-audit for ecosystem-specific checks
- Trivy for container and filesystem scanning
- socket.dev for dependency risk analysis
Core Workflow
- Dependency Audit: Analyze package.json/requirements.txt/go.mod for known vulnerable versions, unmaintained packages, suspicious dependencies.
- Dependency Confusion: Check if internal package names can be claimed on public registries (npm, PyPI). Test namespace squatting.
- CI/CD Pipeline Security: Review GitHub Actions/GitLab CI for injection via PR titles/branch names, secrets in logs, unpinned action versions, runner escape.
- Build Artifact Integrity: Verify signatures on containers/packages, check for unsigned artifacts, test image tag mutability.
- Lockfile Integrity: Detect lockfile injection (manipulated resolved URLs), verify lockfile-to-manifest consistency.
- Install Script Abuse: Identify packages with install hooks executing arbitrary code, test typosquatting candidates.
- SBOM Generation: Generate Software Bill of Materials and map transitive dependency risk with CVE correlation.
Tool Categories
| Category | Tools | Purpose |
|---|---|---|
| Dependency Scanning | Snyk, npm audit, pip-audit | Known CVE detection |
| Container Scanning | Trivy, Grype | Image vulnerability analysis |
| Dependency Risk | socket.dev, Semgrep | Behavioral risk analysis |
| CI/CD Review | custom scripts, actionlint | Pipeline security audit |
| SBOM | syft, cyclonedx-cli | Bill of materials generation |
References
references/tools.md- Tool function signatures and parametersreferences/workflows.md- Attack pattern definitions and test vectors
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/jd-opensource/joysafeter/pentest-supply-chain">View pentest-supply-chain on skillZs</a>