MAL-2026-19935

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/demo-pingtest-xyz/MAL-2026-19935.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-19935
Published
2026-11-14T16:53:17Z
Modified
2026-11-17T06:30:53Z
Summary
Malicious code in demo-pingtest-xyz (PyPI)
Details

-= Per source details. Do not edit below this line.=-

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.
Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "pypi/GENERIC-standard-pypi-install-pentest/demo-pingtest-xyz",
            "import_time":  "2026-11-14T17:36:00.294248043Z",
            "modified_time":  "2026-11-14T17:18:32.378109Z",
            "sha256":  "d2ce56d3cbce6034dcebd88520ffec19a094c0888b7e797f66c46bc69e8d2eac",
            "source":  "kam193",
            "versions":  [
                "0.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-022808",
            "import_time":  "2026-11-16T22:36:31.892082433Z",
            "modified_time":  "2026-11-16T22:26:56Z",
            "sha256":  "ac5f1e73e5038ae7d26af2daaf68855c65aa60f1e0e25da5b0b4827332d6037c",
            "source":  "amazon-inspector",
            "versions":  [
                "0.0.1"
            ]
        },
        {
            "import_time":  "2026-11-17T06:19:09.723292086Z",
            "modified_time":  "2026-11-14T16:53:17Z",
            "sha256":  "6a6aaba095baebff3c4b93c01f23c6a4a41a25f0dd1f9d542a2a7455518ae9b7",
            "source":  "ossf-package-analysis",
            "versions":  [
                "0.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / demo-pingtest-xyz

Package

Name
demo-pingtest-xyz
View open source insights on deps.dev
Purl
pkg:pypi/demo-pingtest-xyz

Affected ranges

Affected versions

0.*
0.0.1

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "artifacts":  [
                "demo_pingtest_xyz-0.0.1.tar.gz"
            ],
            "path":  "setup.py",
            "sha256":  "60e66ce005be3628ed903235eeb7ca7531b08abd87c87809dbfdce1d4122a72d",
            "tlsh":  "b011009aab2556a1d3d768b8241046212bb1fe07d6127cb57cdc4f84af4f07f907193d"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "demo_pingtest_xyz-0.0.1.tar.gz",
            "hashes":  {
                "blake2b_256":  "a5ed25323691e44a51e69c34a7ee63baa1f9142ec4e6afe9d188075067a13703",
                "md5":  "c1beca8fd3be3884d5d251890ab40b04",
                "sha256":  "e6c46ccecee3014aeae83336f4276ed38cc6817b49edf37f7e85ca9ba1d27037"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/demo-pingtest-xyz/MAL-2026-19935.json"