{"id":"MAL-2026-16113","summary":"Malicious code in etoro-api (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ab6228f994962694d4434f53d20d6a5a1b877b39a3498236327da9d0385284d9)\nThe preinstall lifecycle script in etoro-api@999.0.0 (preinstall.js) auto-executes on npm install and performs an HTTP GET to a hardcoded bare-IP endpoint at http://209.126.81.147/etoro-depconf-poce346552f776f/npm/\u003chost\u003e/\u003cuser\u003e/\u003ccwd\u003e, embedding the installer's hostname (os.hostname()), OS username (os.userInfo().username), and current working directory (process.cwd()) as URL path components. The destination is a plain-HTTP bare-IP host unrelated to any legitimate eToro publishing infrastructure. The package name combined with the implausibly high version number (999.0.0) is the canonical dependency-confusion shape used to force resolution over an internal private package of the same name.\n","modified":"2026-09-10T05:30:11.589800136Z","published":"2026-09-10T04:44:16Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-09-10T05:18:06.043449146Z","modified_time":"2026-09-10T04:44:16Z","sha256":"ab6228f994962694d4434f53d20d6a5a1b877b39a3498236327da9d0385284d9","source":"amazon-inspector","versions":["999.0.0"],"id":"IN-MAL-2026-019911"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/etoro-api/v/999.0.0"}],"affected":[{"package":{"name":"etoro-api","ecosystem":"npm","purl":"pkg:npm/etoro-api"},"versions":["999.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/etoro-api/MAL-2026-16113.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"preinstall.js","sha256":"bee47062733940943fd3a66654f0258135fd62911674304ccac11a43226b5f58","tlsh":"ebe027f4118ca6683ccc01c4636b191ed4dfc705bcdec8c04a55d78587b15f1d6115f0"}],"package_integrity":[{"hashes":{"sha1":"f86eb01145e13c2a2305b30ad476a41bd84445c7","sha512_sri":"sha512-DqUrDaBspfB3y7lvYFrBvfMvjnHRlwBvfrWJPnrVn5XxSn6mFIDl7NYy4SSxjMmWAdQuE8QeaSqDXq3FOGhEnQ=="},"filename":"etoro-api-999.0.0.tgz"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}