agentleFS
jd-opensourcejd-opensource/JoySafeter/skills/pentest-supply-chain/SKILL.md

pentest-supply-chain

Skill312 starsChanged 10 months agoApache-2.0View on GitHub

Software supply chain security — dependency confusion, CI/CD pipeline attacks, lockfile integrity, and build artifact verification.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Dependency Confusion: Check if internal package names can be claimed on public registries (npm, PyPI).

    line 27
  2. Distinctive:

    Build Artifact Integrity: Verify signatures on containers/packages, check for unsigned artifacts, test image tag mutability.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Dependency Audit: Analyze package.json/requirements.txt/go.mod for known vulnerable versions, unmaintained packages, suspicious dependencies.
  2. Dependency Confusion: Check if internal package names can be claimed on public registries (npm, PyPI). Test namespace squatting.
  3. CI/CD Pipeline Security: Review GitHub Actions/GitLab CI for injection via PR titles/branch names, secrets in logs, unpinned action versions, runner escape.
  4. Build Artifact Integrity: Verify signatures on containers/packages, check for unsigned artifacts, test image tag mutability.
  5. Lockfile Integrity: Detect lockfile injection (manipulated resolved URLs), verify lockfile-to-manifest consistency.
  6. Install Script Abuse: Identify packages with install hooks executing arbitrary code, test typosquatting candidates.
  7. SBOM Generation: Generate Software Bill of Materials and map transitive dependency risk with CVE correlation.

Tool Categories

CategoryToolsPurpose
Dependency ScanningSnyk, npm audit, pip-auditKnown CVE detection
Container ScanningTrivy, GrypeImage vulnerability analysis
Dependency Risksocket.dev, SemgrepBehavioral risk analysis
CI/CD Reviewcustom scripts, actionlintPipeline security audit
SBOMsyft, cyclonedx-cliBill of materials generation

References

  • references/tools.md - Tool function signatures and parameters
  • references/workflows.md - Attack pattern definitions and test vectors

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.