{"id":"MAL-2026-17176","summary":"Malicious code in n8n-nodes-moonlet-helpers (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (937f80200481fb9bef57f6dc72e7ad55bee68982b1cb7a86b909c86c46e8b2ec)\nPackage 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.\n","modified":"2026-09-25T03:00:06.514133710Z","published":"2026-09-25T02:40:24Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-020541","import_time":"2026-09-25T02:45:28.833479647Z","modified_time":"2026-09-25T02:40:24Z","sha256":"937f80200481fb9bef57f6dc72e7ad55bee68982b1cb7a86b909c86c46e8b2ec"},{"sha256":"fe3c30c7100c080a1f0c265a5c4f51f93b5c970eda7531a5f7d91c1114bae554","source":"amazon-inspector","versions":["1.0.4"],"id":"IN-MAL-2026-020542","import_time":"2026-09-25T02:45:28.862114203Z","modified_time":"2026-09-25T02:40:31Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/n8n-nodes-moonlet-helpers/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/n8n-nodes-moonlet-helpers/v/1.0.4"}],"affected":[{"package":{"name":"n8n-nodes-moonlet-helpers","ecosystem":"npm","purl":"pkg:npm/n8n-nodes-moonlet-helpers"},"versions":["1.0.0","1.0.4"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"57ca4cffba58dc9cb3dbf77dfbd201fd9183cfb5cfb738c4f61ab74b2829eb4a","tlsh":"c10120e751f180106b3240dce063b53fa507f00166429de0f85c85234fc16bd493b5f8"}],"package_integrity":[{"filename":"n8n-nodes-moonlet-helpers-1.0.0.tgz","hashes":{"sha1":"a021317979bd87040aaa6a70b65255de3a9bbf0c","sha512_sri":"sha512-X7dccg2qEkYT5YeFcaYxLL9gNiaeh7lFwJYhm3YXSBWWxNX0f9Oy9fLk9bOLrCcyQmUnFxW5ZfP9rYQgfDTzVA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/n8n-nodes-moonlet-helpers/MAL-2026-17176.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}