# MAL-2026-19937: Malicious code in gateio-ws (PyPI)

- Database: OpenSSF
- Malicious package: yes
- Published: 2026-11-14
- Modified: 2026-11-17

## Affected versions

- gateio-ws (PyPI): 99.99.1, 99.99.2

## Description

setup.py defines a pingback() routine that executes unconditionally at module top level during sdist build. On `pip install`, it collects the installer's username (whoami/id), hostname, current working directory, the contents of /etc/hosts, and a timestamp, then POSTs them as JSON to https://pingback.zsdsh.xyz/depconf/gateio-ws/. The destination host is unrelated to the gate.io ecosystem and the URL path segment `depconf` together with the implausibly high 99.99.1 version number are consistent with a dependency-confusion squat targeting an internal package name. No wheels are published, so a default `pip install gateio-ws` on every supported platform builds the sdist and triggers the beacon.

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

The OpenSSF Package Analysis project identified 'gateio-ws' @ 99.99.1 (pypi) as malicious.

It is considered malicious because:

- The package executes one or more commands associated with malicious behavior.

## References

- https://bad-packages.kam193.eu/pypi/package/gateio-ws
- https://pypi.org/project/gateio-ws/99.99.1/

Page: https://cve.now/MAL-2026-19937

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
