MAL-2026-10405: Malicious code in @torbeck/heap (npm)
The @torbeck/heap npm package is a malicious typosquatting package impersonating the legitimate @datastructures-js/heap library. It contains heavily obfuscated code that executes at require-time to download and execute a hidden binary payload on the host system without any signature verification. The malicious payload supports Windows, Linux, and macOS platforms and runs detached from the parent process. This package versions 4.3.10, 4.3.11, and 4.3.14 are affected. There is no official patch or remediation guidance available.
AI Analysis
Technical Summary
@torbeck/heap is a malicious npm package designed to impersonate the legitimate @datastructures-js/heap package by copying its README and metadata. It exports the genuine Heap class to appear functional but appends a heavily obfuscated payload that, upon requiring the package, derives an AES key to decrypt a hidden URL. It then downloads a binary payload to the system temporary directory, writes lock and metadata files, sets executable permissions, and spawns the binary detached from the parent process. The payload includes platform-specific handling for Windows, Linux, and macOS. The downloaded binary's purpose is unrelated to heap data structures, indicating malicious intent. No version pinning or signature verification is performed on the downloaded binary, increasing risk. This is an install/require-time remote code execution (RCE) dropper delivered via typosquatting.
Potential Impact
Users installing or requiring @torbeck/heap versions 4.3.10, 4.3.11, or 4.3.14 risk remote code execution on their systems. The package downloads and executes an unsigned, concealed binary payload with elevated control over the host environment. This can lead to system compromise, persistence, and potentially further malicious activity. The malicious code runs immediately upon require, increasing the risk of exploitation in automated build or deployment pipelines.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing or requiring the @torbeck/heap package, especially versions 4.3.10, 4.3.11, and 4.3.14. Verify package names carefully to avoid typosquatting attacks and prefer the legitimate @datastructures-js/heap package. Monitor dependency manifests and lockfiles to detect and remove any references to @torbeck/heap. Consider using package integrity verification tools and supply chain security measures to prevent installation of malicious packages.
MAL-2026-10405: Malicious code in @torbeck/heap (npm)
Description
The @torbeck/heap npm package is a malicious typosquatting package impersonating the legitimate @datastructures-js/heap library. It contains heavily obfuscated code that executes at require-time to download and execute a hidden binary payload on the host system without any signature verification. The malicious payload supports Windows, Linux, and macOS platforms and runs detached from the parent process. This package versions 4.3.10, 4.3.11, and 4.3.14 are affected. There is no official patch or remediation guidance available.
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
@torbeck/heap is a malicious npm package designed to impersonate the legitimate @datastructures-js/heap package by copying its README and metadata. It exports the genuine Heap class to appear functional but appends a heavily obfuscated payload that, upon requiring the package, derives an AES key to decrypt a hidden URL. It then downloads a binary payload to the system temporary directory, writes lock and metadata files, sets executable permissions, and spawns the binary detached from the parent process. The payload includes platform-specific handling for Windows, Linux, and macOS. The downloaded binary's purpose is unrelated to heap data structures, indicating malicious intent. No version pinning or signature verification is performed on the downloaded binary, increasing risk. This is an install/require-time remote code execution (RCE) dropper delivered via typosquatting.
Potential Impact
Users installing or requiring @torbeck/heap versions 4.3.10, 4.3.11, or 4.3.14 risk remote code execution on their systems. The package downloads and executes an unsigned, concealed binary payload with elevated control over the host environment. This can lead to system compromise, persistence, and potentially further malicious activity. The malicious code runs immediately upon require, increasing the risk of exploitation in automated build or deployment pipelines.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing or requiring the @torbeck/heap package, especially versions 4.3.10, 4.3.11, and 4.3.14. Verify package names carefully to avoid typosquatting attacks and prefer the legitimate @datastructures-js/heap package. Monitor dependency manifests and lockfiles to detect and remove any references to @torbeck/heap. Consider using package integrity verification tools and supply chain security measures to prevent installation of malicious packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10405
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ad9268715ace438f0510
Added to database: 07/13/2026, 09:19:14 UTC
Last enriched: 07/13/2026, 09:23:09 UTC
Last updated: 07/13/2026, 09:23:09 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.