MAL-2026-10402: Malicious code in @gleamkit/ws (npm)
The npm package @gleamkit/ws version 8.21.3 is a malicious package that impersonates the legitimate ws package by copying its metadata and source code. It contains a heavily obfuscated payload that, upon loading, fetches an external encrypted binary, decrypts it, writes it to the temporary directory, makes it executable, and runs it as a detached child process before exiting. This behavior executes attacker-controlled code on any project that installs and loads this package.
AI Analysis
Technical Summary
The @gleamkit/ws package version 8.21.3 is a malicious npm package designed to masquerade as the legitimate ws package by duplicating its description, homepage, repository, author, and README. It bundles the genuine ws source code but appends a heavily obfuscated payload in lib/websocket.js. This payload reconstructs runtime data to fetch an external binary over HTTPS, decrypts it using AES-256-GCM, writes it to the OS temporary directory, sets executable permissions, and spawns it as a detached child process with hidden windows. The process then exits immediately. This execution is triggered simply by requiring or importing the package, causing any project that loads @gleamkit/ws to run attacker-controlled code.
Potential Impact
Any project that installs and loads the malicious @gleamkit/ws package version 8.21.3 will execute attacker-controlled code fetched remotely at runtime. This can lead to arbitrary code execution on the host system, potentially compromising confidentiality, integrity, and availability of the affected environment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove the @gleamkit/ws package version 8.21.3 from their projects and avoid installing or loading this package. Verify dependencies to ensure this malicious package is not present. Monitor for updates from the npm registry or relevant security advisories for any official remediation or replacement guidance. Since this is a malicious package impersonating a legitimate one, rely on trusted package sources and verify package integrity before installation.
MAL-2026-10402: Malicious code in @gleamkit/ws (npm)
Description
The npm package @gleamkit/ws version 8.21.3 is a malicious package that impersonates the legitimate ws package by copying its metadata and source code. It contains a heavily obfuscated payload that, upon loading, fetches an external encrypted binary, decrypts it, writes it to the temporary directory, makes it executable, and runs it as a detached child process before exiting. This behavior executes attacker-controlled code on any project that installs and loads this package.
Affected software
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
Technical Analysis
The @gleamkit/ws package version 8.21.3 is a malicious npm package designed to masquerade as the legitimate ws package by duplicating its description, homepage, repository, author, and README. It bundles the genuine ws source code but appends a heavily obfuscated payload in lib/websocket.js. This payload reconstructs runtime data to fetch an external binary over HTTPS, decrypts it using AES-256-GCM, writes it to the OS temporary directory, sets executable permissions, and spawns it as a detached child process with hidden windows. The process then exits immediately. This execution is triggered simply by requiring or importing the package, causing any project that loads @gleamkit/ws to run attacker-controlled code.
Potential Impact
Any project that installs and loads the malicious @gleamkit/ws package version 8.21.3 will execute attacker-controlled code fetched remotely at runtime. This can lead to arbitrary code execution on the host system, potentially compromising confidentiality, integrity, and availability of the affected environment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove the @gleamkit/ws package version 8.21.3 from their projects and avoid installing or loading this package. Verify dependencies to ensure this malicious package is not present. Monitor for updates from the npm registry or relevant security advisories for any official remediation or replacement guidance. Since this is a malicious package impersonating a legitimate one, rely on trusted package sources and verify package integrity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10402
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54adea68715ace438f6a70
Added to database: 07/13/2026, 09:20:42 UTC
Last enriched: 07/13/2026, 09:48:04 UTC
Last updated: 07/13/2026, 09:48:04 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.