MAL-2026-13377 Malicious code in ezdiscordbots (npm)
Malicious package
Published
MAL-2026-13377 is a malicious package: ezdiscordbots (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-13377/ (Markdown: https://insights.sbomify.com/MAL-2026-13377/index.md)
- Package
- ezdiscordbots
- Registry
- npm
What is MAL-2026-13377?
MAL-2026-13377 is a malicious package in ezdiscordbots, published on 5 Aug 2026.
Official description
package.json declares a postinstall script
sudo node install.js that runs install.js with root privileges on the installer's machine. Both install.js and index.js are heavily obfuscated (js-virtualizer / obfuscator.io family): hex-mangled identifiers, rotated string array, control-flow flattening, anti-debug regex checks, and a base64/percent-decoded string reconstructor. index.js concatenates four decoder-produced fragments and passes the result through Buffer.from(dora, 'base64').toString() at module load to materialize executable content that is not visible in the shipped source. The declared runtime dependencies include js-virtualizer (obfuscator) and node-linux (systemd/init daemon registration) — neither has any connection to the advertised Discord bot purpose, and node-linux provides the primitives to install a persistent root-level daemon. The combination of sudo-elevated postinstall, obfuscated self-decoding payload, and a Linux service-installer dependency is the canonical install-time RCE / persistence shape; installing this package causes attacker-controlled code to execute as root on the installer host.What should I do about MAL-2026-13377?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.