Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedhigh

Malicious code in yeshsurya (PyPI)

The yeshsurya 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
Any system that installed the yeshsurya package from PyPI
Ecosystems
Attack vectors
Affected entities
  • yeshsuryaPyPI package containing malicious code

The yeshsurya 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 malicious payload includes the host's IP address and username.\n\nThe attack vector involved overriding the install command in setup.py to execute the malicious code during the package installation process, ensuring execution before the package is fully installed.\n\nThe package was classified as a low-harm pentest-style package with limited risk scope, as it only collects and exfiltrates basic host information without additional destructive capabilities.\n\nThe incident was identified and credited to the OpenSSF's malicious-packages repository (MAL-2026-2183).

Indicators of compromise

Packages
  • yeshsurya

Remediation

  • Remove the yeshsurya package from any systems where it was installed
  • Audit systems that installed yeshsurya for signs of compromise or data exfiltration
  • Review network logs for suspicious outbound connections from affected systems
  • Check PyPI for any similar packages with suspicious names or behavior
  • Use package verification tools and security scanning in CI/CD pipelines to detect malicious packages before installation

Sources

  1. GitHub Advisory GHSA-vf4p-3wqv-fjr3 · GitHub Advisory Database

Cite this entry

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

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