devplatform-hooks (npm) · Malicious Code
Affects devplatform-hooksSource GCVE Database
Malicious package : remove devplatform-hooks and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 16:29 UTC
Malicious package
Published to npm · OSV MAL-2026-12711
What to do
Remove devplatform-hooks 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 |
|---|---|---|
| npmdevplatform-hooks | 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 devplatform-hooks npm package version 35.2.1 contains malicious code that, upon installation or import, downloads and executes a platform-specific payload. It uses obfuscated Cloudflare Workers URLs and a fallback DNS-TXT covert channel to fetch a binary, which is saved under disguised filenames and executed detached from the parent process. This behavior effectively makes the package a remote code execution dropper.