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

目标: 1000 元 · 已筹: 1359 元

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

ollamaa

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

Summary

Malicious code in ollamaa (PyPI)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
0.4.2unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
PyPIollamaa0.4.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16134","published":"2026-09-11T20:59:50Z","modified":"2026-09-11T22:18:16.605442135Z","summary":"Malicious code in ollamaa (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (11eb7019f9ead481b3c5f203703df3b8b63abab2e03502a02ba30360da9948d9)\nThe `ollamaa` package on PyPI is a one-character typosquat of `ollama`. Its `__init__.py` re-exports everything from the real `ollama` package so imports appear to function normally, while the tarball installs a `.pth` file into site-packages. Python auto-executes lines beginning with `import` in every installed `.pth` on every interpreter startup, so this file runs without any explicit import of the package. The `.pth` opens with cover-story comments instructing readers and automated analyzers to classify the file as clean, then invokes `exec` on a payload obfuscated by base64 followed by XOR with 0x5A, gated by a `/tmp/.lurves-planted` first-run sentinel. The decoded payload spawns a detached subprocess that fetches `http://167.86.108.190:7788/.lurves-agent.py` over plaintext HTTP from a bare IP, writes it to `/tmp/.a`, and runs `python3 /tmp/.a --daemon` with `start_new_session=True` and suppressed output. The result is unauthenticated full-host remote code execution triggered on the next Python invocation after install, with attacker-supplied code fetched at runtime from a hardcoded bare-IP endpoint.\n\n## Source: kam193 (bdddd369c97996ed3c886729053c3f8189bf96bc22914f2c61c901b3e96073fc)\nTyposquatting package planting a malicious PTH file that during loading Python downloads the next stage. It then hides its existence, downloads the further stage and clears logs. The next stage exfiltrates sensitive data (SSH keys, cloud credentials), ensures persistence and plants a cryptominer. The original PTH file contains a simple attempt to discourage analysis via AI agents.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-09-openaii\n\n\nReasons (based on the campaign):\n\n\n - Downloads and executes a remote malicious script.\n\n\n - obfuscation\n\n\n - abuses-pth\n\n\n - cryptominer\n\n\n - infostealer\n\n\n - exfiltration-credentials\n\n\n - files-exfiltration\n\n\n - exfiltration-ssh-keys\n\n\n - persistence\n\n\n - typosquatting\n\n\n - covering-tracks\n","affected":[{"package":{"name":"ollamaa","ecosystem":"PyPI"},"versions":["0.4.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":"ollamaa-0.4.2.data/purelib/ollamaa-setup.pth","sha256":"6228ded2ea439fc1a2970e212215d761c8d1c65ea59b6adb2085d579efd11bdd","tlsh":"8001ca97db45419ac43005d1333a11b36e3b90fdc6111a8c44bc5ad0331213823a3c39"},{"path":"ollamaa-0.4.2.dist-info/METADATA","sha256":"1663a8bfee40aaa57960a8fe014f19b797bd660418160772aca4fa5c53a534e8","tlsh":"a7b09b5633d417b2199156cdc25d925512eca634d05f1d8d8553d64c4a8028e7564370"}],"package_integrity":[{"filename":"ollamaa-0.4.2-py3-none-any.whl","hashes":{"blake2b_256":"9427c2f8174aacc4125f45085f7bf27b671d4aacb84b242835c250d2276c78ad","md5":"acc3730a32e416998a9d21af780f4130","sha256":"eae832072491886970ad826be1eea1fbd70d687ee523b5d4dad971cb0ef1df42"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/ollamaa"},{"type":"PACKAGE","url":"https://pypi.org/project/ollamaa/0.4.2/"}],"database_specific":{"iocs":{"ips":["167.86.108.190"],"urls":["http://167.86.108.190:7788/stage1.py","http://167.86.108.190:7788/.lurves-agent.py"]},"malicious-packages-origins":[{"id":"pypi/2026-09-openaii/ollamaa","import_time":"2026-09-11T21:15:39.547971492Z","modified_time":"2026-09-11T20:59:50.302913Z","sha256":"bdddd369c97996ed3c886729053c3f8189bf96bc22914f2c61c901b3e96073fc","source":"kam193","versions":["0.4.2"]},{"id":"IN-MAL-2026-020007","import_time":"2026-09-11T22:16:21.670948081Z","modified_time":"2026-09-11T22:15:04Z","sha256":"11eb7019f9ead481b3c5f203703df3b8b63abab2e03502a02ba30360da9948d9","source":"amazon-inspector","versions":["0.4.2"]}]},"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":"ANALYST"}]}

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