{"id":"MAL-2026-13377","revision":"2eff8df950e540f69025c5a0582033c0","records":[{"revision":"2eff8df950e540f69025c5a0582033c0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13377","aliases":[],"title":"Malicious code in ezdiscordbots (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a715452291e1bd779802f51dc90eca91740307e0bee7b9e2ca94f6f863f6a921)\npackage.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.\n","state":0,"publishedAt":"2026-08-05T21:18:27+00:00","modifiedAt":"2026-08-05T22:19:51.0402458+00:00","affected":[{"ecosystem":"npm","name":"ezdiscordbots","ranges":[],"versions":["1.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/ezdiscordbots/v/1.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13377","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13377","identifiers":["MAL-2026-13377"]},"retained":false,"historicalAffected":[]}],"coverage":[]}