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

目标: 1000 元 · 已筹: 1359 元

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

rsquests

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

Summary

Malicious code in rsquests (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIrsquests2.34.2
PyPIrsquests2.34.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T22:04:40Z","published":"2026-06-08T07:52:31Z","schema_version":"1.7.4","id":"MAL-2026-5304","summary":"Malicious code in rsquests (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e2041887c315474d0722cbf717e189ec1260e209c5f00da5ca3a52a60c6aebb2)\nThe package name `rsquests` is a single-character insertion typo of the top-100 PyPI package `requests`. Package metadata and source are a verbatim copy of upstream `requests`: `rsquests/__version__.py` sets `__title__ = \"requests\"`, METADATA lists `Author-email: Kenneth Reitz <me@kennethreitz.org>`, and `top_level.txt` declares the top-level package as `requests` (so `import requests` after installing `rsquests` resolves to this package's bundled copy, shadowing the real upstream if it isn't installed). The full public API (get/post/put/delete/Session/...) is replicated, so a developer who mistypes `pip install requests` as `pip install rsquests` gets working behavior and may not notice the substitution. No exfiltration, RCE, dropper, credential harvest, or silent-relay payload is present in this version — the install-time and import-time code paths match the upstream library. The risk is name-confusion plus future-version risk: the squatted name normalizes the typo and provides a vector if a later release introduces a malicious payload. Routing to human review per typosquat-without-payload policy — name-similarity is a subjective signal and the absence of a current payload means this does not meet the bar for an automated block.\n\n## Source: kam193 (b32959e10bc6b1df57d105a5e5d74cbe7b69660cb7a1e78185d3f5e0e0f07e10)\nTyposquatting package published from a compromised account with an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution.\n\nIt seems to be related to the recent Mini Shai Hulud campaign.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-compr-woodpecker\n\n\nReasons (based on the campaign):\n\n\n - compromised-package\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-cloud-tokens\n\n\n - exfiltration-credentials\n\n\n - abuses-pth\n\n\n - obfuscation\n\n\n - infostealer\n\n\n - The package contains code to detect if it is running in a sandbox environment.\n\n\n - exfiltration-crypto\n\n\n - files-exfiltration\n\n\n - destructive-actions\n","affected":[{"package":{"ecosystem":"PyPI","name":"rsquests"},"versions":["2.34.2","2.34.3"],"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":"rsquests-2.34.2.dist-info/METADATA","sha256":"75f8c8b3514d46edaba2ce2317bbc5fdcd5feca819c7f86d7dbcf922b8be1c21","tlsh":"bda175e312e07f64efa30a46a76997594527c679bacd34b9e8bd80bc91143a1833d06c"}],"package_integrity":[{"filename":"rsquests-2.34.2-py3-none-any.whl","hashes":{"blake2b_256":"82d1e28e0b7a5e58d28cafc81783fe3d8f23019f49d7f7b45b7b4f3e646e3786","md5":"0fa585b6dda26b896a033cbe2f4ae6a9","sha256":"67cc4ee0fa900f30bfa312b4a42ba9d3de47a80ee460581c622a3474e2beae87"}}]}}}],"references":[{"type":"WEB","url":"https://socket.dev/blog/mini-shai-hulud-campaign-hits-red-hat-cloud-services-npm-packages"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/rsquests"},{"type":"WEB","url":"https://socket.dev/blog/shai-hulud-descends-to-hades-miasma-pypi-wave"},{"type":"WEB","url":"https://o3.security/blog/pypi-supply-chain-attack-pth-file-miasma"},{"type":"WEB","url":"https://socket.dev/blog/mini-shai-hulud-miasma-and-hades-worms-target-bioinformatics-and-mcp-developers-via-malicious"},{"type":"PACKAGE","url":"https://pypi.org/project/rsquests/2.34.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/rsquests/2.34.3/"}],"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":{"malicious-packages-origins":[{"source":"kam193","sha256":"b32959e10bc6b1df57d105a5e5d74cbe7b69660cb7a1e78185d3f5e0e0f07e10","import_time":"2026-06-08T09:42:58.909580933Z","id":"pypi/2026-06-compr-woodpecker/rsquests","modified_time":"2026-06-08T07:52:32.007871Z","versions":["2.34.2","2.34.3"]},{"source":"kam193","sha256":"fe6aea9cd8f7473d9ed244dec4f7ed8e41db8c994ba1c5ef447120331b9e7cae","import_time":"2026-06-08T11:41:02.548256137Z","id":"pypi/2026-06-compr-woodpecker/rsquests","modified_time":"2026-06-08T07:52:32.007871Z","versions":["2.34.2","2.34.3"]},{"source":"kam193","sha256":"4fb80b5b56d1513fb5fc9eabbd64a38c054ee698c5ee1f04e01325e2ee6e5885","import_time":"2026-06-09T07:48:29.660780065Z","id":"pypi/2026-06-compr-woodpecker/rsquests","modified_time":"2026-06-08T07:52:32.007871Z","versions":["2.34.2","2.34.3"]},{"source":"amazon-inspector","sha256":"e2041887c315474d0722cbf717e189ec1260e209c5f00da5ca3a52a60c6aebb2","import_time":"2026-07-08T23:27:54.317694596Z","id":"IN-MAL-2026-008935","modified_time":"2026-07-08T22:54:45Z","versions":["2.34.2"]},{"source":"amazon-inspector","sha256":"dea50337a1e5e3d778bdcc0275f160646cdc00e92e90e63ab90434b0e3d78924","import_time":"2026-07-09T22:02:31.34079122Z","id":"IN-MAL-2026-009436","modified_time":"2026-07-09T21:55:35Z","versions":["2.34.3"]}]}}

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