MAL-2026-5283
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (3cc7d54b0e30e24367551e3f19ab7387cf397cf9e1b5889c9f04ff871c771c38)
The 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.
Source: kam193 (ec7e17ca2529781ce61d69b2d7e765c5e3e790d3ae2e2f187b006d710d7f9ed1)
Versions 0.0.7, 0.0.8 were compromised.
Compromised 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.
It seems to be related to the recent Mini Shai Hulud campaign.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-06-compr-woodpecker
Reasons (based on the campaign):
-
compromised-package
-
exfiltration-env-variables
-
exfiltration-cloud-tokens
-
exfiltration-credentials
-
abuses-pth
-
obfuscation
-
infostealer
-
The package contains code to detect if it is running in a sandbox environment.
-
exfiltration-crypto
-
files-exfiltration
-
destructive-actions
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"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": "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"
}
}
]
}
},
"package": {
"ecosystem": "PyPI",
"name": "okite"
},
"versions": [
"0.0.7",
"0.0.8"
]
}
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
},
{
"contact": [
"https://github.com/kam193",
"https://bad-packages.kam193.eu/"
],
"name": "Kamil Ma\u0144kowski (kam193)",
"type": "REPORTER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "pypi/2026-06-compr-woodpecker/okite",
"import_time": "2026-06-06T07:59:00.776277525Z",
"modified_time": "2026-06-06T06:13:57Z",
"sha256": "ec7e17ca2529781ce61d69b2d7e765c5e3e790d3ae2e2f187b006d710d7f9ed1",
"source": "kam193",
"versions": [
"0.0.7",
"0.0.8"
]
},
{
"id": "pypi/2026-06-compr-woodpecker/okite",
"import_time": "2026-06-08T11:41:02.534759894Z",
"modified_time": "2026-06-06T06:13:57Z",
"sha256": "5cf921b48b1105a7a47b92fbf9fbcd24ed3445efedecc92aeb1d2fdfa13aa7fc",
"source": "kam193",
"versions": [
"0.0.7",
"0.0.8"
]
},
{
"id": "pypi/2026-06-compr-woodpecker/okite",
"import_time": "2026-06-08T19:19:19.19023116Z",
"modified_time": "2026-06-06T06:31:01Z",
"sha256": "de64a279d3f974f903f8ed5a914b920a13bccf9ed2d6a3359f580015e483ce70",
"source": "kam193",
"versions": [
"0.0.7",
"0.0.8"
]
},
{
"id": "pypi/2026-06-compr-woodpecker/okite",
"import_time": "2026-06-09T07:48:29.648620194Z",
"modified_time": "2026-06-06T06:31:01Z",
"sha256": "c5caf96fb4b9ce1d5947811ac97e0c1773c22bb1b3ac7170d91d8aabca3dfabd",
"source": "kam193",
"versions": [
"0.0.7",
"0.0.8"
]
},
{
"id": "IN-MAL-2026-006099",
"import_time": "2026-06-12T19:44:07.922058948Z",
"modified_time": "2026-06-12T19:08:48Z",
"sha256": "3cc7d54b0e30e24367551e3f19ab7387cf397cf9e1b5889c9f04ff871c771c38",
"source": "amazon-inspector",
"versions": [
"0.0.7"
]
}
]
},
"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\" \u2014 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\u0027s 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",
"id": "MAL-2026-5283",
"modified": "2026-06-12T19:46:18Z",
"published": "2026-06-06T06:13:57Z",
"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/"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in okite (PyPI)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.