MAL-2026-14431

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hydration-ui-dim/MAL-2026-14431.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14431
Aliases
  • GHSA-79qw-ww45-gpfp
Published
2026-08-24T16:31:13Z
Modified
2026-08-24T17:30:11.909812931Z
Summary
Malicious code in hydration-ui-dim (npm)
Details

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

Source: amazon-inspector (64f9565680b71c54ed88e29ed3950f1561764f4b86a260a3ebb5eadb528edfa3)

On import 'hydration-ui-dim', dist/index.mjs runs a top-level async IIFE that chmods dist/internal/calc-math.dat to 0755 and spawns it detached via childprocess. The file is a Linux x8664 ELF, not a math accelerator; the package's stated purpose is pure-JS calendar-day/streak math and requires no native binary. The bundled ELF is a full remote-control agent: it beacons over TLS to hardcoded IP 217.60.77.63 with a 'REDSHELL' / 'SECUREBEACON' tag, dispatches network-sourced commands into /bin/sh and /bin/bash, and exposes an operator command set including /sysinfo, /ps, /env, /ls, /cat, /download, /upload, /sshkeys, /creds, /dbfind, /dataextract, /clipboard, /spawn, and /adduser. It fetches second-stage payloads over plain HTTP from /Others/ and /SC/ endpoints on the C2 and executes them, including an in-memory memfdcreate path (syscall 319) to run downloaded ELFs without touching disk, with a /tmp/.elfXXXXXX fallback. A /redshell persist command writes ~/.config/systemd/user/svc-update.service (Description='System Update Service', Restart=always) and enables it via systemctl --user enable --now, providing boot-time persistence under the installing user. Harvested filesystem trees, SSH keys, credential stores, database files, clipboard contents, and environment variables are chunked and uploaded via POST /api/extract-receive framed with BIGEXTRACTSTART/BIGEXTRACTEND markers. The ELF is disguised via a 'native math accelerator' cover story and a hardcoded SHA-256 'integrity verification' constant, but the JS math primitives are self-contained and never call into the binary.

Source: ghsa-malware (06360efa36a6c2d89b3aede7922b76793f0ffb748efe5f2c585106f5f2a8ebfe)

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": [
        {
            "versions": [
                "1.0.0"
            ],
            "import_time": "2026-08-24T16:49:14.204074696Z",
            "modified_time": "2026-08-24T16:44:27Z",
            "id": "IN-MAL-2026-018639",
            "sha256": "64f9565680b71c54ed88e29ed3950f1561764f4b86a260a3ebb5eadb528edfa3",
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-24T17:27:44.529352583Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-79qw-ww45-gpfp",
            "modified_time": "2026-08-24T16:31:14Z",
            "sha256": "06360efa36a6c2d89b3aede7922b76793f0ffb748efe5f2c585106f5f2a8ebfe",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / hydration-ui-dim

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "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."
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "dist/index.mjs",
            "sha256": "ce625e077788b922667a58c0ee01f025f95b7ee46f3e0ab0dd23f87e17d3cf2c",
            "tlsh": "16417466afbd632897fc0783ce387193196994430f92e984d94d4b3871c0b58e7c0965"
        },
        {
            "path": "dist/internal/calc-math.dat",
            "sha256": "1cafe9068460d856d5646c4f8f775132c1142ffef7f4b8ea7dbfeb9fbd07ff96",
            "tlsh": "3a531a2bbdc28e3fc084d53087dfd42369b0b05aaa33752f26115f293d59a59473f62a"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hydration-ui-dim/MAL-2026-14431.json"