Skip to content
Skillpedia
Security35k · #8318

performing-supply-chain-attack-simulation

What it does

This tool simulates and detects software supply chain attacks. It checks for malicious or similarly named packages, tests if private packages can be confused with public ones, and verifies the security of installed packages.

When to use it

  • ✓When auditing a project's dependency security.
  • ✓When testing the security of package registries.
  • ✓When responding to package-related security incidents.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-supply-chain-attack-simulation/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/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-supply-chain-attack-simulation/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

“Check for supply chain attacks in my Python project.”

5 new skills a week. 1 minute to read.

How it works

The tool compares package names with popular ones using a similarity metric, checks if private packages can be confused with public ones, and scans installed packages for known vulnerabilities.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Performing Supply Chain Attack Simulation

Overview

Software supply chain attacks exploit trust in package registries through typosquatting (registering names similar to popular packages), dependency confusion (publishing higher-version public packages matching private names), and compromised package distribution. This skill detects these attack vectors by computing Levenshtein distance between package names and popular PyPI packages, verifying package integrity via SHA-256 hash comparison, scanning for known CVEs with pip-audit, and testing dependency resolution order for confusion vulnerabilities.

When to Use

  • When conducting security assessments that involve performing supply chain attack simulation
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.

Key Detection Areas

  1. Typosquatting — compare package names against top PyPI packages using edit distance thresholds
  2. Dependency confusion — check if internal package names exist on public PyPI with higher version numbers
  3. Hash verification — download packages and verify SHA-256 digests match published hashes
  4. Vulnerability scanning — audit installed packages against OSV and PyPA advisory databases
  5. Metadata anomalies — flag packages with suspicious author emails, missing homepages, or very recent first upload dates

Output

JSON report with risk scores per package, detected attack vectors, hash verification results, and CVE findings.

FAQ

What is a 'typosquatting' attack?

It's when an attacker registers a package name very similar to a popular one, hoping developers will make a typo and install the malicious package.

What is 'dependency confusion'?

It's when an attacker publishes a package with the same name as an internal company package but with a higher version on a public registry. If not configured securely, your system might download the attacker's package instead of yours.

What is SHA-256 hash verification for?

It ensures the package you downloaded is exactly the same as what the developer published by comparing a unique identification code (hash) to prevent tampered packages.

Details

Original description by the author

Simulates and detects software supply chain attacks: typosquatting detection via Levenshtein distance against popular PyPI package names, dependency confusion testing against private registries, SHA-256 package hash verification, and known-CVE scanning with pip-audit. Use when auditing a project's dependencies for malicious or confused packages, or when assessing package-registry supply-chain risk

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#8318
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills