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