VYPR

pypi · Malicious package advisory

Malware

quant-backtest-helpers

GHSA-4gqv-7ff2-3rwp

Malicious code in quant-backtest-helpers (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.1`

## Source: kam193 (ed851ff141e13db6dd7c16a3d4f1b3b92eb9fa6a917f5243ba22ccb933554e43)
During import, package exfiltrates environment variables and cloud tokens to a hardcoded location.


---

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


Campaign: 2026-06-quant-backtest-helpers


Reasons (based on the campaign):


 - exfiltration-env-variables


 - exfiltration-cloud-tokens

---

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

**References:**
- https://bad-packages.kam193.eu/pypi/package/quant-backtest-helpers
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/quant-backtest-helpers/MAL-2026-5152.json
- https://github.com/advisories/GHSA-4gqv-7ff2-3rwp

Compromised versions (1)

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