Malicious code in hydration-ui-pkg (npm)
Description
The hydration-ui-pkg npm package version 1.0.0 contains a malicious ELF binary disguised as a native math accelerator. This binary acts as a remote-access implant that communicates with a hardcoded command-and-control server, enabling attackers to exfiltrate sensitive data such as SSH keys, credentials, and databases. The implant supports commands to download additional payloads and establish persistence via a systemd user service. The package uses obfuscation techniques including a fake dependency stub and mismatched file extensions to conceal its malicious intent.
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 hydration-ui-pkg version 1.0.0 includes a raw x86_64 ELF binary named dist/internal/mathcalc.mjs, which is executed upon package import. This binary is a remote-access trojan implant (REDSHELL/SECURE_BEACON) that connects to a hardcoded C2 IP (217.60.77.63) and exfiltrates data to a remote URL. It supports operator commands for harvesting SSH private keys, credentials, and databases, streaming stolen data via HTTP POST requests. Additional ELF binaries and shellcode can be fetched and executed in memory without TLS encryption. Persistence is achieved by writing and enabling a systemd user service named svc-update.service. The package employs deliberate deception through extension mismatches, a fake stub function, and hardcoded non-first-party C2 infrastructure, confirming intentional trojanization.
Potential Impact
This malicious package enables attackers to gain remote access to affected systems, steal sensitive credentials and databases, execute arbitrary code in memory, and maintain persistent access through systemd services. The presence of this implant on a system compromises confidentiality, integrity, and availability of the environment where the package is installed.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove the hydration-ui-pkg version 1.0.0 from their environments. Verify that no persistence mechanisms (such as systemd user services named svc-update.service) remain active and investigate for potential data exfiltration. Monitor for any connections to the hardcoded C2 IP 217.60.77.63 or the exfiltration URL. Since this is a malicious package, avoid using hydration-ui-pkg version 1.0.0 entirely.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15900
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4edacd9273b49b6782c
Added to database: 09/04/2026, 14:25:49 UTC
Last enriched: 09/07/2026, 16:24:07 UTC
Last updated: 10/04/2026, 05:13:56 UTC
Views: 19
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.