{"id":"MAL-2024-11708","summary":"Malicious code in sklearns (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (4e260abb013bb5822352ea0e834c081da4d0ab7c66ac8c853cfd809552d02d1a)\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":"2026-03-19T12:56:56.072026Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"id":"RLMA-2024-11166","import_time":"2024-12-09T14:38:49.142405473Z","modified_time":"2024-12-09T06:51:10Z","sha256":"b65e44dd655f4c6f4479ba4fc54e34336df0f1e4134d5e1c5fb0f45a95446762","source":"reversing-labs","versions":["0.3"]},{"import_time":"2025-12-02T22:30:56.407582601Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"e887bf777469970f69130d4b4c9a3ab938c4f7a93d037d06ade7be9d57079a10","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/sklearns"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/sklearns","import_time":"2025-12-02T23:07:19.593780642Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"4e260abb013bb5822352ea0e834c081da4d0ab7c66ac8c853cfd809552d02d1a","source":"kam193"},{"import_time":"2025-12-10T21:38:58.696853892Z","modified_time":"2024-07-26T16:53:30Z","sha256":"a9b09fddb2e713c5ca5d755dbad3da9733e5b74d153c285405c106c70b42b655","source":"kam193","versions":["0.3"],"id":"pypi/GENERIC-standard-pypi-install-pentest/sklearns"},{"id":"RLUA-2026-00762","import_time":"2026-03-19T12:20:27.952117481Z","modified_time":"2026-03-18T12:18:51Z","sha256":"3151785db0d1ef96e47d1f58d83d08ce6971fd7f40b68aeb1cbf79df47d76067","source":"reversing-labs"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/sklearns"}],"affected":[{"package":{"name":"sklearns","ecosystem":"PyPI","purl":"pkg:pypi/sklearns"},"versions":["0.3"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/sklearns/MAL-2024-11708.json"}}],"schema_version":"1.7.5","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"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}