{"id":"MAL-2024-10895","summary":"Malicious code in some-random-package-33 (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (56e2adbf4dfb01600fc7df2c4a270d862b1b575c7040142ae070c7bf990d671e)\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\n## Source: ossf-package-analysis (0202389971fffa3954690cc01ec76374424a1edd87f08ee6f80999f756cb13f6)\nThe OpenSSF Package Analysis project identified 'some-random-package-33' @ 2.3.100 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2025-12-12T20:48:44.103162Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"source":"ossf-package-analysis","versions":["2.3.100"],"import_time":"2024-11-24T10:37:24.312802987Z","modified_time":"2024-11-24T10:05:46Z","sha256":"0202389971fffa3954690cc01ec76374424a1edd87f08ee6f80999f756cb13f6"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/some-random-package-33","source":"kam193","import_time":"2025-12-02T22:30:56.408624018Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"f3c8d55d7c36cb7cff3ad56d59e2484be8f6bb470c7bdf9f3b322fbf85901196"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/some-random-package-33","source":"kam193","import_time":"2025-12-02T23:07:19.594554736Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"56e2adbf4dfb01600fc7df2c4a270d862b1b575c7040142ae070c7bf990d671e"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/some-random-package-33","source":"kam193","versions":["2.3.100"],"import_time":"2025-12-10T21:38:58.699027833Z","modified_time":"2024-07-26T16:53:30Z","sha256":"3d4eb3aaf403806453e9f17abac2436c5ef33bcf397540cf376f35b2ce225706"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/some-random-package-33"}],"affected":[{"package":{"name":"some-random-package-33","ecosystem":"PyPI","purl":"pkg:pypi/some-random-package-33"},"versions":["2.3.100"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/some-random-package-33/MAL-2024-10895.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"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}