MAL-2024-2355 Malicious code in faceplate-docs (npm)
Malicious package
Published
MAL-2024-2355 is a malicious package: faceplate-docs (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-2024-2355/ (Markdown: https://insights.sbomify.com/MAL-2024-2355/index.md)
- Package
- faceplate-docs
- Registry
- npm
What is MAL-2024-2355?
MAL-2024-2355 is a malicious package in faceplate-docs, published on 25 Jun 2024.
Official description
[email protected] runs index.js from a postinstall hook that collects the installer's OS username, current working directory, hostname, and local IPv4 address and POSTs them as JSON to a hardcoded anonymous collector at https://webhook.site/f9bff304-3053-4d54-be05-86537267514a. The beacon fires automatically on
npm install without any user interaction. The package name plus implausibly high version (99.9.10) and the recon-only payload are characteristic of a dependency-confusion probe designed to identify internal build environments that mistakenly resolve a private package name from the public registry.What should I do about MAL-2024-2355?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.