VYPR

pypi · Malicious package advisory

Malware

cobo-python

GHSA-pqxm-rx73-g364

Malicious code in cobo-python (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1`

## Source: kam193 (2f1c1c4efd134e130c04178382ff3ea318301fb18b5eb6eed696c49cf64e9ad6)
It appears to be a forgotten pentest checking typosquatting against cobo-custody package, but may also have malicious purposes. During installation, if a machine is Mac, an obfuscated code attempts to download and execute a shell script. Currently, the server does not respond.


---

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-08-old-cobo-sectest


Reasons (based on the campaign):


 - Downloads and executes a remote executable.


 - clones-real-package


 - crypto-related


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - obfuscation


 - typosquatting

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/cobo-python
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/cobo-python/MAL-2024-12239.json
- https://github.com/advisories/GHSA-pqxm-rx73-g364

Compromised versions (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.