@selfpentest/bin-confusion
An example package for training oneself that uses bin confusion to run a script
This report shows the evidence for @selfpentest/bin-confusion@1.0.1. 2 of 2 known versions are blocked or flagged. See all versions.
AI Security Review
scanned 25d ago · by lpm-firewall-aiThe active executable performs credential and local-file collection followed by a network send. Its npm command name makes the behavior especially likely to be triggered through command confusion.
Decision evidence
public snapshot- The package registers an executable named npm, which points to npm.js.
- The executable collects HOME and SECRET environment variables.
- It reads part of the user's SSH known-hosts file and sends collected data in a request to a local HTTP endpoint.
- The credential-collection function runs before the executable proxies arguments to npm.
Source & flagged code
5 flagged · loading sourcePackage declares a bin command that shadows a Node package-manager runtime executable.
package.jsonView on unpkgThe package registers an executable named npm, which points to npm.js.
package.jsonView on unpkg · L4The executable collects HOME and SECRET environment variables.
npm.jsView on unpkg · L9Findings
Affected versions and remediation
This report applies to @selfpentest/bin-confusion@1.0.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing @selfpentest/bin-confusion@1.0.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.