{"id":"MAL-2025-49310","summary":"Malicious code in faker-python (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (2d88bf5533b182da36c514791c3e6841d83565d4d7f7065a09cdebddc2509453)\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 (de8fcd89ceac4710fb35902553838b859dfcfcee125fb2abea28362019be0ce9)\nThe OpenSSF Package Analysis project identified 'faker-python' @ 999.0.0 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","modified":"2025-12-31T02:55:22.002667Z","published":"2025-11-02T23:05:33Z","database_specific":{"malicious-packages-origins":[{"sha256":"de8fcd89ceac4710fb35902553838b859dfcfcee125fb2abea28362019be0ce9","source":"ossf-package-analysis","import_time":"2025-11-02T23:05:46.421087903Z","versions":["999.0.0"],"modified_time":"2025-11-02T23:05:33Z"},{"sha256":"84da54c8c6721b70f369fa120a28d33900181267eda0ecc6e7e07528045d0ccd","id":"RLMA-2025-05594","import_time":"2025-12-02T09:09:36.555227761Z","versions":["999.0.0","999.0.1"],"modified_time":"2025-12-01T12:54:16Z","source":"reversing-labs"},{"sha256":"8ca82c10022b07df9cb6d95664509def989bb9a9de2ba3aae946f703a4142131","id":"pypi/GENERIC-standard-pypi-install-pentest/faker-python","import_time":"2025-12-02T22:30:56.026158683Z","versions":["999.0.1","999.0.0","0.0.1"],"modified_time":"2025-11-03T06:20:54.817187Z","source":"kam193"},{"sha256":"2d88bf5533b182da36c514791c3e6841d83565d4d7f7065a09cdebddc2509453","id":"pypi/GENERIC-standard-pypi-install-pentest/faker-python","import_time":"2025-12-02T23:07:19.224725746Z","versions":["999.0.1","999.0.0","0.0.1"],"modified_time":"2025-11-03T06:20:54.817187Z","source":"kam193"},{"sha256":"72b76e29dc7998e9c9ad7c660adbabc145f846c6a49c1a4f78e86a9e877a6a96","id":"pypi/GENERIC-standard-pypi-install-pentest/faker-python","import_time":"2025-12-30T22:39:04.287893896Z","versions":["0.0.1","999.0.0","999.0.1"],"modified_time":"2025-11-03T06:20:54.817187Z","source":"kam193"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/faker-python"}],"affected":[{"package":{"name":"faker-python","ecosystem":"PyPI","purl":"pkg:pypi/faker-python"},"versions":["999.0.0","999.0.1","0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/faker-python/MAL-2025-49310.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"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}