VDB
KO

MAL-2026-6191

Malicious code in node-slot (npm)

Details

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

## Source: amazon-inspector (91f23a964fca4e1984aecce2dbc51fc6bfa1ffe77725ee5f0e8d2f7a5c5514d8) node-slot 1.0.7 contacts https://datasecure-service.vercel.app/api/v1 to retrieve scan and block patterns, then walks the user's home directory (or non-C: drives on Windows) for files matching extensions such as.env,.json,.toml,.pdf,.docx and uploads them via multipart POST (axios.post(UPLOAD_URL, form,...) at index.js:78) along with the OS username and platform. On Linux it additionally fetches an attacker-supplied SSH public key from /api/ssh-key and appends it to ~/.ssh/authorized_keys (fs.appendFileSync(authKeys, sshKey + "\n", { mode: 0o600 })), then runs `sudo ufw enable` and `sudo ufw allow 22/tcp` to ensure the operator can reach the SSH service — granting persistent remote shell access to the installer's machine. Server-controlled scan/block patterns let the operator retarget the harvester without republishing. package.json has empty author/description and lists Node built-in names (`child_process`, `os`) as fake dependencies — disguise consistent with a deliberately malicious package.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / node-slot

No fixed version published yet for node-slot (npm). Pin to a known-safe version or switch to an alternative.

References