VYPR

pypi · Malicious package advisory

Malware

tns-py

GHSA-327v-v645-r2p9

Malicious code in tns-py (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (186bfba0931ba063bd6e71325785b97c646cbfaaf91c4dca876653673d29c0cc)
Package is prepared to exfiltrate environmental variables. The wording used clearly states it's part of a campaign targeting cryptocurrency users via malicious projects


---

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


Campaign: 2026-05-tns-py


Reasons (based on the campaign):


 - exfiltration-env-variables


 - crypto-related


 - The malicious code is intentionally included in a dependency of the package

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/tns-py
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/tns-py/MAL-2026-3219.json
- https://github.com/advisories/GHSA-327v-v645-r2p9

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.