dependency-confusion

Detect dependency confusion vulnerabilities across npm, pip, RubyGems, Maven, Composer, and Docker.

96|1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/langbyyi/CyberStrikeAI-SRC --skill dependency-confusion-langbyyi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dependency-confusion
Source: https://github.com/langbyyi/CyberStrikeAI-SRC/tree/main/skills/dependency-confusion
Command: npx skills add https://github.com/langbyyi/CyberStrikeAI-SRC --skill dependency-confusion-langbyyi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the risk of supply chain attacks where internal package names resolve to attacker-controlled public registries, leading to malicious code execution during dependency installation, enabling authorized security teams to identify and mitigate these vulnerabilities.

Core Features & Use Cases

  • Multi-ecosystem coverage: Supports testing for npm, pip, RubyGems, Maven, Composer, and Docker dependency confusion risks.
  • Structured reconnaissance: Provides commands and workflows to identify leakable internal package names and check for public squatting on registries.
  • Safe proof-of-concept patterns: Offers non-destructive callback-based PoC examples for authorized red-team supply chain exercises.
  • Defensive guidance: Includes actionable controls to prevent dependency confusion attacks in development and CI/CD pipelines.

Quick Start

Use the dependency-confusion skill to review your project's package manifests for internal package names vulnerable to dependency confusion attacks and produce a prioritized risk report of findings.

Frequently Asked Questions about dependency-confusion

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

FAQPage Schema
What is a dependency confusion supply chain attack?▼

A dependency confusion attack occurs when internal package names resolve to attacker-controlled public registries, causing malicious code execution during dependency installation. This skill helps identify these supply chain vulnerabilities across multiple package managers.

How do I test for npm and pip dependency confusion vulnerabilities?▼

You can test for npm and pip dependency confusion using structured reconnaissance commands to identify leakable internal package names and non-destructive callback-based proof-of-concept patterns for authorized red-team supply chain exercises.

Does this dependency confusion test support RubyGems, Maven, and Composer?▼

Yes, this dependency confusion detection supports RubyGems, Maven, Composer, and Docker manifest review. It provides ecosystem-specific exploitation guidance to check for public squatting across these package registries.

What is the best way to check if internal package names are publicly squatted?▼

The best way to check for public squatting is using structured reconnaissance workflows to identify leakable internal package names and verify if they resolve to attacker-controlled public registries during dependency installation.

How do I prevent dependency confusion attacks in CI/CD pipelines?▼

To prevent dependency confusion attacks in CI/CD pipelines, apply actionable defensive controls and recommendations provided by the skill to ensure internal package names do not resolve to attacker-controlled public registries.

Can I use this for authorized red-team supply chain reconnaissance?▼

Yes, this skill is designed for authorized security testing and red-team engagement workflows. It provides supply chain reconnaissance commands and safe proof-of-concept patterns for non-destructive vulnerability testing.