MAL-2026-4657

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/randomlogs/MAL-2026-4657.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4657
Aliases
  • GHSA-6x8j-5cx8-5qv6
Published
2026-05-20T13:55:35Z
Modified
2026-06-01T17:16:36.628780051Z
Summary
Malicious code in randomlogs (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (c085eee0876092131c3f909facc237674fcfb1e02bafbafcb34230c87b3a3819)

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.

Source: ghsa-malware (8eca8cfc258b23cf2a6ee74a7af0c73c30453a1b7427083bbcaa6023fa87d06d)

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": [
        {
            "import_time": "2026-05-26T05:50:51.390413279Z",
            "versions": [
                "1.2.2"
            ],
            "sha256": "06969cf19fda75623b50f7f689eda975ec840e07e95cffada079e82ea1ebc4b7",
            "id": "IN-MAL-2026-003558",
            "modified_time": "2026-05-20T13:55:35Z",
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-05-26T05:50:52.644834309Z",
            "versions": [
                "1.2.4"
            ],
            "id": "IN-MAL-2026-003569",
            "source": "amazon-inspector",
            "modified_time": "2026-05-20T14:33:36Z",
            "sha256": "a048135562639532503e525ad93e23a33184d1a6473c84e0fe7c03dc78ee7402"
        },
        {
            "import_time": "2026-05-26T05:50:52.549774591Z",
            "versions": [
                "1.2.3"
            ],
            "sha256": "c085eee0876092131c3f909facc237674fcfb1e02bafbafcb34230c87b3a3819",
            "id": "IN-MAL-2026-003568",
            "modified_time": "2026-05-20T14:31:37Z",
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-06-01T17:03:32.538947497Z",
            "sha256": "8eca8cfc258b23cf2a6ee74a7af0c73c30453a1b7427083bbcaa6023fa87d06d",
            "source": "ghsa-malware",
            "id": "GHSA-6x8j-5cx8-5qv6",
            "modified_time": "2026-06-01T15:37:20Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / randomlogs

Package

Affected ranges

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

Affected versions

1.*
1.2.2
1.2.3
1.2.4

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "e3f0ec8a58b320b611673159c62fc01736b240171107e5557a0dcd9d4f55d28676ede5",
            "sha256": "a5060b8d15828b7834e067f100bc4378bdde9df10789125a3d3e0912a541e878",
            "path": "index.js"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-dgHhf6Npuemk4wmnXKE/5a3XuG+qYxwvoJ53wZrlHzgRkm/P27eDyvAqzknIyWGmAw+LZDvu8EL7XTnS+ctpGA==",
                "sha1": "50216ee616b1697d6e47fe2204154ef9a4ab29e6"
            },
            "filename": "randomlogs-1.2.2.tgz"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/randomlogs/MAL-2026-4657.json"
cwes
[
    {
        "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",
        "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",
        "description": "The product contains code that appears to be malicious in nature."
    }
]