MAL-2026-14489

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hydration-cls-ui/MAL-2026-14489.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14489
Aliases
  • GHSA-q635-2q7j-grxm
Published
2026-08-25T08:54:29Z
Modified
2026-08-25T23:49:41.792745797Z
Summary
Malicious code in hydration-cls-ui (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (01c60e3a0dd707077bad78ec7f0e5f79032dc9b86814d65bfd0083275a6059de)

The package advertises itself as a dependency-free streak/date-math library but ships an x8664 Linux ELF at dist/internal/calc.dat and auto-launches it. The main module dist/index.mjs contains a top-level IIFE that resolves the binary path, verifies a hardcoded SHA-256, chmods it to 0755, and spawns it detached via cp.spawn with stdio 'pipe' and shell false — running the moment any consumer imports the package. The internal daymath.mjs ensureEngine() is a stub returning true, so the ELF has no computational role. Strings inside calc.dat identify a full remote-access tool ("RedShell") with a /redshell command dispatcher exposing socks, portfwd, bin, elf, and persist subcommands, a SOCKS5 proxy, TCP port forwarding, arbitrary /bin/sh command execution with output capture, and TLS beaconing (libssl.so.3) to a hardcoded C2 at 217.60.77.63. Second-stage delivery uses curl to fetch ELF payloads from http://217.60.77.63/Others/<file> and shellcode from http://217.60.77.63/SC/<file>, executed via memfdcreate (syscall 319) or /tmp/.elfXXXXXX staging with chmod +x, plus a dropper reference to https://litterbox.catbox.moe/resources/internals/api.php. Bulk exfiltration is implemented as chunked POST /api/extract-receive HTTP/1.1 with Content-Type: application/octet-stream to the C2, alongside /ssh_keys, /creds, /dbfind, /download, /upload, /env, and /clipboard handlers that harvest SSH keys, credential stores, environment variables, and clipboard contents. Persistence is installed by writing ~/.config/systemd/user/svc-update.service (Description="System Update Service", ExecStart=/proc/self/exe, Restart=always) and enabling it with systemctl --user daemon-reload && systemctl --user enable --now, with additional cron, ~/.bashrc, and XDG-autostart branches. The README lists the shipped file as internal/calc-cache.bin while the actual name is internal/calc.dat, and wrapper comments describe it as a "native math accelerator" and "integrity verification — critical security gate", disguising the ELF payload.

Source: ghsa-malware (628b7508310fe67276a7ee0ff9092fe34ee0991867fc4e620addaf35aaa1771e)

Any 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-25T09:18:05.667418236Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-018736",
            "modified_time": "2026-08-25T08:54:29Z",
            "sha256": "01c60e3a0dd707077bad78ec7f0e5f79032dc9b86814d65bfd0083275a6059de"
        },
        {
            "import_time": "2026-08-25T17:25:28.276447115Z",
            "source": "ghsa-malware",
            "id": "GHSA-q635-2q7j-grxm",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-08-25T16:47:36Z",
            "sha256": "628b7508310fe67276a7ee0ff9092fe34ee0991867fc4e620addaf35aaa1771e"
        }
    ]
}
References
Credits

Affected packages

npm / hydration-cls-ui

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hydration-cls-ui/MAL-2026-14489.json"
indicators
{
    "evidence_files": [
        {
            "path": "dist/index.mjs",
            "tlsh": "3f417466afbd632897fc0782ce387193196994430f92e994d94d4b3871c0b58e7c0965",
            "sha256": "7e5c49845b216300d90613b2be1ba2e774a62f42d7a1e4b603d085531e3b5a7d"
        },
        {
            "path": "dist/internal/calc.dat",
            "tlsh": "3a531a2bbdc28e3fc084d53087dfd42369b0b05aaa33752f26115f293d59a59473f62a",
            "sha256": "1cafe9068460d856d5646c4f8f775132c1142ffef7f4b8ea7dbfeb9fbd07ff96"
        }
    ],
    "package_integrity": [
        {
            "filename": "hydration-cls-ui-1.0.0.tgz",
            "hashes": {
                "sha1": "77e1f012e52cd0c5a3bab51da75ab198f74e6632",
                "sha512_sri": "sha512-smw8q+CVm1lPQVAbbP9teq1jgtFmBjBjEmwnssITUwzgZ004hxCM8Tvgxa4FLLCmUT7ohP5OcIJJj+bhZIvqXg=="
            }
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]