Files
vuln-osv/data/PyPI/MAL-2026-19934.json
T

1 line
4.6 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2026-19934","published":"2026-11-14T15:28:36Z","modified":"2026-11-14T20:45:04.800103817Z","summary":"Malicious code in ps-bool (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5dcafa44d321e5c6169bbdd949fa1d421e5039bc53d017c00d3e5411f33db5ec)\nThe sole module shipped in both the sdist and the wheel, main.py, consists entirely of `exec(zlib.decompress(base64.b85decode('...')))` at the top level. The package exposes this module as `py_modules=['main']` and wires it as the `psbool` console_script, so the opaque, compressed-and-encoded blob is decoded and executed unconditionally the first time the module is imported or the CLI is invoked. There is no source, documentation, or API surface — the entire implementation is a single encoded payload, deliberately concealing its behavior from anyone inspecting the package before it runs. A boolean-logic utility has no legitimate reason to ship its implementation as an opaque exec-of-decoded-bytes blob; this is the canonical obfuscated-payload import-time execution shape and causes an arbitrary author-controlled program to run on the installer's machine.\n\n## Source: kam193 (119ef283a7038fe02a4d309ce942bcce3a37a70ef5468749ae4f4e378d971e9d)\nDuring import, obfuscated code exfiltrates photos and documents to a Telegram bot. It targets Android devices.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-ps-bool\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - obfuscation\n\n\n - uses-telegram-bot\n\n\n - target:android\n","affected":[{"package":{"name":"ps-bool","ecosystem":"PyPI","purl":"pkg:pypi/ps-bool"},"versions":["0.2.0","0.2.1","0.2.3","0.2.4","0.2.5"],"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"}],"indicators":{"evidence_files":[{"artifacts":["ps_bool-0.2.3.tar.gz","ps_bool-0.2.3-py3-none-any.whl"],"path":"main.py","sha256":"d0c74461b872ef05be3ac279dc73f6d0b24696faf94972b7f78dadabb0fea61c","tlsh":"3cb17d21192f34af3356473359a3715defb6b2fc94593e56493a81f09503ea3b8cd488"}],"package_integrity":[{"filename":"ps_bool-0.2.3-py3-none-any.whl","hashes":{"blake2b_256":"f8dfa2f37ad1ec18cff1e38e0ebe0369f9611ab1adff39f503599b0c41b396a4","md5":"fc279e488eb84ed87c8cae33ed63260c","sha256":"351a1b04a3c78f158a42d387e63f108f90166aa90ad972ed6ebd65b24ed5f0f9"}},{"filename":"ps_bool-0.2.3.tar.gz","hashes":{"blake2b_256":"6f991c96eb67a9a0d765d8385f0c47e1d8d32f171e2b0e443b5a192ca3d9b150","md5":"c07caeb6774e2efddec0f01cda474b88","sha256":"94b72094dc67ebd8038d1211b0496372eb75e3c837ce7064f63807c9820ccc96"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/ps-bool/MAL-2026-19934.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/ps-bool"},{"type":"PACKAGE","url":"https://pypi.org/project/ps-bool/0.2.3/"},{"type":"PACKAGE","url":"https://pypi.org/project/ps-bool/0.2.4/"},{"type":"PACKAGE","url":"https://pypi.org/project/ps-bool/0.2.5/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-11-ps-bool/ps-bool","import_time":"2026-11-14T16:11:34.121253507Z","modified_time":"2026-11-14T15:29:58.76019Z","sha256":"119ef283a7038fe02a4d309ce942bcce3a37a70ef5468749ae4f4e378d971e9d","source":"kam193","versions":["0.2.0","0.2.1","0.2.3","0.2.4","0.2.5"]},{"id":"IN-MAL-2026-022778","import_time":"2026-11-14T20:36:15.130186269Z","modified_time":"2026-11-14T20:22:51Z","sha256":"b4774cf69e0f73b066e442a0241b13c300135e4a7bc471f7a8768c77fdd09b6c","source":"amazon-inspector","versions":["0.2.3"]},{"id":"IN-MAL-2026-022776","import_time":"2026-11-14T20:36:15.061253234Z","modified_time":"2026-11-14T20:22:39Z","sha256":"d1639c1857cd8a9cfebe4dc7c7802b75487101b9387625e3141abe2f25e7535c","source":"amazon-inspector","versions":["0.2.4"]},{"id":"IN-MAL-2026-022777","import_time":"2026-11-14T20:36:15.10082354Z","modified_time":"2026-11-14T20:22:46Z","sha256":"5dcafa44d321e5c6169bbdd949fa1d421e5039bc53d017c00d3e5411f33db5ec","source":"amazon-inspector","versions":["0.2.5"]}]},"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"}]}