cvelo
P2 · HighMalware

Malicious code in gateio-ws (PyPI)

  • MAL-2026-19937

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.

Text from the OSV record.

Affected

  • gateio-wsPyPI

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.