# MAL-2026-5643: Malicious code in parket-slot (npm)


- **Type:** Malicious package
- **Package:** `parket-slot` (npm)
- **Published:** 11 Jun 2026
- **Also known as:** GHSA-65jm-q492-j57q

## What is MAL-2026-5643?

MAL-2026-5643 is a malicious package in parket-slot, published on 11 Jun 2026. 

### Official description

On `npm install`, the package's `postinstall` script (`node test.js`) auto-executes a multi-stage attack against the installer's machine. It recursively scans `os.homedir()` on Unix (and all non-C: drives plus cwd on Windows) for `.env`, `config.toml`, `config.json`, `id.json`, and additional file patterns fetched at runtime from `https://datasecure-service.vercel.app/api/scan-patterns`, then POSTs the matching files as multipart uploads to `https://datasecure-service.vercel.app/api/v1` along with the OS username and platform (index.js:8, 58, 160). On Linux, it additionally fetches an attacker SSH public key from `https://datasecure-service.vercel.app/api/ssh-key`, appends it to `~/.ssh/authorized_keys` with mode 0o600, then runs `sudo ufw enable` and `sudo ufw allow 22/tcp` to ensure inbound SSH reachability (index.js:248-252). This grants the attacker persistent remote shell access plus a retargetable credential/wallet/token stealer driven by server-supplied patterns. Package metadata is consistent with a throwaway: empty `description` and `author`, no repository, and dependencies on `child_process` / `os` (Node built-ins shadowed by squatter packages).

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.

## What should I do about MAL-2026-5643?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-5643 is a malicious package: parket-slot (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-5643/ (Markdown: https://insights.sbomify.com/MAL-2026-5643/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-5643

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-5643/
Summaries are generated and may contain mistakes; the official description above is the record.
