MAL-2026-4657 Malicious code in randomlogs (npm)
- Package
- randomlogs
- Registry
- npm
What is MAL-2026-4657?
MAL-2026-4657 is a malicious package in randomlogs, published on 20 May 2026.
Official description
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.
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.
What should I do about MAL-2026-4657?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.
Sources
Also known as GHSA-6x8j-5cx8-5qv6.