Supply-chain threat intelligence

Incident detail

criticalnpm·typosquatting·osv

Malicious code in mjs-eslint-helper (npm)

mjs-eslint-helper

Risk score

92

AI summary

Indexed incident for mjs-eslint-helper (npm).

Description

The package decodes base64 string literals via Buffer.from(..., 'base64').toString() and pipes the resulting content into execSync('bash...') and execSync('zsh...') invocations in index.js (lines 9, 101, 117, 194, 195). This is the canonical fingerprint of an install-time/import-time dropper: an obfuscated payload is decoded and executed through a shell interpreter, giving the publisher arbitrary code execution on any machine that installs or requires this package. The package name impersonates the eslint helper namespace, consistent with a typosquat lure delivering an active payload. No legitimate eslint helper requires shelling out to bash/zsh from a base64-decoded blob.

Technical details

Affected versions

=4.0.1

Indicators

  • affected version=4.0.175%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents