MAL-2024-12255

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/discord-api/MAL-2024-12255.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12255
Published
2024-09-16T14:08:13Z
Modified
2025-12-12T20:39:18.329558Z
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

Database specific
{
    "iocs": {
        "urls": [
            "https://discord.com/api/webhooks/815048322414936075/SnIr7HTGb_Fr48thne92sW2MV2bVpT-OiTt275g50yFNzmD5y10qdetbcBCYH8IrurNq"
        ]
    },
    "malicious-packages-origins": [
        {
            "sha256": "3df9379d8893215c1f9e9f612c855e17f141e0993efa3cd8466c007843af0c38",
            "import_time": "2025-12-02T22:30:55.101407712Z",
            "modified_time": "2024-09-16T14:08:13Z",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "pypi/2024-09-old-discord-api/discord-api",
            "source": "kam193"
        },
        {
            "sha256": "3b55230c05e2303e965a53322d83ead8df66e188c696755b26efefd96192a144",
            "import_time": "2025-12-02T23:07:18.112737388Z",
            "modified_time": "2024-09-16T14:08:13Z",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "pypi/2024-09-old-discord-api/discord-api",
            "source": "kam193"
        },
        {
            "sha256": "9c514de0b892f72b7a970d385518936be699371f9f9551060f2d546d6eb9a8f7",
            "import_time": "2025-12-10T21:38:57.398171493Z",
            "modified_time": "2024-09-16T14:08:13Z",
            "versions": [
                "1.0.1"
            ],
            "id": "pypi/2024-09-old-discord-api/discord-api",
            "source": "kam193"
        }
    ]
}
References
Credits

Affected packages

PyPI / discord-api

Package

Affected ranges

Affected versions

1.*
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/discord-api/MAL-2024-12255.json"