{"id":"MAL-2025-191838","summary":"Malicious code in pytelegramapi (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (d50aff9e36f41642610a858c0117318ed7483aad0e4f517a1485ca2d66574c2a)\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":"2025-12-31T02:56:20.752515Z","published":"2025-10-20T17:57:20Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-standard-pypi-install-pentest/pytelegramapi","import_time":"2025-12-02T22:30:56.333183149Z","modified_time":"2025-10-21T13:07:07.675894Z","sha256":"72e0c560463c694c82e67af88377f64c9674e3f35896275d16b30fc6d831a7a9","source":"kam193","versions":["2.32.7","2.32.6","2.32.5","2.32.8"]},{"source":"kam193","versions":["2.32.7","2.32.6","2.32.5","2.32.8"],"id":"pypi/GENERIC-standard-pypi-install-pentest/pytelegramapi","import_time":"2025-12-02T23:07:19.523140708Z","modified_time":"2025-10-21T13:07:07.675894Z","sha256":"d50aff9e36f41642610a858c0117318ed7483aad0e4f517a1485ca2d66574c2a"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/pytelegramapi","import_time":"2025-12-30T22:39:04.335764577Z","modified_time":"2025-10-21T13:07:07.675894Z","sha256":"da12ed3c016dca01db44da1815fe2a61eef42a83e7b404aa42a734a1170c71b2","source":"kam193","versions":["2.32.5","2.32.6","2.32.7","2.32.8"]}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pytelegramapi"}],"affected":[{"package":{"name":"pytelegramapi","ecosystem":"PyPI","purl":"pkg:pypi/pytelegramapi"},"versions":["2.32.7","2.32.6","2.32.5","2.32.8"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pytelegramapi/MAL-2025-191838.json"}}],"schema_version":"1.7.3","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}