Malicious code in gateio-ws (PyPI)
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 pingback.zsdsh.xyz/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.