MAL-2026-6535: Malicious code in disksweep (npm)
The disksweep npm package versions 1.0.0 and 3.0.0 include a hidden 2.9 MB Windows PE32+ native binary at bin/native/parser.node that is not documented in the README or CHANGELOG. This binary is loaded via a native Node.js addon loader in src/index.js, granting full foreign function interface (FFI) access to the host process. The package falsely claims zero runtime dependencies, and metadata such as repository and bug URLs are placeholders, obscuring maintainer identity. Although the native binary loader is currently dormant due to module system mismatches, a simple patch could activate it, enabling execution of the opaque native payload. This pattern indicates a staged malicious payload within the package.
AI Analysis
Technical Summary
The disksweep npm package (versions 1.0.0 and 3.0.0) contains a large undocumented Windows PE32+ native binary loaded as a native Node.js addon via process.dlopen, providing full FFI access to the host environment. The package's README falsely claims no runtime dependencies, contradicting the presence of this opaque native code. Metadata fields such as repository and bug URLs are placeholders, and the author is generically listed, suggesting weak attribution. The native binary loader is currently ineffective due to ESM module type conflicts with CommonJS globals, but a minor code change could enable the binary, activating a malicious payload. This constitutes a staged native payload pattern indicative of malicious intent.
Potential Impact
If activated, the native binary could execute arbitrary code with the privileges of the Node.js process, potentially compromising the host system. The presence of an opaque native payload with full FFI access poses a significant security risk, including unauthorized code execution and system compromise. Currently, the malicious code is dormant due to module system incompatibilities, but this can be trivially bypassed, exposing users to active exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or using disksweep versions 1.0.0 and 3.0.0. Monitor the vendor or package repository for updates or official advisories. Given the package metadata obscures maintainer identity and the package contains a hidden native binary, it is recommended to remove this package from environments and replace it with trusted alternatives. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
MAL-2026-6535: Malicious code in disksweep (npm)
Description
The disksweep npm package versions 1.0.0 and 3.0.0 include a hidden 2.9 MB Windows PE32+ native binary at bin/native/parser.node that is not documented in the README or CHANGELOG. This binary is loaded via a native Node.js addon loader in src/index.js, granting full foreign function interface (FFI) access to the host process. The package falsely claims zero runtime dependencies, and metadata such as repository and bug URLs are placeholders, obscuring maintainer identity. Although the native binary loader is currently dormant due to module system mismatches, a simple patch could activate it, enabling execution of the opaque native payload. This pattern indicates a staged malicious payload within the 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 disksweep npm package (versions 1.0.0 and 3.0.0) contains a large undocumented Windows PE32+ native binary loaded as a native Node.js addon via process.dlopen, providing full FFI access to the host environment. The package's README falsely claims no runtime dependencies, contradicting the presence of this opaque native code. Metadata fields such as repository and bug URLs are placeholders, and the author is generically listed, suggesting weak attribution. The native binary loader is currently ineffective due to ESM module type conflicts with CommonJS globals, but a minor code change could enable the binary, activating a malicious payload. This constitutes a staged native payload pattern indicative of malicious intent.
Potential Impact
If activated, the native binary could execute arbitrary code with the privileges of the Node.js process, potentially compromising the host system. The presence of an opaque native payload with full FFI access poses a significant security risk, including unauthorized code execution and system compromise. Currently, the malicious code is dormant due to module system incompatibilities, but this can be trivially bypassed, exposing users to active exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or using disksweep versions 1.0.0 and 3.0.0. Monitor the vendor or package repository for updates or official advisories. Given the package metadata obscures maintainer identity and the package contains a hidden native binary, it is recommended to remove this package from environments and replace it with trusted alternatives. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6535
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef78c27e9c79719ff4890
Added to database: 06/26/2026, 22:05:00 UTC
Last enriched: 06/26/2026, 22:14:58 UTC
Last updated: 06/26/2026, 22:14:58 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.