VYPR

pypi · Malicious package advisory

Malware

chaintest

GHSA-6qc6-vp88-49gp

Malicious code in chaintest (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.0`

## Source: kam193 (4923d010301ea929207d0a1c87e876ca24203fdff90bad313efc3df58879555a)
The package contains a cryptocurrency infostealer that exfiltrates information from browsers (including cryptowallet extensions, synced extensions, local storage) and standalone applications (password managers, cryptowallets). The code achieves persistence via different methods on different platforms, and runs a keylogger that modifies the copied cryptocurrency addresses with addresses controlled by the attacker. Malicious code is also prepared to retrieve commands to execute from C2, exfiltrate SSH keys, and install malicious extensions in browsers.

The code shares some similarities with campaign 2026-07-cognikit attributed to the DPRK "Contagious Interview" campaign.


---

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


Campaign: 2026-08-chaintest


Reasons (based on the campaign):


 - infostealer


 - clipboard-stealing


 - dependency-confusion


 - crypto-related


 - keylogger


 - exfiltration-browser-data


 - exfiltration-crypto


 - clipboard-modify


 - persistence


 - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.


 - exfiltration-ssh-keys


 - files-exfiltration


 - rat

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4ce380083c3bdf9cb6213976f061fb2c72a1b4a4/osv/malicious/pypi/chaintest/MAL-2026-13686.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/chaintest
- https://github.com/ossf/malicious-packages/blob/4ce380083c3bdf9cb6213976f061fb2c72a1b4a4/osv/malicious/pypi/chaintest/MAL-2026-13686.json
- https://github.com/ossf/malicious-packages/blob/a45f663d9dabf0ad2877d1c31d8cc1f30744b49c/osv/malicious/pypi/chaintest/MAL-2026-13686.json
- https://pypi.org/project/chaintest/0.1.0
- https://github.com/advisories/GHSA-6qc6-vp88-49gp

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.