MAL-2026-12146

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/beaver-ui-hooks/MAL-2026-12146.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12146
Aliases
  • GHSA-cwhj-ccq9-hv73
Published
2026-08-05T08:53:53Z
Modified
2026-08-06T01:20:07Z
Summary
Malicious code in beaver-ui-hooks (npm)
Details

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

Source: amazon-inspector (86ba5710d957735b0f3fde73e6b6ba99347296b8dc992db5f1807924f3ffc139)

The package's declared main (index.js) unconditionally loads ext.js, which on require fetches a platform-specific binary from obfuscated Cloudflare Workers hosts (oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf99-9b3.workers.dev), writes it to a temporary path under hidden filenames (.cache on Unix, dotnet_diag_.exe on Windows), sets executable permissions via fs.chmodSync(path, 0o755), and spawns it detached via cp.spawn("/bin/sh", ["-c", fp+" &"], {detached:true}) or cmd. When HTTPS fetch fails, _ext.js falls back to DNS TXT resolution against *.dl.wel1.ru (sdk., ext., pkg., net.), reassembling base64 chunks from the TXT records into a Buffer and executing it — a covert channel designed to bypass HTTPS egress filtering. Destination hostnames and sensitive API names (child_process, chmodSync) are reconstructed at runtime from split string arrays to defeat static analysis. Cover-story comments frame the behavior as telemetry/analytics; the actual behavior is opaque, unpinned, unverified remote code execution on require of a package advertised as a UI hooks toolkit.

Source: ghsa-malware (f5a1e30a7990931ff5444563b7075bb0571d6924bac069bc78c4c2f288f6b4b8)

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": [
        {
            "id": "IN-MAL-2026-014461",
            "import_time": "2026-08-05T09:28:14.283608853Z",
            "modified_time": "2026-08-05T08:53:53Z",
            "sha256": "86ba5710d957735b0f3fde73e6b6ba99347296b8dc992db5f1807924f3ffc139",
            "source": "amazon-inspector",
            "versions": [
                "34.4.2"
            ]
        },
        {
            "id": "IN-MAL-2026-014464",
            "import_time": "2026-08-05T09:28:14.749538022Z",
            "modified_time": "2026-08-05T08:54:16Z",
            "sha256": "b87cfe40dd30fac02d32f1b290dba2de7fb3747ef0ea939d594502e785457ee5",
            "source": "amazon-inspector",
            "versions": [
                "12.6.3"
            ]
        },
        {
            "id": "IN-MAL-2026-015569",
            "import_time": "2026-08-05T15:19:58.36783206Z",
            "modified_time": "2026-08-05T15:06:27Z",
            "sha256": "1e71ef9ce78034f187082deca25f97d033772fb7b3a14994af91863a2b106724",
            "source": "amazon-inspector",
            "versions": [
                "35.3.5"
            ]
        },
        {
            "id": "GHSA-cwhj-ccq9-hv73",
            "import_time": "2026-08-06T00:58:53.356240571Z",
            "modified_time": "2026-08-05T17:52:51Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "f5a1e30a7990931ff5444563b7075bb0571d6924bac069bc78c4c2f288f6b4b8",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / beaver-ui-hooks

Package

Name
beaver-ui-hooks
View open source insights on deps.dev
Purl
pkg:npm/beaver-ui-hooks

Affected ranges

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

Affected versions

12.*
12.6.3
34.*
34.4.2
35.*
35.3.5

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"
    },
    {
        "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": "_ext.js",
            "sha256": "f5b9c3bbcdaab493894d1c5c8104c8a6dcae64ca51d812a72641c56dadf7d40c",
            "tlsh": "18b17696066670194bb097e4cb1b9816fa5ff6633780c284fb5ca5845f76224c3b2efc"
        }
    ],
    "package_integrity": [
        {
            "filename": "beaver-ui-hooks-34.4.2.tgz",
            "hashes": {
                "sha1": "ce3ce2f5cf33b6d476891415503539688ca52b4c",
                "sha512_sri": "sha512-XL+Ok0gRruBi/RYoqkvcaYyKVldaGsltXa93d7euWMcMx6MBsXxUQGdcLprCo96hjwbg/1/ENhgf6wR9RwdT4A=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/beaver-ui-hooks/MAL-2026-12146.json"