MAL-2026-4660 Malicious code in react-malicious-clone (npm)
Malicious package
Published
MAL-2026-4660 is a malicious package: react-malicious-clone (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-4660/ (Markdown: https://insights.sbomify.com/MAL-2026-4660/index.md)
- Package
- react-malicious-clone
- Registry
- npm
What is MAL-2026-4660?
MAL-2026-4660 is a malicious package in react-malicious-clone, published on 24 May 2026.
Official description
Package name impersonates React and the package.json copies React's description, homepage (react.dev), bugs URL, and canary versioning scheme. On require/import, index.js synchronously collects os.hostname(), os.userInfo().username, cwd, platform, arch, node version, and iterates process.env filtering keys against /token|key|secret|password|auth|credential|api/i to capture arbitrary installer secrets (CI tokens, npm tokens, AWS keys, GitHub tokens, etc.). The resulting JSON payload is POSTed via https to webhook.site/0240f6ff-33e5-40a5-845a-8e3f80b6d957. The code self-labels '[SUPPLY CHAIN ATTACK - PoC]'. Any consumer requiring this package leaks credential-shaped environment variables to an attacker-controlled webhook.
What should I do about MAL-2026-4660?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.