Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in ytest-cov (PyPI)

Malicious code was discovered in the ytest-cov package on PyPI. The package contained malicious payload that could compromise systems of users who installed it.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
PyPI package repository; all users who installed affected versions of ytest-cov
Ecosystems
Attack vectors
Affected entities
  • ytest-covMalicious package on PyPI

The ytest-cov package on PyPI was found to contain malicious code. This incident was identified and documented by the OpenSSF's malicious-packages project.\n\nThe malicious package was hosted on the PyPI repository, making it accessible to Python developers who might install it as a dependency or directly. Any system that installed an affected version of ytest-cov would have been compromised.\n\nThis incident has been documented in the OpenSSF malicious-packages repository under identifier MAL-2025-3020, and a GitHub Security Advisory (GHSA-v289-rrvh-682g) was issued to track the vulnerability.

Indicators of compromise

Packages
  • ytest-cov

Remediation

  • Remove ytest-cov from all environments and dependency lists
  • Audit systems that may have installed ytest-cov for signs of compromise
  • Review package dependencies to ensure no reliance on ytest-cov
  • Use verified, legitimate alternatives for test coverage tools
  • Monitor PyPI for similar typosquatting or malicious package attempts

Sources

  1. GitHub Advisory GHSA-v289-rrvh-682g · GitHub Advisory Database

Cite this entry

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

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