Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in express-dever (npm)

express-dever@5.1.8 on npm contains a malicious postinstall script that acts as a download-and-execute dropper, automatically executing on `npm install`. The obfuscated script fetches and runs arbitrary code from a hardcoded remote host.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system that ran `npm install express-dever@5.1.8` would execute the malicious postinstall script automatically.
Ecosystems
Attack vectors
Affected entities
  • express-dever · 5.1.8

express-dever@5.1.8 was published to npm with a malicious postinstall hook that executes automatically during package installation. The index.js file is heavily obfuscated using techniques including rotated string arrays, RC4/base64 decoders, hex-numeric constant folding, and control-flow flattening.\n\nWhen decoded, the script requires axios, fs, path, child_process, and os modules, then constructs a dotted-quad host string at runtime via repeated string concatenation. It performs an HTTP GET request to this hardcoded address, writes the response body to a file in the current working directory with write mode, and spawns the file as a child process with windowsHide:true.\n\nAdditional indicators of malicious intent include a self-referential floating dependency (express-dever: ^5.1.7), blank author and description fields, and a README instructing users to sandbox the file—all consistent with a throwaway malicious upload rather than a legitimate library.\n\nThe package was identified by Amazon Inspector and corroborated by the OpenSSF malicious-packages project (MAL-2026-13368).

Indicators of compromise

Packages
  • express-dever@5.1.8

Remediation

  • Immediately uninstall express-dever from all systems: `npm uninstall express-dever`
  • Audit npm install logs and process history on affected systems for evidence of the postinstall script execution
  • Review any files written to the current working directory during the time express-dever was installed
  • Check for unexpected network connections or spawned processes that may have resulted from the dropper payload
  • Regenerate any credentials or secrets that may have been exposed on affected systems
  • Update npm to the latest version and use `npm audit` to identify other potentially compromised dependencies
  • Consider using npm package lock files and integrity verification to prevent installation of unexpected package versions

Sources

  1. GitHub Advisory GHSA-p26f-w557-jgq6 · GitHub Advisory Database

Cite this entry

"Malicious code in express-dever (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 5, 2026; last updated August 5, 2026. https://supplychainattack.org/incident/malicious-code-in-express-dever-npm-1bhm7i

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-feed-models (npm)

    The npm package sme-rko-finance-front-operations-feed-models contained malicious code that downloads and executes attacker-controlled native binaries from remote servers upon package load. The malware uses obfuscation techniques including fragmented string arrays, platform-specific endpoints, and DNS TXT record fallbacks to evade detection.

    npmCompromised package
  2. resolvedcritical

    Malicious code in modern-localization (npm)

    The npm package modern-localization contained malicious code that fetches and executes arbitrary JavaScript from a remote jsonbin.io endpoint on server-side require, with no integrity verification. The payload is executed with full Node.js privileges via Function() or child_process.fork().

    npmCompromised package
  3. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-tax (npm)

    The npm package sme-rko-finance-front-operations-tax contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure on require. The package was identified and reported by OpenSSF's malicious-packages project.

    npmCompromised package
  4. resolvedcritical

    Malicious code in localization-fixer (npm)

    The npm package localization-fixer contained malicious code that fetches and executes arbitrary JavaScript from attacker-controlled jsonbin.io endpoints on package require, granting full Node.js capabilities to remote payloads.

    npmCompromised package