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

目标: 1000 元 · 已筹: 1359 元

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

paysafe-kyc

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

Summary

Malicious code in paysafe-kyc (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIpaysafe-kyc1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T15:21:01Z","published":"2026-07-07T15:22:13Z","schema_version":"1.7.4","id":"MAL-2026-6927","summary":"Malicious code in paysafe-kyc (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8c619e500f8070a5525694f42547c0b73e8189965f8816f1a124190f50bed6f5)\nThe paysafe-kyc package impersonates a legitimate Paysafe KYC/payments SDK (author string 'Paysafe Developer Team', base URL https://api.paysafe.com, class name PaysafeClient, environment variable PAYSAFE_API_KEY) but performs credential exfiltration on import and on advertised API use. At import time, the module iterates os.environ and collects the first 100 bytes of every variable whose name contains KEY, SECRET, TOKEN, PASS, AUTH, or API, together with the machine hostname, username, and current working directory, and POSTs the harvested data to a hardcoded remote host reconstructed at runtime from a base64 + XOR + reversed + character-shifted string. A guard function additionally suppresses the outbound request when the machine hostname contains substrings such as 'sandbox', 'analyzer', 'cuckoo', 'virus', 'vmware', 'vbox', or 'malware', which is explicit anti-analysis behavior. The PaysafeClient.create_payment method sleeps 12 seconds and then covertly forwards a prefix of the caller-supplied PAYSAFE_API_KEY to the same hidden endpoint, so any developer using the SDK as documented has their Paysafe API key mirrored to the attacker in addition to the real Paysafe API. The combination of brand impersonation, import-time environment credential harvest, silent relay of caller-provided API keys, obfuscated C2 hostname, and sandbox-hostname evasion is unambiguous supply-chain attack behavior.\n\n## Source: kam193 (7089650efc5360b819e8831801bcedf6489945f5b563729e99f036461bd59092)\nWhen using a provided class, the code exfiltrates basic data and parts of sensitive env variables to a remote host.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-07-paysafe-api\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - dependency-confusion\n\n\n - action-hidden-in-lib-usage\n\n\n - The package contains code to detect if it is running in a sandbox environment.\n\n\n - obfuscation\n","affected":[{"package":{"ecosystem":"PyPI","name":"paysafe-kyc"},"versions":["1.0.0"],"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":"paysafe_kyc/__init__.py","sha256":"c6af37a6739f0d919ab7049caf3a85831cab44bdbea27e0d9de7adec80334e2b","tlsh":"703198d11450744a91662e2b948d6984e34ffd000cafde4bffb09b576f80573c538d28"},{"path":"setup.py","sha256":"11c45cb73114c02c45f065f7f3635cb2a8d679a501e124355abf9cb3076793d1","tlsh":"aed02ea30ca253219a908e8a481711908e3aea363e21a0c4bb7c12d03b921a30b0306f"}],"package_integrity":[{"filename":"paysafe_kyc-1.0.0-py3-none-any.whl","hashes":{"blake2b_256":"4a199950a4303bce567a480f19d86deed1f23632d66dc7d6599e053033da6956","md5":"976914992c3aaaa7959355e546cebaf9","sha256":"71c11f91acbde273ab3f07a13781f9064e72dabf25dd1ff6ebba9a634b95c08b"}},{"filename":"paysafe_kyc-1.0.0.tar.gz","hashes":{"blake2b_256":"6414d49f9882e43eb0f081b271b56e8012183f37026e7a31db1304921f93fc6b","md5":"54843c06f504be2a438c7f73405162a4","sha256":"8e5bab739f9876690ef7d08464127f83dabccd305d13e29657a2151425713a63"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/paysafe-kyc"},{"type":"WEB","url":"https://socket.dev/blog/npm-pypi-campaign-typosquats-popular-secure-payment-apps"},{"type":"PACKAGE","url":"https://pypi.org/project/paysafe-kyc/1.0.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":{"domains":["caliber-spinner-finishing.ngrok-free.dev"]},"malicious-packages-origins":[{"source":"kam193","sha256":"7089650efc5360b819e8831801bcedf6489945f5b563729e99f036461bd59092","import_time":"2026-07-07T15:30:57.592192618Z","id":"pypi/2026-07-paysafe-api/paysafe-kyc","modified_time":"2026-07-07T15:22:13.874808Z","versions":["1.0.0"]},{"source":"kam193","sha256":"3ebd2cbef14c7523747cb9e01c9d6721ba52df82fd6fa64bf02953e41ca73612","import_time":"2026-07-07T22:55:28.725890031Z","id":"pypi/2026-07-paysafe-api/paysafe-kyc","modified_time":"2026-07-07T15:22:13.874808Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"8c619e500f8070a5525694f42547c0b73e8189965f8816f1a124190f50bed6f5","import_time":"2026-07-08T15:19:03.307549569Z","id":"IN-MAL-2026-008044","modified_time":"2026-07-08T14:30:25Z","versions":["1.0.0"]}]}}

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