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

目标: 1000 元 · 已筹: 1359 元

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

fast-dotenv

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

Summary

Malicious code in fast-dotenv (PyPI)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
pypistats.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIfast-dotenv1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-13T04:45:07Z","published":"2026-07-12T21:59:58Z","schema_version":"1.7.4","id":"MAL-2026-10215","summary":"Malicious code in fast-dotenv (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (da3250a4b69ccce49128d2e75ffb9e577746de4fb3afe0e0d242fbe5d094d02d)\nThe package presents itself as a.env loader but on load()/config() spawns a background thread that, after a 72–96 hour activation delay jittered by hostname hash, decodes base64-obfuscated dead-drop URLs (a GitHub gist under opensource-crypto and a GitLab snippet under devtool-labs/config-snippets) to retrieve a JSON C2 configuration (host, port, path, fallback) and POSTs collected data to https://{c2}:{port}{path}. Data collected includes host/environment identity, environment variables whose names contain key/secret/token/password/auth/private/wallet/seed/mnemonic, and an enumeration of ~/.ssh/ (id_rsa, id_ed25519, id_ecdsa, config, known_hosts). The C2 URLs are stored as base64 literals in _CONFIG_SOURCES with cover comments describing them as documentation examples, hiding the network destinations from plain-text inspection. The long dormancy, remote-configurable destination, base64-obfuscated dead drops, and cover comments together are the shape of a staged supply-chain credential stealer.\n\n## Source: kam193 (cc334bd438168239b92c3ca3bbaaeeeab56e9b325efa8e7be20ef87356e4f638)\nWhen using the library, it schedules a delayed malware activation. Malicious code contacts remote URLs to get C2 location, then performs machine fingerprinting, including looking for sensitive environmental variables and SSH keys. The code seems not to exfiltrate their content in the analyzed version. Additionally, the embeded configuration URLs did not exist, but they led to related C2 configurations from the same GitHub account, which also seems to have created repositories with similar malicious code in other languages.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-07-fast-dotenv\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-ssh-keys\n\n\n - action-hidden-in-lib-usage\n","affected":[{"package":{"ecosystem":"PyPI","name":"fast-dotenv"},"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":"fast_dotenv/_internal.py","sha256":"3d96109552544fc096eb9634d73a1f4cf5ecb7996522a5d2733d891d83234a9b","tlsh":"69b16457a8213863e293556e819785a0237b7947ae02693cbc9ca3680f8d779c1b237d"}],"package_integrity":[{"filename":"fast_dotenv-1.0.0-py3-none-any.whl","hashes":{"blake2b_256":"9f331328f552409e28ca58536c7b963c8da3fee7c5308c7c0d617a6698a23874","md5":"39101ba2f61456280815a29c357c810f","sha256":"e8343687e380b9d19d2019534b672dac9dd9364830a7949fb0b0720e7e16480b"}},{"filename":"fast_dotenv-1.0.0.tar.gz","hashes":{"blake2b_256":"8d48d0f35835077d800b679603eef77674fecf76193ba4056d72db1312c0ede1","md5":"9ca90a62f1d21ee2bb1961cbafb27b0c","sha256":"ad52ee4a95bd33f8f06b923173b93d644f29468b9f0b419fd285cc4e08056384"}}]}}}],"references":[{"type":"WEB","url":"https://gist.github.com/opensource-crypto/3946ef88aa057c9d10f1a7d80391d164/"},{"type":"WEB","url":"https://github.com/opensource-crypto"},{"type":"WEB","url":"https://gist.github.com/opensource-crypto"},{"type":"WEB","url":"https://github.com/opensource-crypto/env-fast/blob/6c83117d0175fa3d16c3bca6bdb6dbf3528ee061/index.js"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/fast-dotenv"},{"type":"PACKAGE","url":"https://pypi.org/project/fast-dotenv/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":["c2.fanaccesshub.com"]},"malicious-packages-origins":[{"source":"kam193","sha256":"cc334bd438168239b92c3ca3bbaaeeeab56e9b325efa8e7be20ef87356e4f638","import_time":"2026-07-12T22:20:10.22302008Z","id":"pypi/2026-07-fast-dotenv/fast-dotenv","modified_time":"2026-07-12T21:59:58.034886Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"da3250a4b69ccce49128d2e75ffb9e577746de4fb3afe0e0d242fbe5d094d02d","import_time":"2026-07-13T04:43:12.919477934Z","id":"IN-MAL-2026-009792","modified_time":"2026-07-13T04:16:23Z","versions":["1.0.0"]}]}}

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