VYPR

pypi · Malicious package advisory

Malware

gen-user-random-agent

GHSA-65qv-758p-j472

Malicious code in gen-user-random-agent (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.7.0`

## Source: kam193 (4e261c26a73604aac348f2df96e5b12b0817010a9a1bbc48ddfbe309915c697b)
Inside the library there is a part running code hidden in the attached image, which then exfiltrate user-provided data, downloads and install next stage code, exfiltrate TXT files and finally installs infostealers - Lumma and a custom one. Arround L110


---

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


Campaign: 2024-10-fake-usreagent


Reasons (based on the campaign):


 - infostealer


 - files-exfiltration


 - clipboard-stealing


 - obfuscation


 - clones-real-package


 - 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/gen-user-random-agent/MAL-2024-11599.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/gen-user-random-agent
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/gen-user-random-agent/MAL-2024-11599.json
- https://github.com/advisories/GHSA-65qv-758p-j472

Compromised versions (1)

  • = 1.7.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.