Skip to content
Skillpedia
Security5.4k Β· #14950

supply-chain-attack-recon

What it does

This skill maps how a company's software supply chain could be exposed, from public build workflows to internal package names. It is for authorized reconnaissance only, not for publishing packages or changing upstream projects.

When to use it

  • βœ“When a company has a public GitHub organization and you want to review its build workflows.
  • βœ“When JavaScript or mobile bundles reveal internal-looking package names.
  • βœ“When public Docker images or build files may show internal registry addresses.

Skill link

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/supply-chain-attack-recon/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/supply-chain-attack-recon/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you check our company's public GitHub workflows and JavaScript bundles for exposed internal package names in our authorized review?”

5 new skills a week. 1 minute to read.

How it works

The agent identifies public build and package files, lists internal-looking names and registry addresses, and checks whether CI workflows expose risky patterns. It reports findings only and publishes nothing.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

When to use

Trigger when:

  • Target has a public GitHub organization (find via OSINT)
  • JS bundles reference internal-looking package names (@target-internal/..., target-utils, target-shared)
  • Build logs, SBOMs, or package-lock.json files are publicly accessible
  • Target uses CI/CD that's partially public (GitHub Actions, GitLab CI, Bitrise)
  • Docker images on Docker Hub/GHCR/Quay belong to target org
  • Findings include npmrc/pip.conf/gradle.properties with internal registry URLs
  • .github/workflows/*.yml files reference internal tooling

Do NOT use for:

  • Internal-network artifact registries (out of scope per external boundary)
  • Actually publishing typosquats / dep-confusion packages without explicit OK
  • Compromising upstream open-source projects (massive blast radius β€” illegal in most jurisdictions without authorization)

The supply-chain attack surface map

Target Org
β”œβ”€β”€ Public GitHub Org β†’ workflow files β†’ secrets exfil opportunities
β”œβ”€β”€ Internal package names in JS/Android bundles β†’ dependency confusion
β”œβ”€β”€ Docker images on public registries β†’ secrets in layers, RCE on pull
β”œβ”€β”€ SBOM / artifact metadata β†’ exact dep versions for known-vuln chaining
β”œβ”€β”€ npmrc / pip.conf in repos β†’ internal registry URL disclosure
β”œβ”€β”€ External package dependencies β†’ typosquat name candidates
└── Build/release pipelines β†’ injection if pull_request_target etc.

Step 1 β€” GitHub org discovery

TARGET="<brand>"  # set to target brand name

# Direct guesses
for guess in $TARGET "${TARGET}-tech" "${TARGET}corp" "${TARGET}-io" "${TARGET}-eng"; do
  curl -sI "https://github.com/$guess" | grep -E "HTTP|status" | head -1
done

# Via WHOIS / email-domain β†’ GitHub search
gh search users --owner-affiliations=organization --query "$TARGET" --limit 10

# Via employees β†’ reverse from social media + GitHub profile
# Many employees list their employer org on their GitHub profile

Step 2 β€” Enumerate public repos for sensitive artifacts

ORG="targetorg"

# List public repos
gh repo list "$ORG" --limit 100 --json name,description,visibility,defaultBranchRef

# Look for high-signal repo names
gh repo list "$ORG" --limit 100 --json name | jq -r '.[].name' | grep -iE "internal|infra|deploy|config|secret|setup|sdk|api"

# Clone all (small org) or selectively
gh repo clone "$ORG/$repo_name"

Step 3 β€” Internal package-name discovery

From JS bundles

# JS bundles are the easiest source of internal npm names
curl -sk https://target.com/main.js | grep -oE '@[a-z-]+/[a-z-]+' | sort -u
curl -sk https://target.com/main.js | grep -oE 'require\("[^"]+"\)' | sort -u

# Look for scoped names that are NOT public on npm
for pkg in @target/utils @target-internal/api @companybrand/sdk; do
  status=$(curl -sI "https://registry.npmjs.org/$pkg" | head -1 | awk '{print $2}')
  echo "  $pkg β†’ $status"
  # 404 β†’ name unclaimed on public npm β†’ DEPENDENCY-CONFUSION CANDIDATE
done

From GitHub repo package.json files

# Public repos with package.json that reference internal scopes
for repo in $(gh repo list "$ORG" --limit 50 --json name --jq '.[].name'); do
  pkg=$(gh api "repos/$ORG/$repo/contents/package.json" --jq '.content' 2>/dev/null | base64 -d 2>/dev/null)
  echo "$pkg" | jq -r '.dependencies // {} | keys[]' 2>/dev/null | grep -E '^@[a-z-]+/'
done | sort -u

From Python projects

# Internal pip package names
for repo in $(gh repo list "$ORG" --limit 50 --json name --jq '.[].name'); do
  gh api "repos/$ORG/$repo/contents/requirements.txt" --jq '.content' 2>/dev/null | base64 -d 2>/dev/null
done | sort -u | grep -vE '^(requests|django|flask|numpy|pandas|...common)'

Step 4 β€” Dependency-confusion vulnerability check

For each internal-looking package name discovered:

NAME="@target-internal/utils"   # example

# npm check
curl -sI "https://registry.npmjs.org/$NAME" | head -1
# 404 β†’ name is registerable β†’ DEPENDENCY-CONFUSION POSSIBLE

# pypi check (no scopes, just name)
NAME="target_utils"
curl -sI "https://pypi.org/project/$NAME/" | head -1
# 404 β†’ name is registerable

# rubygems
curl -sI "https://rubygems.org/api/v1/gems/$NAME.json" | head -1

# Go modules β€” slightly different, since module names are URLs
# Check if module path is reachable
curl -sI "https://proxy.golang.org/github.com/$ORG/$NAME/@latest" | head -1

Severity calibration: Just because a name is unclaimed doesn't mean it's exploitable. You also need: 1

FAQ

Does it publish test packages?

No. The skill says publishing typosquat or dependency confusion packages is outside its scope without explicit permission.

What is dependency confusion?

It is when a build pulls a public package with the same name as an internal one, which can run unintended code.

What does it look at in CI?

It looks at workflow files and CI settings that might let outside input affect builds.

Details

Original description by the author

External recon for software supply-chain attack surface β€” package-namespace squatting candidates, dependency-confusion vulnerabilities, GitHub Actions injection openings, container image registry exposure, SBOM mining, internal-package-name leakage, and CI/CD configuration exposure. Reconnaissance and identification ONLY β€” actual package publishing / typosquat attacks are EXTERNAL-OFFENSIVE and require explicit written sign-off because they can affect the entire npm/PyPI ecosystem. Use when the target has a public GitHub org, when their build artifacts/SBOMs are reachable, when their docker im

repo: elementalsouls/Claude-BugHunter

Popularity

GitHub stars
5.4k
Ranking position
#14950
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills