MAL-2026-6191

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-slot/MAL-2026-6191.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6191
Aliases
  • GHSA-9243-vwcg-mpf3
Published
2026-06-19T05:10:55Z
Modified
2026-06-24T05:01:21.955990750Z
Summary
Malicious code in node-slot (npm)
Details

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

Source: amazon-inspector (0d71bcdec983467ab6a47b538e524abc1cdafc98b411761bffb375be17d72009)

On npm install, package.json's postinstall hook executes node test.js which invokes code in index.js that performs two distinct attacks on the installer machine. (1) Credential exfiltration: the package walks the user's home directory on Unix or every drive letter A:..Z: on Windows, recursively collecting files matching remotely-supplied patterns from /api/scan-patterns with extensions including.env,.json,.toml,.pdf,.doc,.docx,.xlsx (e.g..env, config.toml, id.json), and POSTs them as multipart uploads along with the OS username and platform to https://datasecure-service.vercel.app/api/v1. (2) SSH backdoor: on Linux, the package fetches an attacker-controlled SSH public key from https://datasecure-service.vercel.app/api/ssh-key, appends it to ~/.ssh/authorized_keys via fs.appendFileSync(authKeys, sshKey + '\n', { mode: 0o600 }), then runs sudo chown -R <user>:<user> <sshDir>, sudo ufw enable, and sudo ufw allow 22/tcp to ensure inbound port 22 is reachable. Outbound HTTP requests use a spoofed User-Agent: polymarket-bot/0.1 to appear benign. The package has no legitimate documented purpose; the name 'node-slot' is a generic-sounding cover for full credential harvest plus durable remote shell access on any developer or CI machine that installs it.

Source: ghsa-malware (29e2c334b81c9e7d99e3a10a98028254a2a2f411110be455896d4c4a5eff23ea)

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": [
        {
            "versions": [
                "1.0.7"
            ],
            "id": "IN-MAL-2026-007056",
            "import_time": "2026-06-19T05:16:50.43022462Z",
            "modified_time": "2026-06-19T05:10:55Z",
            "sha256": "91f23a964fca4e1984aecce2dbc51fc6bfa1ffe77725ee5f0e8d2f7a5c5514d8",
            "source": "amazon-inspector"
        },
        {
            "sha256": "29e2c334b81c9e7d99e3a10a98028254a2a2f411110be455896d4c4a5eff23ea",
            "id": "GHSA-9243-vwcg-mpf3",
            "import_time": "2026-06-23T07:33:18.916183587Z",
            "modified_time": "2026-06-23T06:22:06Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.0.9"
            ],
            "id": "IN-MAL-2026-007341",
            "import_time": "2026-06-23T19:40:41.73785946Z",
            "modified_time": "2026-06-23T19:34:25Z",
            "sha256": "0d71bcdec983467ab6a47b538e524abc1cdafc98b411761bffb375be17d72009",
            "source": "amazon-inspector"
        },
        {
            "sha256": "aec74f2868718f8b4f13aaa5fcb5880987196602c649a2f550a4816d21cf4f62",
            "id": "IN-MAL-2026-007414",
            "import_time": "2026-06-24T04:54:33.739929272Z",
            "modified_time": "2026-06-24T03:39:16Z",
            "versions": [
                "1.0.8"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / node-slot

Package

Affected ranges

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

Affected versions

1.*
1.0.7
1.0.8
1.0.9

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "node-slot-1.0.7.tgz",
            "hashes": {
                "sha512_sri": "sha512-FoI8QhI2uUR24QDXNEJl0adLuseb3qQ7itbnnbweOVX4ABJEvibABoFUESK2/rgLlGBQV9e5OgDkKtJR7N75aQ==",
                "sha1": "5580f520d5917acc8e2efaf8b516a74079983910"
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "653e32a8394f5149f3e86b7b8fdaeb8f1103ac9f3211b0410b08476420a5de37",
            "tlsh": "372244a955773626ca7263f85a07001eff6bd53339118285f2ec42843f7a91861e6eec",
            "path": "index.js"
        },
        {
            "tlsh": "3af09227ce589d6318f539a9297c0727f291932f0104880f35bd661c4fb65270085f1d",
            "sha256": "ffdad8826ac95345dab74f070ab9166631af306d57305d1d66e7e3a07ba1385b",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "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."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-slot/MAL-2026-6191.json"