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

目标: 1000 元 · 已筹: 1359 元

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

metemask-sdk

MAL-2026-10197
2026-07-12 15:26:41
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in metemask-sdk (PyPI)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPImetemask-sdk1.2.0
PyPImetemask-sdk1.2.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-12T15:26:41Z","published":"2026-07-12T11:23:55Z","schema_version":"1.7.4","id":"MAL-2026-10197","summary":"Malicious code in metemask-sdk (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a99855c93b46f7b996a005065c319bbb24c9d1f497d05dfd38fc83d1b21facdd)\nmetemask-sdk is a typosquat of the legitimate metamask-sdk package. On import, the top-level __init__.py performs an outbound HTTP fetch to https://gateway.pinata.cloud/ipfs/QmWMbuhKt24ssRKXCeiU94NoZGYcEunGnm6uvSKRwkejYP, passes the response body to exec(), and then invokes a main() function from the executed namespace. No integrity check (hash/signature) is performed on the fetched content, the fetch is wrapped in a bare try/except to suppress errors, and the IPFS CID resolves to attacker-controlled content that can change arbitrarily. The package's advertised public API (connect, sign_message, get_balance) is a non-functional stub that returns constants and random bytes, serving as a facade for the import-time dropper.\n\n## Source: kam193 (0f59169bc0b142713f95865c41501f7eade6b73d1aea633262e40d514e6b6546)\nDuring import, the code downloads and executes a remote script. The script collects sensitive files, including cryptocurrency wallet private keys and seeds, SSH keys, dotenv files and uploads them to IPFS. After that, it communicates with C2 and awaits further commands to execute.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-07-metemask-sdk\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - typosquatting\n\n\n - exfiltration-ssh-keys\n\n\n - crypto-related\n\n\n - Downloads and executes a remote malicious script.\n\n\n - exfiltration-crypto\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - uses:ipfs\n","affected":[{"package":{"ecosystem":"PyPI","name":"metemask-sdk"},"versions":["1.2.0","1.2.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"}],"indicators":{"evidence_files":[{"path":"metemask_sdk/__init__.py","sha256":"7fd14e69acc3ef539b9c83ee4a6528f07afcbf0ecaa0f3a72e7a5f9202984cc5","tlsh":"17f0e17678817845d347b51d74e5f734674d3957d24d98313b9d01305b65030f0f1159"}],"package_integrity":[{"filename":"metemask_sdk-1.2.1-py3-none-any.whl","hashes":{"blake2b_256":"764b85741e75c7927851fc14e61a7cdab0a23c9e9dccb165a02b766fe45fd61f","md5":"af43019560028ebe3b806096c9caa82d","sha256":"d65aa3d91dafceeda6a639f54bdd9f8b51c228f8906a756e74770a6f778bd16c"}},{"filename":"metemask_sdk-1.2.1.tar.gz","hashes":{"blake2b_256":"42dd4897a72489934ed8c02ebbe1ffac7bb440572afc35fc50d123276db60962","md5":"971e468cea74e6bc11d691d9500ddb68","sha256":"7e48af97d691c767f7b7c7c06bd0e37b250d234a863927023401022fc55f596e"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/metemask-sdk"},{"type":"PACKAGE","url":"https://pypi.org/project/metemask-sdk/1.2.1/"},{"type":"PACKAGE","url":"https://pypi.org/project/metemask-sdk/1.2.0/"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"iocs":{"ips":["107.161.90.180"],"urls":["http://107.161.90.180:7778","https://gateway.pinata.cloud/ipfs/QmP2RrfNCNabLzPYncMGgFwAmttDafczpJLS8oxvQRBVqg"]},"malicious-packages-origins":[{"source":"kam193","sha256":"0f59169bc0b142713f95865c41501f7eade6b73d1aea633262e40d514e6b6546","import_time":"2026-07-12T11:55:16.830963377Z","id":"pypi/2026-07-metemask-sdk/metemask-sdk","modified_time":"2026-07-12T11:23:55.910157Z","versions":["1.2.0","1.2.1"]},{"source":"amazon-inspector","sha256":"a99855c93b46f7b996a005065c319bbb24c9d1f497d05dfd38fc83d1b21facdd","import_time":"2026-07-12T15:24:47.759640104Z","id":"IN-MAL-2026-009748","modified_time":"2026-07-12T15:11:07Z","versions":["1.2.1"]},{"source":"amazon-inspector","sha256":"b54557754f5aa64e38d0b038c76c8a13e7964e8a1b8e6f2dc7db63ce8ecbc130","import_time":"2026-07-12T15:24:47.683797532Z","id":"IN-MAL-2026-009747","modified_time":"2026-07-12T15:10:56Z","versions":["1.2.0"]}]}}

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