MAL-2026-12138

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/agent-bot-api/MAL-2026-12138.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12138
Aliases
  • GHSA-wg39-r7v9-mwfc
Published
2026-08-05T08:50:47Z
Modified
2026-08-18T00:30:28Z
Summary
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.

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"
        }
    ]
}
References
Credits

Affected packages

npm / agent-bot-api

Package

Name
agent-bot-api
View open source insights on deps.dev
Purl
pkg:npm/agent-bot-api

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
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=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/agent-bot-api/MAL-2026-12138.json"