VYPR

pypi · Malicious package advisory

Malware

discord-api

GHSA-crhc-9425-v5jx

Malicious code in discord-api (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.1`

## 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

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/discord-api/MAL-2024-12255.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/discord-api
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/discord-api/MAL-2024-12255.json
- https://github.com/advisories/GHSA-crhc-9425-v5jx

Compromised versions (1)

  • = 1.0.1

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.