{"id":"MAL-2026-20516","summary":"Malicious code in oh-my-zelenka (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (877b173c248316fb28f6e81bea3996b4d410a99b31e5fe7459291f50d11b91f7)\nOn `import oh_my_zelenka`, the top-level __init__.py unconditionally starts a daemon background thread that collects installer-side host and process information — platform details, uid/pid, cwd, the contents of /proc/version, `ps aux` output, `pm list packages` output, and EXTERA_* environment variables — and POSTs it as a JSON body to https://httpbin.org/post. On Android hosts it additionally writes the collected data to /storage/emulated/0/Download/extera_poc and reads EXTERA_FILES_DIR / EXTERA_CACHE_DIR. The payload embeds a self-identifying marker (`event: supply_chain_executed`, `source: oh-my-zelenka PyPI package`) framing itself as a supply-chain proof-of-concept targeting the exteraGram Android messenger, but the code path runs unconditionally at import and performs real host reconnaissance and outbound exfiltration regardless of that framing. The destination (httpbin.org) is a public request-echo service rather than attacker-owned infrastructure, but installer process and environment data still leaves the host to a third party the installer did not configure.\n\n## Source: kam193 (6495c0b51d62ce1623d52a7b4aba97de29934c763d44aa6acc3e7ae863bc3d72)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\n\n\n---\n\nCategory: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.\n\n\nCampaign: GENERIC-standard-pypi-install-pentest\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 - The package overrides the install command in setup.py to execute malicious code during installation.\n","modified":"2026-11-24T21:15:04.958538964Z","published":"2026-11-24T20:32:35Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.2"],"id":"IN-MAL-2026-023086","import_time":"2026-11-24T21:10:47.32765459Z","modified_time":"2026-11-24T21:05:47Z","sha256":"515fbf44311d1c937b14f5a481795f8407b6647746023a2e7b2d7675ac3a870e"},{"import_time":"2026-11-24T21:10:47.384166072Z","modified_time":"2026-11-24T21:05:55Z","sha256":"877b173c248316fb28f6e81bea3996b4d410a99b31e5fe7459291f50d11b91f7","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-023087"},{"source":"amazon-inspector","versions":["1.0.3"],"id":"IN-MAL-2026-023088","import_time":"2026-11-24T21:10:47.434972607Z","modified_time":"2026-11-24T21:06:04Z","sha256":"b9f0f6c83b5ec966b736e7c1d3de77aa402506322e1f39a3d1c8d7c0c6baf31e"},{"id":"IN-MAL-2026-023089","import_time":"2026-11-24T21:10:47.47399218Z","modified_time":"2026-11-24T21:06:13Z","sha256":"e9a2a4fbacfe9c8deeeb060582ab9c0496b45d5858224d195d486b4e68568b30","source":"amazon-inspector","versions":["1.0.5"]},{"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.5"],"id":"pypi/GENERIC-standard-pypi-install-pentest/oh-my-zelenka","import_time":"2026-11-24T21:10:50.652000457Z","modified_time":"2026-11-24T20:32:35.99836Z","sha256":"6495c0b51d62ce1623d52a7b4aba97de29934c763d44aa6acc3e7ae863bc3d72","source":"kam193"}]},"references":[{"type":"PACKAGE","url":"https://pypi.org/project/oh-my-zelenka/1.0.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/oh-my-zelenka/1.0.1/"},{"type":"PACKAGE","url":"https://pypi.org/project/oh-my-zelenka/1.0.3/"},{"type":"PACKAGE","url":"https://pypi.org/project/oh-my-zelenka/1.0.5/"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/oh-my-zelenka"}],"affected":[{"package":{"name":"oh-my-zelenka","ecosystem":"PyPI","purl":"pkg:pypi/oh-my-zelenka"},"versions":["1.0.2","1.0.1","1.0.3","1.0.5","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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"oh_my_zelenka-1.0.2-py3-none-any.whl","hashes":{"md5":"d428dadd95caaa945ced91f1b33ef5ee","sha256":"af7b1f3fcec7044825a2036aa7b932a7c6ed611bc1f104614a2530cb460ef375","blake2b_256":"51987dff70d4d01fa45d01a14d5b4c1387b5560d56fdc4f296b89028a6fd97cf"}},{"hashes":{"blake2b_256":"3a8d45823f0cef4c15fe57bd746f5bd9a937d0502438ce6984693e7c58e0dccc","md5":"1e7b13f5ab8d58690b5fefecf0a03a28","sha256":"74bd93d31e13c48557ad58fb3ab891e0f9523a55289b0f734f53070bac17b015"},"filename":"oh_my_zelenka-1.0.2.tar.gz"}],"evidence_files":[{"path":"oh_my_zelenka/__init__.py","sha256":"74a792707a873d4e400500133b601c81dc012270dfb1909a820dc584e38b8542","tlsh":"3512a943dd086d23866389798c43b892339f6a931605f434b9fc52581fa2179c2fbbdc","artifacts":["oh_my_zelenka-1.0.2.tar.gz","oh_my_zelenka-1.0.2-py3-none-any.whl"]}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/oh-my-zelenka/MAL-2026-20516.json"}}],"schema_version":"1.9.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":"REPORTER"}]}