{"id":"MAL-2024-12257","summary":"Malicious code in discord-token-lib (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (44f591d196b048c4cad8da1cc1399681e22a2d5786fb212fda7c920aed8c2b07)\n*osint* packages promise to be OSINT tool, however, when providing the username to search for, the package attempts to exfiltrate Discord tokens from the user.\n\nThe original package suggests being a library for Discord exfiltration, what is suspicious on its own, but in addition, the entry point located in main.py exfiltrate local Discord tokens to a hardcoded webhook.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2024-09-discord-token-lib\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-generic\n\n\n - action-hidden-in-lib-usage\n","modified":"2025-12-12T20:39:17.905092Z","published":"2024-10-02T07:55:07Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2024-10-02T07:55:07Z","sha256":"a16f42bf80d4ad7d1b19cd1d5edbd1c4147f559f76c5c41a00adf1d605e1868d","source":"kam193","import_time":"2025-12-02T22:30:55.10468133Z","id":"pypi/2024-09-discord-token-lib/discord-token-lib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"modified_time":"2024-10-02T07:55:07Z","sha256":"44f591d196b048c4cad8da1cc1399681e22a2d5786fb212fda7c920aed8c2b07","source":"kam193","import_time":"2025-12-02T23:07:18.116173543Z","id":"pypi/2024-09-discord-token-lib/discord-token-lib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"modified_time":"2024-10-02T07:55:07Z","sha256":"40da8c2a663c0510ae1ed1adf805fe279126849610f3327d58815867ffbcfcdf","source":"kam193","import_time":"2025-12-10T21:38:57.400910729Z","id":"pypi/2024-09-discord-token-lib/discord-token-lib","versions":["0.1"]}],"iocs":{"urls":["https://discord.com/api/webhooks/1271645951026659339/wWCSAlPG3TuhycH7ex6h9O48nKdFn4G55WUk4-lgay4RQTpCbbt-DYuo9jLIHYEReQKj"]}},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/discord-token-lib"}],"affected":[{"package":{"name":"discord-token-lib","ecosystem":"PyPI","purl":"pkg:pypi/discord-token-lib"},"versions":["0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/discord-token-lib/MAL-2024-12257.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"}]}