MAL-2026-14429Malicious code in dim-hydration-ui (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | dim-hydration-ui | * |
| npm | dim-hydration-ui | 1.0.0 |
{"schema_version":"1.7.4","id":"MAL-2026-14429","published":"2026-08-24T16:44:38Z","modified":"2026-08-25T17:27:27.376302770Z","aliases":["GHSA-6797-g855-4767"],"summary":"Malicious code in dim-hydration-ui (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3fefcd7c94e6eed5b5a69ce9ad5f4489c6532472ec604e6d15e5a96f63c59e51)\nThe package is presented in its README as a set of day-math primitives, but dist/index.mjs runs a top-level async IIFE on import that chmod 0755's dist/internal/math.bin, verifies a hardcoded SHA-256, and cp.spawn's the ELF detached with stdio pipes. The shipped binary is not a math accelerator: strings inside dist/internal/math.bin identify it as a 'RedShell' remote-access implant with a command dispatcher exposing reverse-shell, /sysinfo, /ssh_keys, /creds, /dbfind, /clipboard, /env, /download, /upload, /dataextract, /shellcode, /memfd, SOCKS5 proxy, and port-forward capabilities. The implant beacons to a hardcoded C2 at 217.60.77.63, exfiltrates chunked file loot via HTTP POST /api/extract-receive, pulls follow-on payloads via curl over HTTP into memfd or /tmp with chmod +x, and installs user-level systemd persistence via svc-update.service. Simply importing the module launches a background process that gives a remote operator full shell, file, credential, and network control of the installer's host, with no advertised remote-access purpose and no user consent. The 'native math accelerator' naming and the SHA-256 integrity-pin framing serve as a cover story for the import-time C2 spawn.\n\n## Source: ghsa-malware (7f06c4a45969cedb7bedd514395820ff4f73696b8366f66142c7494233299846)\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":"dim-hydration-ui","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":"77087f69469ba5eaf871bc1ecee9e579d7aa8177cd9f441d813b03ee28a114ad","tlsh":"7d418666afbd532997fc0783ce38b193196d94430f92ed84d94d473871c0b58d7c0965"},{"path":"dist/internal/math.bin","sha256":"1cafe9068460d856d5646c4f8f775132c1142ffef7f4b8ea7dbfeb9fbd07ff96","tlsh":"3a531a2bbdc28e3fc084d53087dfd42369b0b05aaa33752f26115f293d59a59473f62a"}],"package_integrity":[{"filename":"dim-hydration-ui-1.0.0.tgz","hashes":{"sha1":"2594514fe1f8a15932d58495472b24a32c942b51","sha512_sri":"sha512-/hpJT+4HQ0l/Xf2Se08iWL5nDna3cxG8+3NWYX3EIGgmrnBWC9K9JWUgpbf2CS9TmyG+weEqNvRj0w5rREFbgg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dim-hydration-ui/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6797-g855-4767"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018640","import_time":"2026-08-24T16:49:14.254070885Z","modified_time":"2026-08-24T16:44:38Z","sha256":"3fefcd7c94e6eed5b5a69ce9ad5f4489c6532472ec604e6d15e5a96f63c59e51","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-6797-g855-4767","import_time":"2026-08-25T17:25:28.090459752Z","modified_time":"2026-08-25T16:48:34Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7f06c4a45969cedb7bedd514395820ff4f73696b8366f66142c7494233299846","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0