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

目标: 1000 元 · 已筹: 1359 元

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

tlask

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

Summary

Malicious code in tlask (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPItlask3.1.3
PyPItlask3.1.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T16:23:06Z","published":"2026-06-08T07:54:44Z","schema_version":"1.7.4","id":"MAL-2026-5305","summary":"Malicious code in tlask (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ae87e0c65760999b8ff4e28d11505b15a71a1a46dd8d761122e3d9d8e2cd85b6)\nThe package is published as 'tlask', a single-character edit of the widely used 'flask' package on PyPI. Metadata and module contents are copied verbatim from Pallets' Flask: METADATA Summary reads 'A simple framework for building complex web applications.', Project-URLs point to flask.palletsprojects.com and github.com/pallets/flask, and entry_points.txt declares 'flask=flask.cli:main'. The source files under tlask/ match Flask's own modules. No installer-harmful payload was identified — no network I/O, no exec/eval, no install or import-time hooks, no credential reads, and no lifecycle scripts that would execute attacker-controlled code on `pip install`. The risk is name-confusion: a developer who types `pip install tlask` rather than `pip install flask` receives a near-identical Flask clone they did not intentionally select, and the entry_points.txt also installs a `flask` console script that could shadow the real Flask CLI in some environments. Because the package contains no exfiltration, dropper, silent-relay, or credential-distribution behavior, naming-similarity alone is a subjective signal that warrants human review rather than an automatic block.\n\n## Source: kam193 (2b3ae446f7b8d808b84c157ec455883e0bc45e4f4180e51c5cd42ff9852712a2)\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":"tlask"},"versions":["3.1.3","3.1.4"],"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":"tlask-3.1.3.dist-info/METADATA","sha256":"0842bd9d788518d85bc4935ee7dd13cff8b0ae9d26e9077526c7a481f27b99df","tlsh":"ab5175ab87c06ba07fc783cb821cb4ede537825cfb8e50e5747480a426842a5827d23d"}],"package_integrity":[{"filename":"tlask-3.1.3-py3-none-any.whl","hashes":{"blake2b_256":"be35bf67e193b1ae9d0343db4fa286b933eb1d13078ee7195f58e0509ea7d65c","md5":"92e47f69c7f71edf3121e5efe0066997","sha256":"54144c45208e48eaf124dc2fcb5964f0c6964b5b9f88c780efbc6da6dc853d48"}}]}}}],"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/tlask"},{"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/tlask/3.1.3/"},{"type":"PACKAGE","url":"https://pypi.org/project/tlask/3.1.4/"}],"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":"2b3ae446f7b8d808b84c157ec455883e0bc45e4f4180e51c5cd42ff9852712a2","import_time":"2026-06-08T09:42:58.910274073Z","id":"pypi/2026-06-compr-woodpecker/tlask","modified_time":"2026-06-08T07:54:44.134767Z","versions":["3.1.3","3.1.4"]},{"source":"kam193","sha256":"48854e09c8c33d4501b05aba0583a0b5f91b464d31416749145cc93dbe241f6e","import_time":"2026-06-08T11:41:02.550083981Z","id":"pypi/2026-06-compr-woodpecker/tlask","modified_time":"2026-06-08T07:54:44.134767Z","versions":["3.1.3","3.1.4"]},{"source":"kam193","sha256":"ce8a41bbeaf104368bb005074cd508599f5dd2b95206692ff23bf459915084e5","import_time":"2026-06-09T07:48:29.662290948Z","id":"pypi/2026-06-compr-woodpecker/tlask","modified_time":"2026-06-08T07:54:44.134767Z","versions":["3.1.3","3.1.4"]},{"source":"amazon-inspector","sha256":"ae87e0c65760999b8ff4e28d11505b15a71a1a46dd8d761122e3d9d8e2cd85b6","import_time":"2026-07-08T23:27:54.886180687Z","id":"IN-MAL-2026-008945","modified_time":"2026-07-08T22:56:16Z","versions":["3.1.3"]},{"source":"amazon-inspector","sha256":"279753663c0f9b31c3772df06a05731ce07077a3538e81d539195fddc0d70de1","import_time":"2026-07-09T16:20:49.189703035Z","id":"IN-MAL-2026-009185","modified_time":"2026-07-09T15:40:46Z","versions":["3.1.4"]}]}}

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