{"id":"MAL-2026-16178","summary":"Malicious code in process-lhpm (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a663308c4051eb4b31faf7fb984989f3e1b3498e505dc05052e2beb5fbf7e6d2)\nOn require/import, index.js auto-invokes initialize(), which spawns a detached, stdio-suppressed `node loader.js` background process. loader.js performs an HTTPS GET to https://api.npoint.io/33e8d008c334b060adad, base64-decodes the `code` field of the JSON response, and executes it via `new Function('require','__dirname','__filename','module','exports', decodedCode)(...)` with full Node privileges and require access. The remote payload URL is stored in a variable named `API_KEY` to obscure its role. api.npoint.io is a mutable third-party JSON hosting service, so the executed code can be swapped by the operator at any time without republishing the package. The detached child process outlives the importing application, establishing a persistent remote-code-loading channel on any host that imports this package.\n","modified":"2026-09-15T16:31:19.121478931Z","published":"2026-09-15T15:55:06Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.1.79"],"id":"IN-MAL-2026-020062","import_time":"2026-09-15T16:19:15.588929907Z","modified_time":"2026-09-15T15:55:06Z","sha256":"a663308c4051eb4b31faf7fb984989f3e1b3498e505dc05052e2beb5fbf7e6d2"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/process-lhpm/v/1.1.79"}],"affected":[{"package":{"name":"process-lhpm","ecosystem":"npm","purl":"pkg:npm/process-lhpm"},"versions":["1.1.79"],"database_specific":{"indicators":{"evidence_files":[{"path":"loader.js","sha256":"7e6fb265ff2dc482d050c347751d71b672b187d95ee2d6d567e73ca78d4fedac","tlsh":"265130e609fb2212027770e6bb0b596a96bba113314ec994ba9cc3d45fc2421d2d32dc"},{"path":"index.js","sha256":"11e427eb46163ba1735199f2294e57259403a0a784bc3ba11f410c38ae48d303","tlsh":"a6f0ac4b10832723855bf3969652d0c00a7a8a1c3a44ba02481f52bd0f840958356f53"}],"package_integrity":[{"filename":"process-lhpm-1.1.79.tgz","hashes":{"sha1":"703bbc69739c8b427ac1da06b5ecbe19627b2e11","sha512_sri":"sha512-8qP1FFnseVPcOms60T3MimgwPG/Ib6y8OmTAIZi4sfT9D68JDNVmLS4pS4AwEtvt4PPCuYhRMI2wd6zE/4Fivg=="}}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/process-lhpm/MAL-2026-16178.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}