MAL-2026-12138
Malicious code in agent-bot-api (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (299eb5fe496022e888ed0663d0be82ddb8fac108bcb9a223291449982c360530) Package establishes a persistent remote-access channel to the hardcoded server https://server.junofficial.biz.id. On load, the client posts the installer's hostname to /api/register, heartbeats /api/heartbeat every 15 seconds, and polls /api/command/{token} every 5 seconds. Commands returned by the server are passed to child_process.exec with a configurable working directory, and additional operations perform arbitrary fs.readFile / fs.writeFile / rename / remove on the host filesystem. Command output is POSTed back to the same server. A server-issued token is persisted to.cache/publickey.txt, giving the operator persistent keyed reachability to the installer host. This is a full remote shell / RAT with attacker-controlled RCE on any machine that installs or runs the package.
## Source: ghsa-malware (a2ee8fa19ebbdd84602c6368d57caeb161c2e4a9e2012b66fdfe9b019769a3d1) 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 No fixed version published yet for agent-bot-api (npm). Pin to a known-safe version or switch to an alternative.