pypi · Malicious package advisory
Malwareexecutor-engine
GHSA-83h3-3hm4-63c5
Malicious code in executor-engine (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.3.4` ## Source: amazon-inspector (7fee580000475783e657a2e66ca6a4a4bd4369aa0bc9f87152b003dca6f34848) executor-engine 0.3.4 ships a malicious site-packages.pth file (`executor_engine-setup.pth`) that Python's site initialization auto-executes on every interpreter start after installation. The.pth contains a nested `exec()` payload with deliberately obfuscated single-letter aliases (`_o,_s,_u,_p,_zf,_g`) for `os`, `subprocess`, `urllib.request`, `platform`, `zipfile`, and `glob` to evade simple keyword scanning. On execution it downloads the Bun JavaScript runtime from `https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-<platform>-<arch>.zip` to `/tmp/b/bun`, chmods it executable, locates a bundled `_index.js` via glob within the installed package tree, and runs it under Bun (`subprocess.run([bun,'run',_index.js])`). A `/tmp/.bun_ran` marker is used to suppress repeated execution. The package's declared purpose is Python job management and it has no documented need for a JavaScript runtime. Additional compromise indicators: the distribution is labeled 0.3.4 but `executor/engine/__init__.py` reports `__version__ = '0.3.3'` and the RECORD references `executor_engine-0.3.3.dist-info`, indicating the malicious.pth was bolted onto an otherwise-intact prior legitimate release — fingerprint of a stolen-credential republish. Pulling in this version causes any installer's Python interpreter (including unrelated invocations after install) to fetch and execute an alien runtime against attacker-shipped JavaScript. ## Source: kam193 (445bbd05ea0ef3e22608235bea18f26fc18aaaff2066b5512c9752ba04a6ab13) Versions 0.3.4, 0.3.5 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 […] **References:** - https://bad-packages.kam193.eu/pypi/campaign/2026-06-compr-woodpecker - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/executor-engine/MAL-2026-5298.json - https://o3.security/blog/pypi-supply-chain-attack-pth-file-miasma - https://pypi.org/project/executor-engine/0.3.4 - https://pypi.org/project/executor-engine/0.3.5 - https://socket.dev/blog/mini-shai-hulud-campaign-hits-red-hat-cloud-services-npm-packages - https://socket.dev/blog/mini-shai-hulud-miasma-and-hades-worms-target-bioinformatics-and-mcp-developers-via-malicious - https://socket.dev/blog/shai-hulud-descends-to-hades-miasma-pypi-wave
Compromised versions (1)
- = 0.3.4
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.