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

目标: 1000 元 · 已筹: 1359 元

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

metrics-sdk

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

Summary

Malicious code in metrics-sdk (PyPI)

文件/数据外传
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1000.0.0unavailable———
1001.0.0unavailable———
999.0.0unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
PyPImetrics-sdk1000.0.0
PyPImetrics-sdk1001.0.0
PyPImetrics-sdk999.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17194","published":"2026-09-27T07:08:11Z","modified":"2026-09-28T15:22:05.725805160Z","summary":"Malicious code in metrics-sdk (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (60ce93696722d633e9eea7b3fac6f76ebe61a581bd2d1d79efb778f8cb015399)\nmetrics_sdk 999.0.0 is a dependency-confusion beacon. setup.py runs on `pip install` and metrics_sdk/__init__.py runs on `import metrics_sdk`; both hex-encode the installer's hostname into a subdomain label of the form `mssdk-<event>-<hexhostname>.84avt3516s4q1obsv9q0mh4u2l8dw3ks.x9.to` and then trigger `socket.gethostbyname(host)` plus `urllib.request.urlopen('http://' + host + '/')`, leaking the hostname to a hardcoded third-party domain over both DNS and plaintext HTTP. The version number 999.0.0 and the package description labeling itself a 'dependency-confusion PoC placeholder' are consistent with an artifact designed to win resolution against an internal package name from public PyPI and beacon from whichever build system pulls it in. The self-label is author-controlled and does not change the observable behavior: any installer that resolves this package on `pip install` or on import discloses its hostname to an attacker-controlled beacon domain with no opt-in.\n\n## Source: kam193 (1378dcfc94bda0e9beb3e3d66c0588967a164741686ab473826fbab077e7afb9)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\n\n\n---\n\nCategory: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.\n\n\nCampaign: GENERIC-standard-pypi-install-pentest\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","affected":[{"package":{"name":"metrics-sdk","ecosystem":"PyPI"},"versions":["999.0.0","1000.0.0","1001.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"}],"indicators":{"evidence_files":[{"path":"setup.py","sha256":"c35374333854ee3b911bc58053b9ae44d20c0a3c29ea0bfb9969543c8d17529b","tlsh":"ba01fe01ed00a4bbd65301cc98600191262ab25b9a235c76bdcc538407cf9f0c4b22ab"},{"path":"metrics_sdk/__init__.py","sha256":"a3c0f40974374809a26a558d4445fa77d2924346a7af8bcda239530047e40dd0","tlsh":"fff09e52de1090b7d60311c8547042d4221bb147d9235c36fecc57844bce0b1c0721a7"}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/metrics-sdk"},{"type":"PACKAGE","url":"https://pypi.org/project/metrics_sdk/999.0.0/"},{"type":"PACKAGE","url":"https://pypi.org/project/metrics_sdk/1000.0.0/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-standard-pypi-install-pentest/metrics-sdk","import_time":"2026-09-27T07:43:09.929870495Z","modified_time":"2026-09-27T07:08:11.746241Z","sha256":"1378dcfc94bda0e9beb3e3d66c0588967a164741686ab473826fbab077e7afb9","source":"kam193","versions":["999.0.0","1000.0.0","1001.0.0"]},{"id":"IN-MAL-2026-020573","import_time":"2026-09-27T14:16:28.776676593Z","modified_time":"2026-09-27T13:44:54Z","sha256":"60ce93696722d633e9eea7b3fac6f76ebe61a581bd2d1d79efb778f8cb015399","source":"amazon-inspector","versions":["999.0.0"]},{"id":"IN-MAL-2026-020581","import_time":"2026-09-28T15:19:57.637361967Z","modified_time":"2026-09-28T15:05:28Z","sha256":"5eb814b6618001a0895e030be51e062430e6e91147691e3d2ea3db58662816bd","source":"amazon-inspector","versions":["1000.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}

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