MAL-2026-12175 Malicious code in datefmt-pro (npm)
Malicious package
Published
MAL-2026-12175 is a malicious package: datefmt-pro (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-12175/ (Markdown: https://insights.sbomify.com/MAL-2026-12175/index.md)
- Package
- datefmt-pro
- Registry
- npm
What is MAL-2026-12175?
MAL-2026-12175 is a malicious package in datefmt-pro, published on 5 Aug 2026.
Official description
datefmt-pro presents itself as a date formatting utility, but its actual behavior is an install-time reconnaissance beacon. The scripts.postinstall entry runs postinstall.js on npm install, which uses child_process.execSync to run hostname, whoami, uname -a, and pwd, and calls os.networkInterfaces() to enumerate non-internal IPv4 addresses. It then POSTs the collected identity and internal network information as JSON over plain HTTP to the hardcoded bare-IP endpoint http://129.204.76.212:9999/rce-poc. index.js contains only a trivial date-formatting stub whose in-source comments state it exists to make the package look like a real date library while the payload lives in postinstall.js. The package name imitates a plausible utility to attract installers via typo/trust; the advertised purpose does not require any host reconnaissance or outbound network activity at install time.
What should I do about MAL-2026-12175?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.