{"id":"MAL-2024-12252","summary":"Malicious code in dependency-confusion-test-666 (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (d4daea3fdf20972a88b9946b1251807b3caca0e1634dd53c2be92cf3d1849cd8)\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":"2025-12-12T20:39:08.280159Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/dependency-confusion-test-666","import_time":"2025-12-02T22:30:55.986024869Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"8aa334bd9c6be50b8f3512dee851b602177953e8b51733de3860b2a7bfcb83fe"},{"import_time":"2025-12-02T23:07:19.180584787Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"d4daea3fdf20972a88b9946b1251807b3caca0e1634dd53c2be92cf3d1849cd8","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/dependency-confusion-test-666"},{"versions":["999999.0.0"],"id":"pypi/GENERIC-standard-pypi-install-pentest/dependency-confusion-test-666","import_time":"2025-12-10T21:38:58.321506309Z","modified_time":"2024-07-26T16:53:30Z","sha256":"8aa4f83b01c83a30df53b20c9c8073f05a1a9eccf1cada935ae12d4128ddea5d","source":"kam193"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/dependency-confusion-test-666"}],"affected":[{"package":{"name":"dependency-confusion-test-666","ecosystem":"PyPI","purl":"pkg:pypi/dependency-confusion-test-666"},"versions":["999999.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/dependency-confusion-test-666/MAL-2024-12252.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"}]}