VYPR

pypi · Malicious package advisory

Malware

cfgzen

GHSA-r2w6-7pgv-644h

Malicious code in cfgzen (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (588fed6ec45af5cfb8925b1f7d93b07b73d47b919a50305438153dfbb7f953e1)
The malicious code sits in a native module, which is called in a few places, including the code run via PTH embedded since version 1.0.6. The native module downloads an encrypted blob and decrypt it to an executable being an infostealer.


---

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


Campaign: 2026-07-cfgzen


Reasons (based on the campaign):


 - infostealer


 - exfiltration-env-variables


 - Downloads and executes a remote executable.


 - obfuscation


 - The package contains code to detect if it is running in a sandbox environment.


 - exfiltration-crypto


 - native-extension


 - persistence


 - abuses-pth

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/56503d110a872960daa02ba865f5987d4a50a14b/osv/malicious/pypi/cfgzen/MAL-2026-11094.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/cfgzen
- https://github.com/ossf/malicious-packages/blob/56503d110a872960daa02ba865f5987d4a50a14b/osv/malicious/pypi/cfgzen/MAL-2026-11094.json
- https://tria.ge/260727-1xjeksde39
- https://www.virustotal.com/gui/file/051dc1df4ea14c71a25fea528090dd8cfd2c4e02030e6d2f91f6f2f9bad90ec3/detection
- https://github.com/advisories/GHSA-r2w6-7pgv-644h

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.