VYPR

pypi · Malicious package advisory

Malware

discself

GHSA-xqp9-3m27-hjrc

Malicious code in discself (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (271e2fef9fd10cd1a179df1be1e1f92c837d1ecf3d074451a9b1b6205babe511)
Package suggests a code to build bots; however, the code just exfiltrates the token given by the user to the hardcoded Discord webhook. Looking at other activity on the account, it's either research or forgotten WIP/test.


---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.


Campaign: 2024-09-old-discself


Reasons (based on the campaign):


 - action-hidden-in-lib-usage


 -

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/discself
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/discself/MAL-2024-12258.json
- https://github.com/advisories/GHSA-xqp9-3m27-hjrc

Compromised versions (1)

  • = 1.0.0

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