disksweep (npm) · Malicious Code
Affects disksweepSource GCVE Database
Malicious package : remove disksweep and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:55 UTC
Malicious package
Published to npm · OSV MAL-2026-6535
What to do
Remove disksweep from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmdisksweep | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.