VYPR

pypi · Malicious package advisory

Malware

aphorism-lib

GHSA-x9jg-f8q5-rchw

Malicious code in aphorism-lib (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (95f15b2b497431703ff51667a4055e8172f9202aeeea0f725b0b0550812f3299)
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/aphorism-lib/MAL-2025-191683.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/aphorism-lib
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/aphorism-lib/MAL-2025-191683.json
- https://github.com/advisories/GHSA-x9jg-f8q5-rchw

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.