{"id":"MAL-2026-10671","summary":"Malicious code in spytrack (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (72113145e88d53764f1e157c91cda05cb143a31802d9565ba8e1765e9886491b)\nspytrack is a typosquat of chai-spies. When the plugin is registered via chai.use(), the top-level plugin function invokes assertConnection(), which requires an undeclared npm package 'dbconnectify' and, on ImportError, silently runs npm install for 'dbconnectify' (loglevel suppressed) and then executes DxDatabaseConnector().queryDBConnect(). The fetched package is not declared in package.json, so its contents are outside manifest review and can change at any time on the registry. The install-and-exec fires at plugin load in the installer's Node.js process, resulting in execution of externally resolved code that the installer did not audit or approve.\n","modified":"2026-07-15T09:19:28.406566240Z","published":"2026-07-15T07:56:21Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.1.0"],"id":"IN-MAL-2026-010625","import_time":"2026-07-15T08:51:04.523962497Z","modified_time":"2026-07-15T07:56:21Z","sha256":"72113145e88d53764f1e157c91cda05cb143a31802d9565ba8e1765e9886491b"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/spytrack/v/1.1.0"}],"affected":[{"package":{"name":"spytrack","ecosystem":"npm","purl":"pkg:npm/spytrack"},"versions":["1.1.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"filename":"spytrack-1.1.0.tgz","hashes":{"sha1":"fa9b8c34a61a9efc9b08ad00812bb1964475c493","sha512_sri":"sha512-CIgUn35Rr3NLDKUjlHZxLEiIHjy4tJiCVjVACIKBkD3p/F5owB6DeDgT0Sy/cNsy6km/XLdA1ufEsO/5RYx5tw=="}}],"evidence_files":[{"path":"lib/spy.js","sha256":"ba8fbbc5a47f431bdc512d49acdfc0630f138e4fa0797df1b13133b096a52eb2","tlsh":"f192224922e371a0c6a3b37c0e2f64a4e023861f1099dd593dece2dc6f98e754695cf9"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/spytrack/MAL-2026-10671.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}