MAL-2026-14385Malicious code in hydration-dim-kit (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | hydration-dim-kit | * |
| npm | hydration-dim-kit | 1.0.0 |
{"schema_version":"1.7.4","id":"MAL-2026-14385","published":"2026-08-23T17:23:33Z","modified":"2026-08-24T05:22:17.270660992Z","aliases":["GHSA-p33f-w7x3-mxrr"],"summary":"Malicious code in hydration-dim-kit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3659ec02e8317602c089b822a4a0533bee515d9666d07fdaf3cdf8b315a46147)\nOn import, dist/index.mjs verifies a SHA-256 digest of a bundled Linux x86_64 ELF at dist/internal/calc.dat, chmods it to 0755, and spawns it detached with piped stdio from a top-level async IIFE. The binary is documented in the README as a 'native math accelerator', but its strings identify it as a REDSHELL remote-access implant that beacons to hardcoded C2 endpoint 217.60.77.63 using a 'SECURE_BEACON|...|REDSHELL' framing. The implant exposes a full remote-command menu including shell execution, SOCKS5 proxying, TCP port forwarding, ELF download and in-memory execution via memfd_create, shellcode download and execution, /ssh_keys, /creds, /dbfind, /clipboard, /env, /adduser, /enableuser, and a BIGEXTRACT chunked file-exfil streamer that POSTs octet-stream chunks to /api/extract-receive on the C2. For persistence, the implant writes ~/.config/systemd/user/svc-update.service (Description='System Update Service', ExecStart pointing at /proc/self/exe, Restart=always) and runs 'systemctl --user daemon-reload && systemctl --user enable --now svc-update.service' to survive reboot under a disguised name. Package name and stated purpose (calendar-day hydration math) are unrelated to the binary's actual capabilities; the 'calc.dat' filename and 'compiled math-core' framing are cover story.\n\n## Source: ghsa-malware (160a3dfc2bb67aac05d56a19d9b87ab7d75a6ae84dbe497cbffcc14cf0671983)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"hydration-dim-kit","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"dist/index.mjs","sha256":"1e5bd457563f57342f5f077c3701cbb8b7010cec96e9d5d502d4bb8c3206aac3","tlsh":"63417466afbd633897fc0782ce387193196994430f92e994d94d4b3871c0b58e7c0a75"},{"path":"dist/internal/calc.dat","sha256":"1cafe9068460d856d5646c4f8f775132c1142ffef7f4b8ea7dbfeb9fbd07ff96","tlsh":"3a531a2bbdc28e3fc084d53087dfd42369b0b05aaa33752f26115f293d59a59473f62a"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p33f-w7x3-mxrr"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/hydration-dim-kit/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-p33f-w7x3-mxrr","import_time":"2026-08-23T18:24:44.718008115Z","modified_time":"2026-08-23T17:23:33Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"160a3dfc2bb67aac05d56a19d9b87ab7d75a6ae84dbe497cbffcc14cf0671983","source":"ghsa-malware"},{"id":"IN-MAL-2026-018598","import_time":"2026-08-24T05:20:13.335359805Z","modified_time":"2026-08-24T05:05:49Z","sha256":"3659ec02e8317602c089b822a4a0533bee515d9666d07fdaf3cdf8b315a46147","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0