VYPR

pypi · Malicious package advisory

Malware

textwrap-ext

GHSA-45xh-mfr4-pwwp

Malicious code in textwrap-ext (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.2.5`

## Source: kam193 (da4e8d5daae9a14e0ceb5a942afd308068957ec655cdd950b2b041934e9ec182)
During installation, obfuscated code exfiltrates cryptocurrency wallet data to a hardcoded location and places a backdoor through a new authorized SSH key. Information about the placed backdoor is sent back to the attacker, and sshd configuration is adjusted to ensure the successful remote connection.


---

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


Campaign: 2026-05-ninja-core-utils


Reasons (based on the campaign):


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


 - obfuscation


 - crypto-related


 - exfiltration-crypto


 - backdoor

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/textwrap-ext/MAL-2026-3408.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/textwrap-ext
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/textwrap-ext/MAL-2026-3408.json
- https://github.com/advisories/GHSA-45xh-mfr4-pwwp

Compromised versions (1)

  • = 1.2.5

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