MAL-2026-12138Malicious code in agent-bot-api (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | agent-bot-api | * |
| npm | agent-bot-api | 1.0.0 |
| npm | agent-bot-api | 1.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-12138","published":"2026-08-05T08:50:47Z","modified":"2026-08-18T00:21:54.579820299Z","aliases":["GHSA-wg39-r7v9-mwfc"],"summary":"Malicious code in agent-bot-api (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (299eb5fe496022e888ed0663d0be82ddb8fac108bcb9a223291449982c360530)\nPackage 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.\n\n## Source: ghsa-malware (a2ee8fa19ebbdd84602c6368d57caeb161c2e4a9e2012b66fdfe9b019769a3d1)\nAny 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.\n","affected":[{"package":{"name":"agent-bot-api","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/executor.js","sha256":"6fb7a4b9177809068da90105a9f6d4d461ce01393be78c2be03dee0d8acc872d","tlsh":"f9d1d00b59ff22744263f66a1b6f64426527e487372dcd98ff8c8290af452048ee1bf4"},{"path":"lib/client.js","sha256":"7b67c57fd02d6431785afdf3cf02146b3fb9d109d7193319577ba6504635c21d","tlsh":"2c31904e19fb72688ab73857d52e08417813e2075d4e8e4cbe8cbbd2ef05a157822b70"}],"package_integrity":[{"filename":"agent-bot-api-1.0.0.tgz","hashes":{"sha1":"8973db57dae3de65cef073df4d3277c8bcca27c1","sha512_sri":"sha512-hw52EDl1jQM6X/TZDVDTnrA/+Tn5exX3mf6lLnur8qGu2LNTPngSOzFbykfqU9JcZiULE18N6FkXpFHgSpNNCQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/agent-bot-api/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/agent-bot-api/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wg39-r7v9-mwfc"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014441","import_time":"2026-08-05T09:28:11.381090203Z","modified_time":"2026-08-05T08:50:55Z","sha256":"299eb5fe496022e888ed0663d0be82ddb8fac108bcb9a223291449982c360530","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-014440","import_time":"2026-08-05T09:28:11.270036029Z","modified_time":"2026-08-05T08:50:47Z","sha256":"ad24b23e8c5fcf8b676f35d279621f5ac192982f820834c40306ace0da68c96a","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-wg39-r7v9-mwfc","import_time":"2026-08-18T00:20:04.642455026Z","modified_time":"2026-08-17T11:41:37Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"a2ee8fa19ebbdd84602c6368d57caeb161c2e4a9e2012b66fdfe9b019769a3d1","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0