Malicious code in hashd-edu (npm)
The npm package hashd-edu contains malicious code that installs a remote shell backdoor. This backdoor activates both during installation and when the module is loaded, establishing communication with a hardcoded attacker server. It sends system identifiers and periodically polls for commands to execute, sending back command output. Any system with this package installed or running should be considered fully compromised. Immediate removal of the package and rotation of all secrets and keys is recommended, although full remediation may require a complete system rebuild due to potential persistent compromise.
AI Analysis
Technical Summary
The hashd-edu npm package versions 1.0.0, 1.0.1, 1.0.2, 1.0.4, and 1.0.5 include a malicious remote shell backdoor. The postinstall.js script forks a detached daemon that registers the infected machine with an attacker-controlled server and polls it every 30 seconds for commands, executing them via child_process.exec() and returning output. The main module index.js contains the same command-and-control logic, so requiring the package triggers the backdoor. This unconditional reverse-shell beacon to a hardcoded IP compromises any system using the package.
Potential Impact
Systems with hashd-edu installed or running are fully compromised, allowing attackers remote code execution and persistent control. All secrets and keys on the affected system should be considered exposed and must be rotated from a separate, trusted environment. Removing the package alone may not eliminate the attacker presence due to the backdoor's persistence and potential additional malware.
Mitigation Recommendations
Remove the hashd-edu package immediately from all affected systems. Rotate all secrets, credentials, and keys from a secure, uncompromised environment. Because the backdoor grants full control to attackers, consider rebuilding or thoroughly cleaning affected systems to ensure complete removal of malicious code. Monitor for any signs of persistent compromise. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in hashd-edu (npm)
Description
The npm package hashd-edu contains malicious code that installs a remote shell backdoor. This backdoor activates both during installation and when the module is loaded, establishing communication with a hardcoded attacker server. It sends system identifiers and periodically polls for commands to execute, sending back command output. Any system with this package installed or running should be considered fully compromised. Immediate removal of the package and rotation of all secrets and keys is recommended, although full remediation may require a complete system rebuild due to potential persistent compromise.
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 hashd-edu npm package versions 1.0.0, 1.0.1, 1.0.2, 1.0.4, and 1.0.5 include a malicious remote shell backdoor. The postinstall.js script forks a detached daemon that registers the infected machine with an attacker-controlled server and polls it every 30 seconds for commands, executing them via child_process.exec() and returning output. The main module index.js contains the same command-and-control logic, so requiring the package triggers the backdoor. This unconditional reverse-shell beacon to a hardcoded IP compromises any system using the package.
Potential Impact
Systems with hashd-edu installed or running are fully compromised, allowing attackers remote code execution and persistent control. All secrets and keys on the affected system should be considered exposed and must be rotated from a separate, trusted environment. Removing the package alone may not eliminate the attacker presence due to the backdoor's persistence and potential additional malware.
Mitigation Recommendations
Remove the hashd-edu package immediately from all affected systems. Rotate all secrets, credentials, and keys from a secure, uncompromised environment. Because the backdoor grants full control to attackers, consider rebuilding or thoroughly cleaning affected systems to ensure complete removal of malicious code. Monitor for any signs of persistent compromise. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6302
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-32g6-6p9r-rhrm"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a577ed568715ace43b3f86a
Added to database: 07/15/2026, 12:36:37 UTC
Last enriched: 07/15/2026, 12:44:51 UTC
Last updated: 07/31/2026, 05:04:44 UTC
Views: 45
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.
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.