VYPR

pypi · Malicious package advisory

Malware

randomstringgen

GHSA-g9qg-q692-j8vp

Malicious code in randomstringgen (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1`

## Source: kam193 (9fc95ea566ad1938f7f75123eee2d8b3365bf55f06d7aa8a5f569f5e4c696132)
Using the provided function results in exfiltrating the current running file (likely the user's script) to the hardcoded location.


---

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


Campaign: 2026-02-old-randomstringgen


Reasons (based on the campaign):


 - files-exfiltration


 - action-hidden-in-lib-usage

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/randomstringgen
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/randomstringgen/MAL-2026-1089.json
- https://github.com/advisories/GHSA-g9qg-q692-j8vp

Compromised versions (1)

  • = 0.1

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