pypi · Malicious package advisory
Malwaregramapi
GHSA-jhwc-pfgm-w6fr
Malicious code in gramapi (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.0.0` ## Source: kam193 (2c3452393093f1f74c19a9049b50fb9c96e9b31ef8235cf0597eb656e6feb8ea) The code is automatically starting, calling a Telegram channel with basic info, and waits for remote code to execute --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-07-puregram 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 exfiltrate basic data from the system, like IP or username. It has a limited risk. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/gramapi/MAL-2025-6513.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/gramapi - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/gramapi/MAL-2025-6513.json - https://github.com/advisories/GHSA-jhwc-pfgm-w6fr
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.