{"id":"MAL-2024-12218","summary":"Malicious code in bettercolorstesting (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (607fc60886a9983c22c65cd01bb93585f27b0830f203f3b3b181ff12026ea036)\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:30.318138Z","published":"2024-11-30T09:03:27Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/2023-12-valuent/bettercolorstesting","import_time":"2025-12-02T22:30:55.88456737Z","modified_time":"2024-11-30T09:03:27Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"878bc6d33ebd6158009ec874d1cbeb88951f51c2a6ac02994c33d369ad8a0773","source":"kam193"},{"source":"kam193","id":"pypi/2023-12-valuent/bettercolorstesting","import_time":"2025-12-02T23:07:19.068293603Z","modified_time":"2024-11-30T09:03:27Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"607fc60886a9983c22c65cd01bb93585f27b0830f203f3b3b181ff12026ea036"},{"versions":["1.0.0"],"id":"pypi/2023-12-valuent/bettercolorstesting","import_time":"2025-12-10T21:38:58.205667442Z","modified_time":"2024-11-30T09:03:27Z","sha256":"42f3e930c5caaeda5f967533004e2968a944b98e79a95160252a33466f7b1dd2","source":"kam193"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/bettercolorstesting"}],"affected":[{"package":{"name":"bettercolorstesting","ecosystem":"PyPI","purl":"pkg:pypi/bettercolorstesting"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bettercolorstesting/MAL-2024-12218.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"}]}