VYPR

pypi · Malicious package advisory

Malware

aiogram-3

GHSA-vx6g-4v67-97fj

Malicious code in aiogram-3 (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (3d8dac0d1eb98dbfc0fe46cabeadb550699f5e41b5d033ded073f7572f450bf7)
During installation or importing the module, the package starts a reverse shell to hardcoded locatiom


---

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


Campaign: 2025-12-aiogram-sever-patch


Reasons (based on the campaign):


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


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - dependency-confusion

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/aiogram-3
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/aiogram-3/MAL-2025-192940.json
- https://github.com/advisories/GHSA-vx6g-4v67-97fj

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.