THREATPKG
SYNC STALE

Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in randomlogs (npm)

randomlogs

Risk score

92

AI summary

Indexed incident for randomlogs (npm).

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (c085eee0876092131c3f909facc237674fcfb1e02bafbafcb34230c87b3a3819)

The package's main module (index.js lines 6-10) exports a function mal that opens a TCP socket to 223.229.156.10:5513 and pipes a spawned shell (/bin/sh or cmd.exe) stdin/stdout/stderr through that socket — a textbook reverse shell granting interactive remote control of the calling host to the operator of that IP. The package's own package.json description openly states the package contains malware ("this has a malware and it is only for testing purpose") and presents under a benign-sounding name (randomlogs, advertised as a random-string utility). Any consumer who requires and invokes the exported function hands full shell access on their machine to the hardcoded remote endpoint.

Source: ghsa-malware (8eca8cfc258b23cf2a6ee74a7af0c73c30453a1b7427083bbcaa6023fa87d06d)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Technical details

Affected versions

<function fixed() { [native code] }

Indicators

  • aliasGHSA-6x8j-5cx8-5qv690%
  • affected_version<function fixed() { [native code] }75%
  • affected_version<function fixed() { [native code] }75%
  • affected_version<function fixed() { [native code] }75%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents