{"id":"MAL-2026-1089","summary":"Malicious code in randomstringgen (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (9fc95ea566ad1938f7f75123eee2d8b3365bf55f06d7aa8a5f569f5e4c696132)\nUsing the provided function results in exfiltrating the current running file (likely the user's script) to the hardcoded location.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-02-old-randomstringgen\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - action-hidden-in-lib-usage\n","modified":"2026-02-28T17:22:40.069205Z","published":"2026-02-28T16:48:52Z","database_specific":{"malicious-packages-origins":[{"sha256":"9fc95ea566ad1938f7f75123eee2d8b3365bf55f06d7aa8a5f569f5e4c696132","source":"kam193","versions":["0.1","0.2","0.3","0.4"],"id":"pypi/2026-02-old-randomstringgen/randomstringgen","import_time":"2026-02-28T17:07:19.736156916Z","modified_time":"2026-02-28T16:48:52.494163Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/randomstringgen"}],"affected":[{"package":{"name":"randomstringgen","ecosystem":"PyPI","purl":"pkg:pypi/randomstringgen"},"versions":["0.1","0.2","0.3","0.4"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/randomstringgen/MAL-2026-1089.json"}}],"schema_version":"1.7.3","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}