MAL-2026-14478 Malicious code in mham-js (npm)
Malicious package
Published
MAL-2026-14478 is a malicious package: mham-js (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-14478/ (Markdown: https://insights.sbomify.com/MAL-2026-14478/index.md)
- Package
- mham-js
- Registry
- npm
What is MAL-2026-14478?
MAL-2026-14478 is a malicious package in mham-js, published on 25 Aug 2026.
Official description
On import of mham-js, src/api/session-api.js runs top-level code that reads a file outside the package tree at../../../../public/logo.ico, decrypts its contents with CryptoJS.DES using the hardcoded password 'bf497c0b9cee', then spawns a detached node subprocess and pipes the decrypted bytes to its stdin for execution. The loader is disguised with cover-story names ('readLogoIco', 'rsa_exec', 'ThetaSDK initialization error'), and the README states the package does nothing on import, contradicting the actual behavior. The executed payload is stored encrypted outside the tarball, is not verified or documented, and consists of opaque attacker-controlled bytes handed directly to the Node interpreter as arbitrary code.
What should I do about MAL-2026-14478?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.