npm-dc-dev (npm) · Malicious Code
Affects npm-dc-devSource GCVE Database
Malicious package : remove npm-dc-dev and rotate any secrets on hosts that installed it.
Data as of 3 Dec 2026, 18:46 UTC
Malicious package
Published to npm · OSV MAL-2026-13378
What to do
Remove npm-dc-dev 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 |
|---|---|---|
| npmnpm-dc-dev | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (91248167ea052dfca231e837bd645444f362dc087be9a7c04f1cf4aeec4d6723) package.json declares `"postinstall": "node test.js"`. test.js top-level `require('.')`s index.js and awaits an exported `from_str()`. index.js consists of a single `Function("k4Wmku", "...")` invocation whose ~170KB body is encoded with a custom 85-character alphabet and a shuffled string array; standard deobfuscation does not recover the payload. On `npm install`, the postinstall hook constructs and runs this opaque code on the installer's machine, with `child_process`, `axios`, and `form-data` available as declared dependencies. Package metadata is generic (blank author and description, name `npm-dc-dev`) and no legitimate library surface is exported. The install-time construction and execution of an unreadable dynamic payload matches the install-time remote-code-execution pattern; no benign reason exists for this shape. ## Source: ghsa-malware (99ddb7088f9b4cd2dd195decd025a2242e0326c9c38bb867dd5dfd4861630014) 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.