MAL-2026-14472Malicious code in cscasereadserv-paypal (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | cscasereadserv-paypal | 3.4.3 |
{"modified":"2026-08-25T06:36:31Z","published":"2026-08-25T06:36:31Z","schema_version":"1.7.4","id":"MAL-2026-14472","summary":"Malicious code in cscasereadserv-paypal (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (336250fe38295375704495b6529ed6eb82f7006b6249c78ace08bc92d96d4bde)\ncscasereadserv-paypal@3.4.3 executes a preinstall script that auto-runs on `npm install`. The script collects the installer's OS username, hostname, and current working directory, then walks up parent directories to read the surrounding project's package.json name, author, and version. The collected JSON payload is hex-encoded and exfiltrated in chunks via DNS lookups to attacker-controlled subdomains under `jgl.red` (form: `<seq>.<hex>.x.da5u87oh92rc72pp1dngqfc6hp8gwshm6.o.jgl.red`), with a fallback DNS query on error. A source comment (`// x-hackerone: kokonut`) suggests dependency-confusion / bug-bounty reconnaissance framing, but the payload identifies the installer and discloses the name and version of the surrounding (likely private) parent package to a third party.\n","affected":[{"package":{"ecosystem":"npm","name":"cscasereadserv-paypal"},"versions":["3.4.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"preinstall.js","sha256":"f8160fba2da502d74d97c2fc8a0325298f050f48b754f0b50ae1bbf2bff26c00","tlsh":"2d41cc9fdceb0064b826223a97bf441532e7d3333611ded1b45ce6801fe246826c69e9"}],"package_integrity":[{"filename":"cscasereadserv-paypal-3.4.3.tgz","hashes":{"sha1":"4d8973b0b1e1079360a6548fb9b6ed4770eb44d2","sha512_sri":"sha512-ELUpTrdcpF8Ymf71yd7DAkgLYt6JTbdBXmzCOc0IdP2zMohR5dSrIxX1fexaK/GIi6CR+3iWpkHH5Ey7bJ85MA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/cscasereadserv-paypal/v/3.4.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018686","import_time":"2026-08-25T06:50:12.573428186Z","modified_time":"2026-08-25T06:36:31Z","sha256":"336250fe38295375704495b6529ed6eb82f7006b6249c78ace08bc92d96d4bde","source":"amazon-inspector","versions":["3.4.3"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0