boxy-constants (npm) · Malicious Code
Affects boxy-constantsSource GCVE Database
Malicious package : remove boxy-constants and rotate any secrets on hosts that installed it.
Data as of 24 Nov 2026, 15:37 UTC
Malicious package
Published to npm · OSV MAL-2026-13033
What to do
Remove boxy-constants 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 |
|---|---|---|
| npmboxy-constants | 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 npm package 'boxy-constants' version 35.2.7 contains malicious code that downloads and executes attacker-controlled binaries on the host system. It uses obfuscation techniques to evade detection, including dynamic API calls and decoy filenames. The malware fetches unsigned binaries specific to the OS and architecture, writes them to temporary locations, sets execution permissions, and runs them stealthily. It also uses DNS-TXT records as a fallback for host resolution and implements execution cooldowns to avoid repeated runs. Systems with this package installed should be considered fully compromised.