MAL-2026-12146Malicious code in beaver-ui-hooks (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | beaver-ui-hooks | * |
| npm | beaver-ui-hooks | 12.6.3 |
| npm | beaver-ui-hooks | 34.4.2 |
| npm | beaver-ui-hooks | 35.3.5 |
{"schema_version":"1.7.4","id":"MAL-2026-12146","published":"2026-08-05T08:53:53Z","modified":"2026-08-06T01:00:37.744879511Z","aliases":["GHSA-cwhj-ccq9-hv73"],"summary":"Malicious code in beaver-ui-hooks (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (86ba5710d957735b0f3fde73e6b6ba99347296b8dc992db5f1807924f3ffc139)\nThe 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_<hex> on Unix, dotnet_diag_<hex>.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.\n\n## Source: ghsa-malware (f5a1e30a7990931ff5444563b7075bb0571d6924bac069bc78c4c2f288f6b4b8)\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":"beaver-ui-hooks","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["34.4.2","12.6.3","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=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/beaver-ui-hooks/v/34.4.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/beaver-ui-hooks/v/12.6.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/beaver-ui-hooks/v/35.3.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cwhj-ccq9-hv73"}],"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"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0