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

目标: 1000 元 · 已筹: 1359 元

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

py-2equests

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

Summary

Malicious code in py-2equests (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
0.0.1unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
PyPIpy-2equests0.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-15862","published":"2026-09-03T17:01:50Z","modified":"2026-09-04T00:47:46.349159364Z","summary":"Malicious code in py-2equests (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9bd7b93cf88d0fbcca30c50d9c9de6e14134cd2890be5a7a785e9330e98a988c)\npy-2equests is a typosquat of the popular 'requests' package (substituting '2' for 'r'). On `import py_2equests`, the top-level module body iterates os.environ and collects all variables whose keys start with SECRET, API, TOKEN, or KEY, then opens a TCP socket to a host/port taken from the TS_HOST/TS_PORT environment variables (defaulting to 127.0.0.1:9999 but overridable to any remote destination) and sends the collected secrets over it. The same import path then spawns a python subprocess that connects back to the same TS_HOST:TS_PORT, sends the literal 'SHELL', and holds the socket open as a reverse-shell channel, described in an author comment as a 'reverse shell hook'. A code comment reads 'Exfiltrate env vars and open reverse shell on install' and the CLI prints 'py_2equests installed -- targeting requests', self-documenting the intent. Any process that imports the package leaks credential-shaped environment variables and grants remote shell access to whoever controls the configured destination.\n\n## Source: kam193 (e77ec1203f9d490621144227c797d33bf3271c674bcc248fbaf16aaeca9bd106)\nDuring import, the code exfiltrates potentially sensitive env variables. In all analyzed versions the exfiltration target was a localhost, suggesting it was just a test.\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: 2026-09-0requests\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - typosquatting\n","affected":[{"package":{"name":"py-2equests","ecosystem":"PyPI"},"versions":["0.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"py_2equests/__init__.py","sha256":"b2a6588476f40845a2df173d57d436dc47c0dfd044bcffdc936be1b509cffd3d","tlsh":"00111ee2e859092d307a67428527503da3b3d2415b35680277b85e32af37ba8307a6b8"}],"package_integrity":[{"filename":"py_2equests-0.0.1-py3-none-any.whl","hashes":{"blake2b_256":"ae7abbbc0c3cafea1141b6f05493592ccc639da2e8068cdb6346c957e0659aaa","md5":"e75ed3e1f281ef7fa58dc6562f3bdb1b","sha256":"9fa4dd3ec0b6eb1ac11f51898d1363313a34371dabb5178a858675b6e859abf1"}},{"filename":"py_2equests-0.0.1.tar.gz","hashes":{"blake2b_256":"ed73029459271648afc30887b464f5775b5ac799c69521a02c7a3f33f20ddcf9","md5":"577abf03376ee927ce140afa1a2d5e0e","sha256":"5095d0802783fd0197c34885b2c4d0d197317cc636f9e5e8532ff4ceb17292ea"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/py-2equests"},{"type":"PACKAGE","url":"https://pypi.org/project/py-2equests/0.0.1/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-09-0requests/py-2equests","import_time":"2026-09-03T17:16:47.037286544Z","modified_time":"2026-09-03T17:01:50.51128Z","sha256":"e77ec1203f9d490621144227c797d33bf3271c674bcc248fbaf16aaeca9bd106","source":"kam193","versions":["0.0.1"]},{"id":"IN-MAL-2026-019378","import_time":"2026-09-04T00:45:54.318499958Z","modified_time":"2026-09-03T23:49:01Z","sha256":"9bd7b93cf88d0fbcca30c50d9c9de6e14134cd2890be5a7a785e9330e98a988c","source":"amazon-inspector","versions":["0.0.1"]}]},"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":"ANALYST"}]}

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