VYPR

pypi · Malicious package advisory

Malware

flag-leak-r

GHSA-f7gv-2j4p-mrpc

Malicious code in flag-leak-r (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.0`

## Source: kam193 (88c1df06a02daf1a911f895df0bd495b0f0d2e72f3b9ad45fe5a837575379c9e)
Generic campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side.


---

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


Campaign: GENERIC-questionable-pentest


Reasons (based on the campaign):


 - exfiltration-env-variables


 - exfiltration-generic


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


 - typosquatting

## Source: ossf-package-analysis (095f9908b28b3dfb45e9f5e8d291ad2492bb271f23e5f4b714328ba722252838)
The OpenSSF Package Analysis project identified 'flag-leak-r' @ 0.1.0 (pypi) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/flag-leak-r/MAL-2024-9446.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/flag-leak-r
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/flag-leak-r/MAL-2024-9446.json
- https://github.com/advisories/GHSA-f7gv-2j4p-mrpc

Compromised versions (1)

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