Malicious code in test-supply-npm-lib-4 (npm)
Description
Source: amazon-inspector (80bcbaa6379206627641c70dd25da3c3adfd51337f9a378223a6f8f13c8ba3ed)
package.json declares a dependency test-supply-npm-git-prepare-proof-4 whose value is a bare git URL (git+https://git@github.com/agustedone/test-supply-npm-git-prepare-proof-4.git) rather than a registry version range. On npm install, npm clones that repository at mutable HEAD and runs any lifecycle scripts (preinstall/install/postinstall/prepare) it contains, with no version pin, no commit SHA, and no integrity check. Whoever controls the referenced GitHub repository controls code that executes on the installer's machine at install time. The shipped package body is otherwise an inert stub — the manifest line itself is the delivery mechanism.
---