Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedhigh

Malicious code in your-module-name (PyPI)

The your-module-name package on PyPI contained malicious code that exfiltrates basic host information (IP address, username) during installation. The package overrides the install command in setup.py to execute the malicious payload.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Users who installed the malicious your-module-name package from PyPI
Ecosystems
Attack vectors
Affected entities
  • your-module-namePyPI package containing malicious code

The your-module-name package published on PyPI was identified as containing malicious code designed to exfiltrate basic system information from the host upon installation or module import. The package serves no legitimate purpose beyond data exfiltration.\n\nThe malicious payload is executed by overriding the install command in setup.py, causing the code to run during the package installation process. This allows the attacker to harvest information such as the system's IP address and username from any user who installs the package.\n\nThe incident was identified and credited to the OpenSSF's malicious-packages repository (MAL-2025-6622). The package has been classified as a typical pentest-style package with limited but real harm potential, targeting users who install it from the PyPI repository.

Indicators of compromise

Packages
  • your-module-name

Remediation

  • Remove the your-module-name package from any systems where it was installed
  • Audit systems that installed this package for signs of data exfiltration or compromise
  • Check PyPI for any similar packages with suspicious names or behavior
  • Use package verification tools and review package source code before installation
  • Monitor for unauthorized access or data exfiltration from affected systems

Sources

  1. GitHub Advisory GHSA-wjpq-7qqj-gfj5 · GitHub Advisory Database

Cite this entry

"Malicious code in your-module-name (PyPI)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 21, 2026; last updated July 21, 2026. https://supplychainattack.org/incident/malicious-code-in-your-module-name-pypi-cnjmdu

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in afrit-name (PyPI)

    Malicious code was discovered in the afrit-name package on PyPI. The incident was identified and documented by the OpenSSF malicious packages project.

    PyPICompromised package
  2. resolvedcritical

    Malicious code in adv2099m7 (PyPI)

    Malicious code was discovered in the adv2099m7 package on PyPI. The package was identified and cataloged by the OpenSSF malicious packages project.

    PyPICompromised package
  3. resolvedcritical

    Malicious code in adrandom (PyPI)

    The adrandom package on PyPI contained malicious code that executed spyware and information-stealing malware. It was part of a campaign by the EsqueleSquad group that published nearly 6,000 malicious packages across PyPI and NPM.

    EsquelesquadPyPICompromised package
  4. resolvedcritical

    Malicious code in ziphash (PyPI)

    The ziphash package on PyPI contained malicious code that downloads and executes multi-stage malware during archive-support class initialization. The malware exhibits obfuscation and remote code execution capabilities, classified as part of the 2025-11-uzip campaign.

    2025 11 UzipPyPICompromised package