dependency-confusion
Warn
Audited by Gen Agent Trust Hub on Jul 21, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill provides functional code snippets that use package manager lifecycle hooks to execute arbitrary code. Examples include:
- An
npmpreinstallscript executing anode -ecommand. - A
pipsetup.pyhook that overrides theinstallclass to execute Python code during the installation process. - [DATA_EXFILTRATION]: The exploitation patterns demonstrate exfiltrating information to an external 'callback host'.
- The
preinstallsnippet specifically exfiltrates theprocess.env.npm_package_nameenvironment variable to a remote URL via an HTTPS request. - Other patterns use
curland Python'surllib.requestto signal successful installation to an external server. - [EXTERNAL_DOWNLOADS]: The skill references several external tools and repositories for testing and exploitation:
- A specific third-party exploit repository:
https://github.com/0xsapra/dependency-confusion-exploit. - Well-known security tools:
visma-prodsec/confusedandsynacktiv/DepFuzzer. - [COMMAND_EXECUTION]: The skill includes instructions for running various reconnaissance commands to query public registries (npm, PyPI, RubyGems, Maven) for package metadata and availability.
Audit Metadata