cvelo
P2 · HighMalware

Malicious code in n8n-nodes-moonlet-helpers (npm)

  • GHSA-hh4f-fhfw-7vgw
  • MAL-2026-17176
  • SNYK-JS-N8NNODESMOONLETHELPERS-20153874

Description

Package presents itself as n8n helper nodes but ships an empty stub `index.js` (`module.exports = {}`) and no functional node modules. On `npm install`, `postinstall.js` runs automatically: it performs an HTTPS GET to `https://mkicom.com/.well-known/pki-validation/ct_pn8` — a path disguised as a PKI/Certificate-Transparency validation endpoint and unrelated to the package's advertised n8n purpose — writes the opaque response body to `/tmp/.np`, chmods it 0755, and executes it via `spawn('/bin/sh', ['-c', 'setsid /tmp/.np... &'], {detached: true})` so the process survives npm exit. There is no hash, signature, or version pinning on the downloaded bytes. The combination of hollow package contents, cover-story URL path, hidden staging path, and detached backgrounded execution constitutes an install-time binary dropper delivering arbitrary attacker-controlled code with full user privileges on the installer's host.

Text from the OSV record.

Affected

  • n8n-nodes-moonlet-helpersnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.