mal-2024-12257
Vulnerability from ossf_malicious_packages
Published
2024-10-02 07:55
Modified
2025-12-11 09:27
Summary
Malicious code in discord-token-lib (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: kam193 (44f591d196b048c4cad8da1cc1399681e22a2d5786fb212fda7c920aed8c2b07)

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.

The 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.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2024-09-discord-token-lib

Reasons (based on the campaign):

  • exfiltration-generic

  • action-hidden-in-lib-usage


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


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…