Agent skill · Security

supply-chain-security

Typosquatting detection, install script analysis, dependency confusion prevention, and phantom dependency detection for npm/pip.

vibeevalgithub.com/vibeevalGitHub ↗
claude-codeMIT
Install
npx skills add vibeeval/vibecosystem --skill supply-chain-security --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/supply-chain-security/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 521
Language: C#

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Supply Chain Security Patterns for auditing third-party dependencies before they own your production environment. ## Typosquatting Detection Common substitution patterns attackers use against popular packages: ```python # Levenshtein distance check against known-good package list def levenshtein(a: str, b: str) -> int: if len(a) < len(b): return levenshtein(b, a) if not b: return len(a) prev = list(range(len(b) + 1)) for i, ca in enumerate(a): curr = [i + 1] for j, cb in enumerate(b): curr.append(min(prev[j + 1] + 1, curr[j] + 1, prev[j] + (ca != cb))) prev = curr return prev[-1] POPULAR_PACKAGES = ['express', 'lodash', 'react', 'axios', 'moment', 'chalk'] def is_typosquat(pkg: str, threshold: int = 2) -> list[str]: return [p for p in POPULAR_PACKAGES if 0 < levenshtein(pkg, p) <= threshold] # Examples of known typosquats typosquats = { 'lodahs': 'lodash', # character swap 'expres': 'express', # missing char 'reakt': 'react', # phonetic substitution 'axois': 'axios', # transposition 'momnet': 'moment', # transposition } ``` Common substitution patterns to check manually: - Character transposition: `lodash` → `lodahs` - Missing character: `express` → `expres` - Extra character: `c

What's inside
Steps it walks through
  1. Typosquatting Detection
  2. Install Script Audit
  3. Dependency Confusion Risk Assessment
  4. Phantom Dependency Detection
  5. Lock File Integrity Verification
  6. npm audit / pip-audit Integration
  7. SBOM Generation
  8. Known Malicious Package Indicators
  9. Dependency Pinning Strategy
  10. Dependency Risk Scoring
  11. Risk Assessment Template
  12. Automated Risk Check
Commands it runs
List all packages with install scripts (npm)
npm query ":root > *" | \
node -e "const d=require('/dev/stdin');
const pkg = require(\`./node_modules/\${k}/package.json\`);
npm pack lodash --dry-run
Check a specific package's install scripts before installing
npm show <package> scripts
Check if your internal package names exist on the public registry
If they do AND the public version is newer, npm may pull the public one
for pkg in "${INTERNAL_PACKAGES[@]}"; do
More from vibecosystem
All skills →
About this skill
What does the supply-chain-security skill do?

Typosquatting detection, install script analysis, dependency confusion prevention, and phantom dependency detection for npm/pip.

How do I install it?

Run `npx skills add vibeeval/vibecosystem --skill supply-chain-security --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going