mal-2024-12255
Vulnerability from ossf_malicious_packages
Published
2024-09-16 14:08
Modified
2025-12-11 09:27
Summary
Malicious code in discord-api (PyPI)
Details

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

Source: kam193 (3b55230c05e2303e965a53322d83ead8df66e188c696755b26efefd96192a144)

Package suggests being an api for discord. On importing the module, it attempts to find and exfiltrate leveldb databases from Discord apps and Chrome


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

Campaign: 2024-09-old-discord-api

Reasons (based on the campaign):

  • impersonation

  • dependency-confusion

  • files-exfiltration


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "discord-api"
      },
      "versions": [
        "1.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/815048322414936075/SnIr7HTGb_Fr48thne92sW2MV2bVpT-OiTt275g50yFNzmD5y10qdetbcBCYH8IrurNq"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "pypi/2024-09-old-discord-api/discord-api",
        "import_time": "2025-12-02T22:30:55.101407712Z",
        "modified_time": "2024-09-16T14:08:13Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "3df9379d8893215c1f9e9f612c855e17f141e0993efa3cd8466c007843af0c38",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-09-old-discord-api/discord-api",
        "import_time": "2025-12-02T23:07:18.112737388Z",
        "modified_time": "2024-09-16T14:08:13Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "3b55230c05e2303e965a53322d83ead8df66e188c696755b26efefd96192a144",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-09-old-discord-api/discord-api",
        "import_time": "2025-12-10T21:38:57.398171493Z",
        "modified_time": "2024-09-16T14:08:13Z",
        "sha256": "9c514de0b892f72b7a970d385518936be699371f9f9551060f2d546d6eb9a8f7",
        "source": "kam193",
        "versions": [
          "1.0.1"
        ]
      }
    ]
  },
  "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",
  "id": "MAL-2024-12255",
  "modified": "2025-12-11T09:27:52Z",
  "published": "2024-09-16T14:08:13Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/discord-api"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in discord-api (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…