MAL-2024-12257Malicious code in discord-token-lib (PyPI)
| Ecosystem | Package | Version |
|---|---|---|
| PyPI | discord-token-lib | 0.1 |
{"modified":"2025-12-11T09:27:52Z","published":"2024-10-02T07:55:07Z","schema_version":"1.7.4","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","affected":[{"package":{"ecosystem":"PyPI","name":"discord-token-lib"},"versions":["0.1"]}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/discord-token-lib"}],"credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"iocs":{"urls":["https://discord.com/api/webhooks/1271645951026659339/wWCSAlPG3TuhycH7ex6h9O48nKdFn4G55WUk4-lgay4RQTpCbbt-DYuo9jLIHYEReQKj"]},"malicious-packages-origins":[{"source":"kam193","sha256":"a16f42bf80d4ad7d1b19cd1d5edbd1c4147f559f76c5c41a00adf1d605e1868d","import_time":"2025-12-02T22:30:55.10468133Z","id":"pypi/2024-09-discord-token-lib/discord-token-lib","modified_time":"2024-10-02T07:55:07Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"kam193","sha256":"44f591d196b048c4cad8da1cc1399681e22a2d5786fb212fda7c920aed8c2b07","import_time":"2025-12-02T23:07:18.116173543Z","id":"pypi/2024-09-discord-token-lib/discord-token-lib","modified_time":"2024-10-02T07:55:07Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"kam193","sha256":"40da8c2a663c0510ae1ed1adf805fe279126849610f3327d58815867ffbcfcdf","import_time":"2025-12-10T21:38:57.400910729Z","id":"pypi/2024-09-discord-token-lib/discord-token-lib","modified_time":"2024-10-02T07:55:07Z","versions":["0.1"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0