{"schema_version":"1.9.2","id":"MAL-2026-19935","published":"2026-11-14T17:18:32Z","modified":"2026-11-16T22:45:04.608634789Z","summary":"Malicious code in demo-pingtest-xyz (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ac5f1e73e5038ae7d26af2daaf68855c65aa60f1e0e25da5b0b4827332d6037c)\nThe 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.\n\n## Source: kam193 (d2ce56d3cbce6034dcebd88520ffec19a094c0888b7e797f66c46bc69e8d2eac)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\n\n\n---\n\nCategory: 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.\n\n\nCampaign: GENERIC-standard-pypi-install-pentest\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","affected":[{"package":{"name":"demo-pingtest-xyz","ecosystem":"PyPI","purl":"pkg:pypi/demo-pingtest-xyz"},"versions":["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"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/demo-pingtest-xyz"},{"type":"PACKAGE","url":"https://pypi.org/project/demo-pingtest-xyz/0.0.1/"}],"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"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil MaƄkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}