{"id":"MAL-2024-12221","summary":"Malicious code in blz-test-package (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (01f2433c1d8bc3c461a9580e06ffcac55e0d5e79ac651f1326c6ddd10114a544)\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-12T20:36:38.832899Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"121728257844143a4062950382204e6f338d3341b5a628bcdfcfb2b442616423","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/blz-test-package","import_time":"2025-12-02T22:30:55.890805416Z","modified_time":"2024-07-26T16:53:30Z"},{"import_time":"2025-12-02T23:07:19.075483441Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"01f2433c1d8bc3c461a9580e06ffcac55e0d5e79ac651f1326c6ddd10114a544","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/blz-test-package"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/blz-test-package","import_time":"2025-12-10T21:38:58.210453115Z","modified_time":"2024-07-26T16:53:30Z","sha256":"cba8d1a21b518934dfc7a82238fbcbc05778298b758d5e4cd4ea09998c280718","source":"kam193","versions":["3.0.2"]}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/blz-test-package"}],"affected":[{"package":{"name":"blz-test-package","ecosystem":"PyPI","purl":"pkg:pypi/blz-test-package"},"versions":["3.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/blz-test-package/MAL-2024-12221.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":"ANALYST"}]}