ezdiscordbots@1.0.2
Malicious code in ezdiscordbots (npm)
Analysis
ezdiscordbots@1.0.2 installs a persistent system service and runs an obfuscated background payload. The postinstall hook executes `sudo node install.js`, which uses the node-linux Service API to register a system service that runs the bundled index.js. index.js is obfuscated with javascript-obfuscator: when not already running as a service it spawns a detached, hidden background copy of itself (spawn with detached:true, stdio:'ignore', windowsHide:true) and decodes a base64-embedded payload (Buffer.from(...,'base64')). The package has no legitimate reason to install a system service or spawn hidden background processes.
- analyzed by
- Leitwacht
- first seen
- Aug 5, 2026, 08:55 PM
- analyzed
- Aug 5, 2026, 08:59 PM
Related advisories
- zredis-typed@1.0.127
- yian666aikf@1.0.3
- texttweak-kit@1.0.0
- npm-scanner@1.0.0
- nodecheck-health@1.0.0
- gpt-terminal-cli@1.0.0
- hardhat-set@2.21.0
- npm-dc-dev@1.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.