{"id":"MAL-2026-14476","summary":"Malicious code in ecobee2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (42ebdeda4d4d0b3db14833d23a2d75a55e7e3f6af902f0ba6f545a970c0f09ba)\npackage.json declares scripts.postinstall = 'node beacon.js', which runs automatically on npm install. beacon.js performs an HTTP GET to http://169.58.96.170:9001/cb with the installer's os.hostname() and the package name in the query string, disclosing host identity to a hardcoded bare-IP endpoint over cleartext HTTP at install time. The package README is a placeholder and no legitimate purpose is documented for this network activity.\n\n## Source: ghsa-malware (433e6da70dcc00a79a94af9cb397f0bf739fddf3f9e8b435734831e2adc83781)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-339h-mj38-2p38"],"modified":"2026-09-09T03:30:14.591643466Z","published":"2026-08-25T06:45:06Z","database_specific":{"malicious-packages-origins":[{"versions":["0.0.2"],"id":"IN-MAL-2026-018690","import_time":"2026-08-25T06:50:12.760854759Z","modified_time":"2026-08-25T06:45:06Z","sha256":"42ebdeda4d4d0b3db14833d23a2d75a55e7e3f6af902f0ba6f545a970c0f09ba","source":"amazon-inspector"},{"id":"GHSA-339h-mj38-2p38","import_time":"2026-09-08T00:15:09.916281723Z","modified_time":"2026-09-07T16:02:32Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"433e6da70dcc00a79a94af9cb397f0bf739fddf3f9e8b435734831e2adc83781","source":"ghsa-malware"},{"versions":["0.0.1"],"id":"IN-MAL-2026-019782","import_time":"2026-09-09T03:21:53.095363677Z","modified_time":"2026-09-09T02:45:05Z","sha256":"d4305a47de47cf32d81a8c4d614393ed8b9247fe6254487819f2467da6412b38","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ecobee2/v/0.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-339h-mj38-2p38"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ecobee2/v/0.0.1"}],"affected":[{"package":{"name":"ecobee2","ecosystem":"npm","purl":"pkg:npm/ecobee2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.2","0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ecobee2/MAL-2026-14476.json","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."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"ecobee2-0.0.2.tgz","hashes":{"sha1":"53af5d1ec9ed384c2f03dbb829ec6c01ecfc2faf","sha512_sri":"sha512-DoMXiUqcRmcwaDOxVoJ1iEpSHIuhlmiwnNJwwpPHiDxnxaBvHVQGb0Pmf/oTL7bl8uZrPYb2pUcK7hXPsWOh4g=="}}],"evidence_files":[{"sha256":"94950b6d656cc60af1632c8741fdf355a5a6d3aa75d9241e5f5ba2fa176e6272","tlsh":"2cd023d651c4531454627110c57b0806e2d7d11228d90d404c4042f21f7445716179f4","path":"beacon.js"},{"tlsh":"dcd02244ce002e7320c5aed30c34688aa0382c8b21083c0837e7004c038c3ba08ff23c","path":"package.json","sha256":"2d1b385436ad70bfc7a8bb0f2a1da08cd20647309013d4061b3e748edf120302"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}