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

目标: 1000 元 · 已筹: 1359 元

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

pylogkt

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

Summary

Malicious code in pylogkt (PyPI)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIpylogkt0.1.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-26T05:55:05Z","published":"2026-05-25T01:25:10Z","schema_version":"1.7.4","id":"MAL-2026-4291","summary":"Malicious code in pylogkt (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aa1c9e5bf0ffd994f076a4a76395b5bcccd2716229439910912bd49aaf52f903)\nThe package masquerades as a logging utility but every call to its logging API (log.info/debug/etc) triggers Logger._log, which on macOS hosts (paths starting with /Users or /Library) silently spawns a detached subprocess running pylogkt/_check.py. That script self-deletes from disk (os.remove(__file__)), then enters an infinite 60-second polling loop against https://pypkg.dev/project/pylogkt/json with TLS verification disabled (ssl._create_unverified_context()). The first POST exfiltrates the absolute install path (base_dir.encode()), revealing the victim's username and site-packages layout. Subsequent responses are base64-decoded and passed to os.system via `pip show <data>`; the shell-escape filter allows `;`, `|`, `&`, `(`, `)`, and `>`, making arbitrary command injection trivial. The C2 host pypkg.dev typosquats pypi.org and uses a /project/<pkg>/json path that mimics PyPI's real JSON API to camouflage the traffic. This is a full-fidelity backdoor: persistent C2, self-evidence-deletion, disabled TLS, and remote command execution on the installer's machine.\n\n## Source: kam193 (90888c84173734fb54c893b2634d4d96c6fca8a04e0cbde4ca8e39ec1878b1bc)\nPackage silently executes remote code during import.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-05-lognest\n\n\nReasons (based on the campaign):\n\n\n - Downloads and executes a remote malicious script.\n","affected":[{"package":{"ecosystem":"PyPI","name":"pylogkt"},"versions":["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"}],"indicators":{"evidence_files":[{"path":"pylogkt/_check.py","sha256":"51e8d7b1631d7e4a805956a0dccbbf3e04b3f2e3b8ea2a5b4de2e73723185b9e","tlsh":"9e315366a91c00a9d383889bd820e5601737fc0f6a01ca74fadcd3a05fc957782f3a89"}],"package_integrity":[{"filename":"pylogkt-0.1.2-py3-none-any.whl","hashes":{"blake2b_256":"7aebfcac2f1d513c0875828fb72324b3a7b46909870c65f9fdcb194788343261","md5":"5a38c151a4662f978da960003e5d9e92","sha256":"b13fc08f7531ee52649f84d886885593060febbab2b3e7e5312175c64fbf8ec3"}},{"filename":"pylogkt-0.1.2.tar.gz","hashes":{"blake2b_256":"a666696c6fde7dcdf29c8c41312408136eec8cf19e362c39a0b424d80c05b24d","md5":"30df2fe937feb3b1ef1d4851e96d15b9","sha256":"26f708bea0958cf20e27d86c14d0149db96f5863f8368bd30266c218e072b5b7"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pylogkt"},{"type":"PACKAGE","url":"https://pypi.org/project/pylogkt/0.1.2/"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]},{"name":"Kamil Mańkowski (kam193)","type":"ANALYST","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"iocs":{"domains":["pypkg.dev"],"urls":["https://pypkg.dev/project/logger/json"]},"malicious-packages-origins":[{"source":"kam193","sha256":"90888c84173734fb54c893b2634d4d96c6fca8a04e0cbde4ca8e39ec1878b1bc","import_time":"2026-05-25T05:03:48.345118229Z","id":"pypi/2026-05-lognest/pylogkt","modified_time":"2026-05-25T03:28:41.116176Z","versions":["0.1.2"]},{"source":"kam193","sha256":"a477e4b644651b855ab6d0568792cc1ce87910245e26752df47377ac9f4ebb86","import_time":"2026-05-25T10:37:43.683100678Z","id":"pypi/2026-05-lognest/pylogkt","modified_time":"2026-05-25T03:28:41.116176Z","versions":["0.1.2"]},{"source":"amazon-inspector","sha256":"aa1c9e5bf0ffd994f076a4a76395b5bcccd2716229439910912bd49aaf52f903","import_time":"2026-05-26T05:52:51.015365646Z","id":"IN-MAL-2026-004564","modified_time":"2026-05-25T01:25:10Z","versions":["0.1.2"]}]}}

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