CRITICAL PyPI Malware

Malicious code in demo-pingtest-xyz (PyPI)

MAL-2026-19935

Published · Modified

Dependency scanning

Check whether demo-pingtest-xyz is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (ac5f1e73e5038ae7d26af2daaf68855c65aa60f1e0e25da5b0b4827332d6037c)

The sdist's setup.py executes a pingback routine at install time that collects installer identity and host details via subprocess calls to whoami, id, hostname, and cat /etc/hosts, together with the current working directory and a timestamp, and POSTs them as JSON to the hardcoded URL https://pingback.zsdsh.xyz/depconf/demo-pingtest-xyz/. The behavior runs automatically when the sdist is built on install (the package ships no wheel, so a default pip install builds the sdist on Linux glibc/musl, macOS arm64/x86_64, and Windows x86_64). The /depconf/ path and the package naming are consistent with a dependency-confusion reconnaissance beacon designed to identify internal build hosts that resolve this name from the public index.

Source: kam193 (d2ce56d3cbce6034dcebd88520ffec19a094c0888b7e797f66c46bc69e8d2eac)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

  • The package overrides the install command in setup.py to execute malicious code during installation.

Source: ossf-package-analysis (6a6aaba095baebff3c4b93c01f23c6a4a41a25f0dd1f9d542a2a7455518ae9b7)

The OpenSSF Package Analysis project identified 'demo-pingtest-xyz' @ 0.0.1 (pypi) as malicious.

It is considered malicious because:

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

Ready to move

Start Securing

Free, no credit card | First findings in minutes