VYPR

pypi · Malicious package advisory

Malware

matlab-cli

GHSA-7qm7-6g3c-hcrg

Malicious code in matlab-cli (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.3`

## Source: kam193 (ff0a277d45885a5c1a26f027495e73b5e0aa8b49c7ee3eeafd06cc14e6e8f754)
Importing the module starts a reverse shell


---

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


Campaign: 2025-05-matlab-cli


Reasons (based on the campaign):


 - impersonation


 - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.


 - obfuscation

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/matlab-cli/MAL-2025-191785.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/matlab-cli
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/matlab-cli/MAL-2025-191785.json
- https://github.com/advisories/GHSA-7qm7-6g3c-hcrg

Compromised versions (1)

  • = 0.3

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