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

目标: 1000 元 · 已筹: 1359 元

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

dt-validator

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

Summary

Malicious code in dt-validator (PyPI)

凭据/密钥窃取远程访问后门
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
pypistats.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIdt-validator0.3.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T23:29:53Z","published":"2026-07-02T17:39:30Z","schema_version":"1.7.4","id":"MAL-2026-6728","summary":"Malicious code in dt-validator (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b0dd6dc392ad68861c938e7798773adf5359c835743e711a834d84221b481bdf)\nThe package's top-level public API `dt_validator.validate()` — colocated in `__all__` with legitimate helpers `validate_extension`, `validate_size`, and `validate_checksum` — unconditionally issues an HTTP request to a hardcoded `https://file-api.free.beeceptor.com` endpoint (a shared public HTTP-mock service on the free-tier subdomain, not publisher-controlled infrastructure), then `compile()`s the response body and `exec()`s it in the CALLER's module globals, obtained via `inspect.currentframe().f_back.f_globals` (see `api_client.py` `DEFAULT_API_ENDPOINT` and `validate_data(..., allow_exec=True, namespace=caller_globals)`). Endpoint names on beeceptor's free shared subdomain are not authenticated to the maintainer — anyone who claims or has claimed that endpoint name can serve arbitrary Python that runs with the caller's identity and full access to the caller's module namespace. The README further documents a different default host (`file-read.free.beeceptor.com`) than the code actually contacts (`file-api.free.beeceptor.com`), so a developer auditing README does not see the destination the code reaches. Execution is not install-time or import-time — a caller must invoke `validate()` — but the API name and colocation are engineered to be hit by a developer who thinks they are calling an input validator. No installer-secret reads, no lifecycle hooks, and no other exfil/backdoor mechanisms are present. Routing to human review: the remote-exec-into-caller-globals surface via an unowned shared mock host is a real risk to consumers who call `validate()`, but harm requires the developer to invoke the API rather than firing on `pip install`/import.\n\n## Source: kam193 (0fc0256380d811cdce05ffa9c3644a5f7e4ebd6f7acfce0f955935b42449b17a)\nCode contains a function to execute remote code, which at the time of analysis was extracting the \"auth_user\" table from Django DB. The remote code execution is partially documented and disguised with multiple warnings, but a) the 'convenience function' uses a hardcoded endpoint and loads results to the global namespace, b) the warnings are silenced by default.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-dt-validator\n\n\nReasons (based on the campaign):\n\n\n - Downloads and executes a remote malicious script.\n\n\n - action-hidden-in-lib-usage\n","affected":[{"package":{"ecosystem":"PyPI","name":"dt-validator"},"versions":["0.3.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":"src/dt_validator/api_client.py","sha256":"24dcaa5b2678dbe34a7830695a215cfa3314959ce4b5fe1872dcb46b42dfcf21","tlsh":"8042b84b5d4356538596c5a48d6ed985d31ab00bbe402db1fd8cc2dc3f88266e8fe2cd"}],"package_integrity":[{"filename":"dt_validator-0.3.0-py3-none-any.whl","hashes":{"blake2b_256":"93afd025491b1452257feaf3e45da753b7b1608361d7ba01b8d7604be959d0a4","md5":"7141d8c7c490c89e841e1db7e33256bd","sha256":"a6b9fa23d300bd6133dd4c7ecfa05893ed68dc108cdd6726c0c256441eba5f06"}},{"filename":"dt_validator-0.3.0.tar.gz","hashes":{"blake2b_256":"f543d16dacb2a6c758310456c3a9c61e886a48384842895e392bec2f00084c32","md5":"331149c7af77583799066657bb93d74c","sha256":"6aba0ac08b81f56de7a7d80e7ace561c8f897fc573a61308d70491e627d65fbc"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/dt-validator"},{"type":"PACKAGE","url":"https://pypi.org/project/dt-validator/0.3.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":["file-api.free.beeceptor.com"],"urls":["https://file-api.free.beeceptor.com"]},"malicious-packages-origins":[{"source":"kam193","sha256":"0fc0256380d811cdce05ffa9c3644a5f7e4ebd6f7acfce0f955935b42449b17a","import_time":"2026-07-02T18:07:05.626863842Z","id":"pypi/2026-06-dt-validator/dt-validator","modified_time":"2026-07-02T17:39:30.601056Z","versions":["0.3.0"]},{"source":"amazon-inspector","sha256":"b0dd6dc392ad68861c938e7798773adf5359c835743e711a834d84221b481bdf","import_time":"2026-07-08T23:27:56.165626611Z","id":"IN-MAL-2026-008966","modified_time":"2026-07-08T22:59:22Z","versions":["0.3.0"]}]}}

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