Dependency_Confusion_Test

🌐Community
by charpup · vlatest · Repository

Evaluates user input to detect potential dependency confusion attacks targeting package management systems.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add dependency_confusion_test npx -- -y @trustedskills/dependency_confusion_test
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "dependency_confusion_test": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/dependency_confusion_test"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill, dependency_confusion_test, assesses a project's vulnerability to dependency confusion attacks. It identifies potential conflicts arising from similarly named packages on different package registries (e.g., npm and GitHub). The tool helps determine if an attacker could trick the project into installing a malicious package instead of the intended one.

When to use it

  • Security Audits: Integrate this skill during security audits to proactively identify dependency confusion risks.
  • New Project Setup: Use before initial deployment to ensure dependencies are sourced from trusted registries.
  • Dependency Updates: Run after significant updates to project dependencies, as new versions can introduce vulnerabilities.
  • Supply Chain Risk Assessment: As part of a broader supply chain security assessment for software projects.

Key capabilities

  • Identifies potential dependency confusion conflicts.
  • Checks package names against multiple registries.
  • Provides reports on vulnerable dependencies.

Example prompts

  • "Test this project's dependencies for dependency confusion vulnerabilities."
  • "Analyze the package.json file at [project URL] for potential risks."
  • "Run a dependency confusion test and report any conflicts found."

Tips & gotchas

The skill requires access to the project’s package manifest (e.g., package.json, pom.xml). Ensure that the AI agent has appropriate permissions to read these files during execution.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
charpup
Installs
5

🌐 Community

Passed automated security scans.