Malicious code in easydsbots (npm)
Description
The easydsbots npm package version 1.0.0 contains malicious code that executes with root privileges during installation. It uses an obfuscated install script triggered by a postinstall lifecycle hook that runs 'sudo node install.js', hiding its true behavior. The package also includes obfuscated runtime code and dependencies that enable it to register systemd or init.d services, indicating it attempts to install a persistent root-level daemon on the host system.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The easydsbots npm package (version 1.0.0) declares a postinstall script that runs 'sudo node install.js', escalating privileges to root during installation. The install.js script is heavily obfuscated using techniques such as rotated string arrays, hex-encoded property lookups, control-flow flattening, and self-defending stubs to conceal its behavior. The runtime code (index.js) is similarly obfuscated and decodes base64 strings at runtime. It checks for the 'INVOCATION_ID' environment variable, which is set when launched by systemd, and depends on the 'node-linux' library to register systemd or init.d service units. This combination strongly indicates the package attempts to install a root-persistent daemon on the host system during npm install, representing a malicious package designed for stealthy persistence.
Potential Impact
Installation of easydsbots version 1.0.0 can lead to unauthorized root-level code execution on the host system. The malicious postinstall script runs with escalated privileges, potentially allowing attackers to install persistent daemons that survive reboots and maintain control over the compromised system. This poses a significant risk of system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid installing easydsbots version 1.0.0. Audit existing systems for presence of this package and remove it if found. Monitor for unauthorized systemd or init.d service files that may have been installed. Exercise caution with npm packages that execute scripts with elevated privileges during installation. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14265
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4bfacd9273b49252355
Added to database: 08/19/2026, 13:50:55 UTC
Last enriched: 08/19/2026, 14:23:23 UTC
Last updated: 10/02/2026, 13:52:00 UTC
Views: 22
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.