VYPR

pypi · Malicious package advisory

Malware

python-bitget-connect

GHSA-ccj8-6w2r-pf84

Malicious code in python-bitget-connect (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.3.9`

## Source: kam193 (1797b7fdf9859888b5495817784ead0bdc01e6acad5ae410af1e1df89acbded6)
Importing the module starts an obfuscated PowerShell code, which downloads and executes a remote script. On Windows, the script appears to just start the calculator. On MacOS, the file is identified as a Spark RAT by multiple vendors. Package impersonate the legitimate  "python-bitget".


---

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


Campaign: 2024-12-python-bitget-api


Reasons (based on the campaign):


 - typosquatting


 - obfuscation


 - clones-real-package


 - dependency-confusion


 - crypto-related


 - impersonation


 - Downloads and executes a remote malicious script.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/python-bitget-connect/MAL-2025-961.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/python-bitget-connect
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/python-bitget-connect/MAL-2025-961.json
- https://www.virustotal.com/gui/file/a3b25b30a607645efefa26180baf183695c97c58b06aa6a67af1332cd3fe582e
- https://github.com/advisories/GHSA-ccj8-6w2r-pf84

Compromised versions (1)

  • = 0.3.9

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