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

目标: 1000 元 · 已筹: 1359 元

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

okite

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

Summary

Malicious code in okite (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
pypistats.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIokite0.0.7
PyPIokite0.0.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T22:58:24Z","published":"2026-06-06T06:13:57Z","schema_version":"1.7.4","id":"MAL-2026-5283","summary":"Malicious code in okite (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3cc7d54b0e30e24367551e3f19ab7387cf397cf9e1b5889c9f04ff871c771c38)\nThe package installs okite-setup.pth, which Python auto-loads on every interpreter start. The.pth file contains a one-line obfuscated exec() of a string program (variables reduced to one- and two-character names like _o, _s, _u, _b, _z, _zf) that performs urllib.request.urlretrieve against https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-{platform}-{arch}.zip, extracts the Bun JavaScript runtime to /tmp/b/bun, chmods it 0755, and runs a sibling _index.js (with a glob fallback `*/_index.js`) via subprocess as `bun run _index.js`. Execution is gated only by a /tmp/.bun_ran sentinel so it fires once per temp directory lifetime. The stated package purpose is \"A Pythonic RPC package\" — there is no legitimate reason an RPC library would fetch and execute an alternate language runtime, and routing the payload through Bun deliberately bypasses Python-level inspection of the actual behavior. The combination of (a) execution at every interpreter start via.pth abuse, (b) outbound fetch of a runtime from a third-party release host, (c) use of that runtime to execute a bundled JS file, and (d) heavy obfuscation in a file format that should contain only `import` statements is an unambiguous alternate-runtime-dropper pattern.\n\n## Source: kam193 (ec7e17ca2529781ce61d69b2d7e765c5e3e790d3ae2e2f187b006d710d7f9ed1)\nVersions 0.0.7, 0.0.8 were compromised.\n\n\nCompromised packages start 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":"okite"},"versions":["0.0.7","0.0.8"],"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":"okite-setup.pth","sha256":"c539766062555d47716f8432e73adbe3a0c0c954a0b6c4005017a668975e275c","tlsh":"4911c02e429385b0d975d646830b19f4afdb8ce28fc79506c8d8d4c1a7b2e50e3b7684"}],"package_integrity":[{"filename":"okite-0.0.7-py3-none-any.whl","hashes":{"blake2b_256":"334b094593dec180bc083c1a213042288df4eb7543605bf1718b2894f23e154a","md5":"eddbb268d22bf46961a1443066fd30ab","sha256":"29f0d6556ad9119c2cec9c1c2c88dcd359b6af3f94ef545fabfdcd9b5910364b"}}]}}}],"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/campaign/2026-06-compr-woodpecker"},{"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/okite/0.0.7/"},{"type":"PACKAGE","url":"https://pypi.org/project/okite/0.0.8/"}],"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":"ec7e17ca2529781ce61d69b2d7e765c5e3e790d3ae2e2f187b006d710d7f9ed1","import_time":"2026-06-06T07:59:00.776277525Z","id":"pypi/2026-06-compr-woodpecker/okite","modified_time":"2026-06-06T06:13:57Z","versions":["0.0.7","0.0.8"]},{"source":"kam193","sha256":"5cf921b48b1105a7a47b92fbf9fbcd24ed3445efedecc92aeb1d2fdfa13aa7fc","import_time":"2026-06-08T11:41:02.534759894Z","id":"pypi/2026-06-compr-woodpecker/okite","modified_time":"2026-06-06T06:13:57Z","versions":["0.0.7","0.0.8"]},{"source":"kam193","sha256":"de64a279d3f974f903f8ed5a914b920a13bccf9ed2d6a3359f580015e483ce70","import_time":"2026-06-08T19:19:19.19023116Z","id":"pypi/2026-06-compr-woodpecker/okite","modified_time":"2026-06-06T06:31:01Z","versions":["0.0.7","0.0.8"]},{"source":"kam193","sha256":"c5caf96fb4b9ce1d5947811ac97e0c1773c22bb1b3ac7170d91d8aabca3dfabd","import_time":"2026-06-09T07:48:29.648620194Z","id":"pypi/2026-06-compr-woodpecker/okite","modified_time":"2026-06-06T06:31:01Z","versions":["0.0.7","0.0.8"]},{"source":"amazon-inspector","sha256":"3cc7d54b0e30e24367551e3f19ab7387cf397cf9e1b5889c9f04ff871c771c38","import_time":"2026-06-12T19:44:07.922058948Z","id":"IN-MAL-2026-006099","modified_time":"2026-06-12T19:08:48Z","versions":["0.0.7"]},{"source":"amazon-inspector","sha256":"749d0d3816f36105bf53d90e6b4ab27514018851f7eb65628c943a94d4b1d9d5","import_time":"2026-07-09T22:56:29.600869269Z","id":"IN-MAL-2026-009510","modified_time":"2026-07-09T22:05:59Z","versions":["0.0.8"]}]}}

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