Skip to main content

Malicious code in beaver-ui-hooks (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 08:53:53 UTC)
Source: GCVE Database
Product: beaver-ui-hooks

Description

--- _-= 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_<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. ## 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.

Affected software

npmghsa
beaver-ui-hooks
Affected versions
=34.4.2=12.6.3=35.3.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 21:16:25 UTC

Technical Analysis

The beaver-ui-hooks npm package's main entry point (index.js) loads _ext.js, which fetches a platform-specific binary from obfuscated Cloudflare Workers URLs. This binary is saved to a temporary hidden file, permissions are set to executable, and it is spawned detached from the main process. If the HTTPS fetch fails, the package falls back to a covert channel using DNS TXT record resolution from *.dl.wel1.ru domains, reconstructing base64-encoded code chunks and executing them. Hostnames and sensitive API names are dynamically reconstructed at runtime to evade static analysis. The package masquerades this behavior as telemetry or analytics but actually performs unpinned, unverified remote code execution on require.

Potential Impact

This malicious package enables remote code execution on any system that installs and requires it, potentially allowing attackers to execute arbitrary code with the privileges of the running process. The covert fallback channel via DNS TXT records can bypass HTTPS egress filtering, increasing the risk of undetected compromise. The obfuscation and dynamic reconstruction of hostnames and API calls hinder detection and analysis.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately stop using the affected versions (=12.6.3, =34.4.2, =35.3.5) of beaver-ui-hooks. Audit and remove this package from projects and dependency trees. Employ supply chain security measures such as verifying package integrity and using trusted sources. Monitor for any suspicious activity related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-12146
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a738531bf8831d5394f072e

Added to database: 08/05/2026, 18:47:13 UTC

Last enriched: 08/05/2026, 21:16:25 UTC

Last updated: 09/07/2026, 22:21:21 UTC

Views: 21

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses