{"id":"MAL-2024-12255","summary":"Malicious code in discord-api (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (3b55230c05e2303e965a53322d83ead8df66e188c696755b26efefd96192a144)\nPackage suggests being an api for discord. On importing the module, it attempts to find and exfiltrate leveldb databases from Discord apps and Chrome\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2024-09-old-discord-api\n\n\nReasons (based on the campaign):\n\n\n - impersonation\n\n\n - dependency-confusion\n\n\n - files-exfiltration\n","modified":"2025-12-12T20:39:18.329558Z","published":"2024-09-16T14:08:13Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2024-09-16T14:08:13Z","source":"kam193","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"3df9379d8893215c1f9e9f612c855e17f141e0993efa3cd8466c007843af0c38","id":"pypi/2024-09-old-discord-api/discord-api","import_time":"2025-12-02T22:30:55.101407712Z"},{"modified_time":"2024-09-16T14:08:13Z","source":"kam193","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"3b55230c05e2303e965a53322d83ead8df66e188c696755b26efefd96192a144","id":"pypi/2024-09-old-discord-api/discord-api","import_time":"2025-12-02T23:07:18.112737388Z"},{"modified_time":"2024-09-16T14:08:13Z","versions":["1.0.1"],"source":"kam193","sha256":"9c514de0b892f72b7a970d385518936be699371f9f9551060f2d546d6eb9a8f7","id":"pypi/2024-09-old-discord-api/discord-api","import_time":"2025-12-10T21:38:57.398171493Z"}],"iocs":{"urls":["https://discord.com/api/webhooks/815048322414936075/SnIr7HTGb_Fr48thne92sW2MV2bVpT-OiTt275g50yFNzmD5y10qdetbcBCYH8IrurNq"]}},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/discord-api"}],"affected":[{"package":{"name":"discord-api","ecosystem":"PyPI","purl":"pkg:pypi/discord-api"},"versions":["1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/discord-api/MAL-2024-12255.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"}]}