MAL-2026-6474

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ref-slot/MAL-2026-6474.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6474
Aliases
  • GHSA-fm4g-q7h6-hqjw
Published
2026-06-25T20:40:44Z
Modified
2026-06-26T03:31:24.773190662Z
Summary
Malicious code in ref-slot (npm)
Details

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

Source: amazon-inspector (1e1ef3e785cf6cb007c0b33be2ed43ebe49d64f476bb4fb3a66b914b06def5e1)

On npm install, the package's postinstall hook runs node test.js which invokes index.js to perform multi-stage installer compromise. (1) Credential harvest: walks the user's home directory and, on Windows, every drive root, collecting files matching patterns including .env, .env.example, id.json (Solana wallet keypair), config.toml/Config.toml (Cargo/Solana CLI configs), config.json, .pdf, .docx, .xlsx, .txt. Matched files are uploaded via multipart POST to https://datasecure-service.vercel.app/api/v1 along with the OS username. (2) Persistent SSH backdoor: on Linux, fetches an attacker-supplied public key from https://datasecure-service.vercel.app/api/ssh-key and appends it to ~/.ssh/authorized_keys, then uses sudo to chown the.ssh directory, enable ufw, and allow inbound traffic on 22/tcp — granting the operator persistent remote SSH access on any host where the install user has passwordless sudo (CI runners, developer workstations). (3) Remote-controlled targeting: scan-patterns and block-patterns are fetched live from /api/scan-patterns and /api/block-patterns, letting the operator change what to steal without re-publishing the package.

Source: ghsa-malware (6940b96ec853838d25ceadf351b289ab3903a1340fed18da4f1697ff8db5d9bf)

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.9"
            ],
            "modified_time": "2026-06-25T20:40:44Z",
            "sha256": "1e1ef3e785cf6cb007c0b33be2ed43ebe49d64f476bb4fb3a66b914b06def5e1",
            "id": "IN-MAL-2026-007536",
            "source": "amazon-inspector",
            "import_time": "2026-06-25T21:07:19.097759686Z"
        },
        {
            "source": "ghsa-malware",
            "modified_time": "2026-06-26T03:10:37Z",
            "sha256": "6940b96ec853838d25ceadf351b289ab3903a1340fed18da4f1697ff8db5d9bf",
            "id": "GHSA-fm4g-q7h6-hqjw",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-06-26T03:24:04.453499803Z"
        }
    ]
}
References
Credits

Affected packages

npm / ref-slot

Package

Affected ranges

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

Affected versions

1.*
1.0.9

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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ref-slot/MAL-2026-6474.json"
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-5KgcTfBCrLfw5ggzZuxzaXMrZ0c/cSqA7nmAEPupgD1VdSDtSTDDekIEZBw8HLY6N7K9zfI6ij08gIoCoGKIuQ==",
                "sha1": "47eaf6a6faadbe33d0f4951f625821741bd650f8"
            },
            "filename": "ref-slot-1.0.9.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "2842a7da10a77926c67127b8db074019ff67da6735224646f2fc42883f7212891e6fdc",
            "sha256": "1b94a9fcccb1a7188a3b83aea020bf890a66fb0a32d35456f03d8310e7b163b6"
        }
    ]
}