{"id":"MAL-2026-6138","summary":"Malicious code in randpicker (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (378d07b700aa25d356594d7b1c42db107def3dbd1cce734e4c1c50b411048eb6)\nWhen calling the `Email` function, the code creates a backdoor script and attempts to achieve persistence. The script connects to a Telegram bot and awaits commands to execute.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-old-randpicker\n\n\nReasons (based on the campaign):\n\n\n - action-hidden-in-lib-usage\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - backdoor\n\n\n - uses-telegram-bot\n\n\n - persistence\n\n\n - peristence-autorun\n","modified":"2026-06-18T18:30:57.543107691Z","published":"2026-06-18T17:21:25Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-06-old-randpicker/randpicker","import_time":"2026-06-18T18:20:34.596197706Z","modified_time":"2026-06-18T17:21:25.482721Z","sha256":"378d07b700aa25d356594d7b1c42db107def3dbd1cce734e4c1c50b411048eb6","source":"kam193","versions":["0.1.0"]}]},"references":[{"type":"WEB","url":"https://opensourcemalware.com/pypi/randpicker"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/randpicker"}],"affected":[{"package":{"name":"randpicker","ecosystem":"PyPI","purl":"pkg:pypi/randpicker"},"versions":["0.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/randpicker/MAL-2026-6138.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}