{"id":"MAL-2026-15900","summary":"Malicious code in hydration-ui-pkg (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d848dd11c0e0692f1f47c8fcb3cb0506316e96ab32f8b63a8913ad67e9570318)\nPackage main (dist/index.mjs) locates dist/internal/mathcalc.mjs — a raw x86_64 ELF binary shipped under an.mjs extension and described in the README as a 'native math accelerator' — chmods it to 0755, verifies a pinned SHA-256, and spawns it detached via child_process.spawn on any require/import of the package. daymath.mjs contains a stub function with a comment stating it exists to make the math functions 'look like they rely on the binary', confirming the cover story. The ELF is a full remote-access implant (REDSHELL/SECURE_BEACON) that beacons to hardcoded C2 IP 217.60.77.63 and exfiltrates to https://litterbox.catbox.moe/resources/internals/api.php. Operator commands include /ssh_keys, /creds, /dbfind, /download and /dataextract for harvesting installer SSH private keys, credentials and databases, streamed chunked to POST /api/extract-receive. /redshell elf and /redshell bin fetch additional ELFs and shellcode over TLS-disabled HTTP into memfd (memfd_create syscall 319) or /tmp/.elf_XXXXXX and /tmp/.sc_XXXXXX for in-memory execution. /redshell persist writes ~/.config/systemd/user/svc-update.service (Description=System Update Service, Restart=always) and enables it via systemctl --user for login persistence. Extension-mismatched ELF, fake dependency stub, cover-story README, and hardcoded non-first-party C2 confirm intentional trojanization.\n","modified":"2026-09-04T04:30:05.852130973Z","published":"2026-09-04T03:44:53Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-09-04T04:21:20.590616337Z","modified_time":"2026-09-04T03:44:53Z","sha256":"d848dd11c0e0692f1f47c8fcb3cb0506316e96ab32f8b63a8913ad67e9570318","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-019446"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hydration-ui-pkg/v/1.0.0"}],"affected":[{"package":{"name":"hydration-ui-pkg","ecosystem":"npm","purl":"pkg:npm/hydration-ui-pkg"},"versions":["1.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"3f414266afbd532893fc07828e387193296994430f92e984d94d4b3871c0b98e7c496a","path":"dist/index.mjs","sha256":"5603d7db47d412f2eeb28f8a8da63b855e5016eb45e9ce9dc4232a81def21054"},{"sha256":"1cafe9068460d856d5646c4f8f775132c1142ffef7f4b8ea7dbfeb9fbd07ff96","tlsh":"3a531a2bbdc28e3fc084d53087dfd42369b0b05aaa33752f26115f293d59a59473f62a","path":"dist/internal/mathcalc.mjs"}],"package_integrity":[{"hashes":{"sha1":"193a7d4e1514597d81fcc629e3ad5c13b580fa55","sha512_sri":"sha512-0Ujeqk8dNC1pGj6mMmT3UWaN0rPgjVZCxMLyUNHOMt9AY5qgMXGjhofDSFvji4+k34IEH9UPAozp5MxTBPvWwg=="},"filename":"hydration-ui-pkg-1.0.0.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hydration-ui-pkg/MAL-2026-15900.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}