{"id":"MAL-2024-9446","summary":"Malicious code in flag-leak-r (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (88c1df06a02daf1a911f895df0bd495b0f0d2e72f3b9ad45fe5a837575379c9e)\nGeneric campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: GENERIC-questionable-pentest\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-generic\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - typosquatting\n\n## Source: ossf-package-analysis (095f9908b28b3dfb45e9f5e8d291ad2492bb271f23e5f4b714328ba722252838)\nThe OpenSSF Package Analysis project identified 'flag-leak-r' @ 0.1.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-12T20:39:22.269964Z","published":"2024-09-06T11:29:16Z","database_specific":{"malicious-packages-origins":[{"versions":["0.1.0"],"source":"ossf-package-analysis","sha256":"095f9908b28b3dfb45e9f5e8d291ad2492bb271f23e5f4b714328ba722252838","modified_time":"2024-10-22T02:06:01Z","import_time":"2024-10-22T02:28:26.577481179Z"},{"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"id":"pypi/GENERIC-questionable-pentest/flag-leak-r","source":"kam193","sha256":"747eacc8dcf63ec5f77aaebbb960d3a811e31270c721aa54b7a2c037d79104c3","modified_time":"2024-09-06T11:29:16Z","import_time":"2025-12-02T22:30:55.195972459Z"},{"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"id":"pypi/GENERIC-questionable-pentest/flag-leak-r","source":"kam193","sha256":"88c1df06a02daf1a911f895df0bd495b0f0d2e72f3b9ad45fe5a837575379c9e","modified_time":"2024-09-06T11:29:16Z","import_time":"2025-12-02T23:07:18.204926071Z"},{"id":"pypi/GENERIC-questionable-pentest/flag-leak-r","versions":["0.1.0"],"source":"kam193","sha256":"0c10b287871d2837d148658da49d9237d930ed53f40e982a5592b664f184e345","modified_time":"2024-09-06T11:29:16Z","import_time":"2025-12-10T21:38:57.489291745Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/flag-leak-r"}],"affected":[{"package":{"name":"flag-leak-r","ecosystem":"PyPI","purl":"pkg:pypi/flag-leak-r"},"versions":["0.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/flag-leak-r/MAL-2024-9446.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":"REPORTER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}