{"id":"MAL-2024-12331","summary":"Malicious code in pydevd-inject (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (5a67732a19f213875b774ca8fb24e8d3c1c3cd9d357cf7e6425a3ee3eadb9f3a)\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:41:53.367015Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"import_time":"2025-12-02T22:30:56.323388304Z","modified_time":"2024-07-26T16:53:30Z","id":"pypi/GENERIC-standard-pypi-install-pentest/pydevd-inject","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"dd88c118343bd7f7d1f8068c679fd2637b2c48700c454d63a2f11e575ba9149c","source":"kam193"},{"import_time":"2025-12-02T23:07:19.51369634Z","modified_time":"2024-07-26T16:53:30Z","id":"pypi/GENERIC-standard-pypi-install-pentest/pydevd-inject","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"5a67732a19f213875b774ca8fb24e8d3c1c3cd9d357cf7e6425a3ee3eadb9f3a","source":"kam193"},{"import_time":"2025-12-10T21:38:58.624576942Z","modified_time":"2024-07-26T16:53:30Z","id":"pypi/GENERIC-standard-pypi-install-pentest/pydevd-inject","versions":["66.0.4"],"sha256":"7c657fdbc92890daaad4b99d2585c51041dc867c24202f020e27e706c25eec73","source":"kam193"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pydevd-inject"}],"affected":[{"package":{"name":"pydevd-inject","ecosystem":"PyPI","purl":"pkg:pypi/pydevd-inject"},"versions":["66.0.4"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pydevd-inject/MAL-2024-12331.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"}]}