{"id":"MAL-2024-12217","summary":"Malicious code in bestcolorsever3 (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (4870c1bbc72ff9abf86bcdb025ddf4a63c361c3bd3081db4cc812f4564e6301c)\nPackages either test the malicious behaviour, or actually download and run a simple remote script during the installation.\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: 2023-12-valuent\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\n\n - Downloads and executes a remote malicious script.\n","modified":"2025-12-12T20:36:27.761239Z","published":"2024-11-30T09:03:27Z","database_specific":{"malicious-packages-origins":[{"sha256":"ae08177b5187f8353a45efd2fee8e70d0d6c99b1e563f85f1cf480802f950e4d","source":"kam193","id":"pypi/2023-12-valuent/bestcolorsever3","import_time":"2025-12-02T22:30:55.883651989Z","modified_time":"2024-11-30T09:03:27Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}]},{"source":"kam193","id":"pypi/2023-12-valuent/bestcolorsever3","import_time":"2025-12-02T23:07:19.067198541Z","modified_time":"2024-11-30T09:03:27Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"4870c1bbc72ff9abf86bcdb025ddf4a63c361c3bd3081db4cc812f4564e6301c"},{"id":"pypi/2023-12-valuent/bestcolorsever3","import_time":"2025-12-10T21:38:58.204682746Z","modified_time":"2024-11-30T09:03:27Z","sha256":"3c5a60fd157533d1e47aa6b0a6642d915d9cf5cfe96449c1373ba9b742071b0b","source":"kam193","versions":["1.0.0"]}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/bestcolorsever3"}],"affected":[{"package":{"name":"bestcolorsever3","ecosystem":"PyPI","purl":"pkg:pypi/bestcolorsever3"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bestcolorsever3/MAL-2024-12217.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"}]}