VYPR

pypi · Malicious package advisory

Malware

hkmat

GHSA-84v9-722v-jpfx

Malicious code in hkmat (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (c3c3063747c35c5ae091331ac2c35dbef66c945aca73b06ee32ef1f0ec088009)
Importing the module starts a telegram bot that connects to a chat and executes provided commands


---

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


Campaign: 2025-07-talbat


Reasons (based on the campaign):


 - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.


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

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/hkmat
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hkmat/MAL-2025-191759.json
- https://github.com/advisories/GHSA-84v9-722v-jpfx

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.