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