performing-supply-chain-attack-simulation

Detect typosquatting, dependency confusion, and hash mismatches in Python packages.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Acczdy/MoZiSec --skill performing-supply-chain-attack-simulation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-supply-chain-attack-simulation
Source: https://github.com/Acczdy/MoZiSec/tree/main/web-security/.claude/skills/performing-supply-chain-attack-simulation
Command: npx skills add https://github.com/Acczdy/MoZiSec --skill performing-supply-chain-attack-simulation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Simulate and detect software supply chain attacks by identifying typosquatting, dependency confusion, and hash tampering, helping security teams validate controls and reduce risk.

Core Features & Use Cases

  • Typosquatting detection using Levenshtein distance against top PyPI packages
  • Dependency confusion testing for private registries
  • Hash verification of packages via SHA-256 checks
  • Vulnerability scanning with pip-audit and metadata anomaly checks
  • Output a structured JSON risk report for targets and scenarios

Quick Start

Run the agent against a target environment to simulate and detect supply chain attacks.

Frequently Asked Questions about performing-supply-chain-attack-simulation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect typosquatting and dependency confusion in Python packages?

Detect typosquatting and dependency confusion by querying the PyPI JSON API to calculate Levenshtein distance against top packages and testing internal registry configurations. This generates a structured JSON report detailing detected vectors and risk scores for your target environment.

What is a software supply chain attack simulation?

A software supply chain attack simulation identifies and evaluates risks by detecting typosquatting, dependency confusion, and hash mismatches in Python ecosystems. It helps security teams validate controls and reduce risk by producing a structured JSON report of detected vectors and package metadata.

Can I use pip-audit for vulnerability scanning during supply chain testing?

Yes, you can use pip-audit for optional vulnerability scanning and metadata anomaly checks during supply chain testing. It integrates with hash verification via SHA-256 checks to enhance the structured JSON risk report output for public PyPI packages.

Does this supply chain simulation work with private registries and internal dependencies?

Yes, this supply chain simulation applies detection across common scenarios including internal registries and private dependencies, as well as public PyPI packages. It evaluates risk scores and package metadata to validate security controls for these specific environments.

What limitations exist when detecting hash mismatches in Python packages?

Hash verification detects SHA-256 mismatches by querying the PyPI JSON API, but limitations arise if internal registries mirror outdated package metadata or if optional pip-audit scanning encounters unsupported package formats. Always validate controls across all target scenarios to reduce risk effectively.