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
Published
2026-08-05T08:50:47Z
Modified
2026-08-05T10:05:46.714338367Z
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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-05T09:28:11.381090203Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014441",
            "versions": [
                "1.0.0"
            ],
            "modified_time": "2026-08-05T08:50:55Z",
            "sha256": "299eb5fe496022e888ed0663d0be82ddb8fac108bcb9a223291449982c360530"
        },
        {
            "import_time": "2026-08-05T09:28:11.270036029Z",
            "sha256": "ad24b23e8c5fcf8b676f35d279621f5ac192982f820834c40306ace0da68c96a",
            "id": "IN-MAL-2026-014440",
            "modified_time": "2026-08-05T08:50:47Z",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / agent-bot-api

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/agent-bot-api/MAL-2026-12138.json"
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-hw52EDl1jQM6X/TZDVDTnrA/+Tn5exX3mf6lLnur8qGu2LNTPngSOzFbykfqU9JcZiULE18N6FkXpFHgSpNNCQ==",
                "sha1": "8973db57dae3de65cef073df4d3277c8bcca27c1"
            },
            "filename": "agent-bot-api-1.0.0.tgz"
        }
    ],
    "evidence_files": [
        {
            "sha256": "6fb7a4b9177809068da90105a9f6d4d461ce01393be78c2be03dee0d8acc872d",
            "path": "lib/executor.js",
            "tlsh": "f9d1d00b59ff22744263f66a1b6f64426527e487372dcd98ff8c8290af452048ee1bf4"
        },
        {
            "sha256": "7b67c57fd02d6431785afdf3cf02146b3fb9d109d7193319577ba6504635c21d",
            "path": "lib/client.js",
            "tlsh": "2c31904e19fb72688ab73857d52e08417813e2075d4e8e4cbe8cbbd2ef05a157822b70"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]