Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in ycodestyle (PyPI)

Malicious code was distributed in the ycodestyle package on PyPI as part of a campaign distributing 900+ malicious packages. The malicious packages infected local browsers with extensions designed to manipulate clipboard contents and replace cryptocurrency wallet addresses.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
900+ malicious packages distributed via PyPI
Ecosystems
Attack vectors
Affected entities
  • ycodestyleMalicious package distributed via PyPI

An attacker distributed malicious versions of the ycodestyle package on PyPI, part of a broader campaign involving 900+ compromised packages. The malicious code was designed to install browser extensions on infected systems.

The injected extensions performed clipboard manipulation and cryptocurrency wallet address replacement attacks, targeting users' cryptocurrency transactions. This represents a supply chain attack leveraging the trust users place in legitimate package repositories.

The incident was documented by the OpenSSF's malicious-packages project (MAL-2023-2445) and credited to Checkmarx for discovery. The attack demonstrates the risk of dependency-based distribution of malware through public package repositories.

Indicators of compromise

Packages
  • ycodestyle

Remediation

  • Remove ycodestyle from affected systems and audit for malicious browser extensions
  • Review browser extensions installed on systems that may have installed the malicious package
  • Verify cryptocurrency wallet addresses in recent transactions for signs of manipulation
  • Update to a clean version of ycodestyle from a trusted source after verification
  • Monitor PyPI and package managers for similar malicious distributions
  • Implement package verification and integrity checking in dependency management workflows

Sources

  1. GitHub Advisory GHSA-rqx3-xxr2-pc7w · GitHub Advisory Database

Cite this entry

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

Suggest a correction

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

  1. containedcritical

    Malicious code in fastapii (PyPI)

    The fastapii package on PyPI is a typosquatting attack imitating the popular FastAPI library. During installation, it executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    2026 08 FlasqPyPITyposquattingCompromised package
  2. containedcritical

    Malicious code in idnna (PyPI)

    A malicious package named idnna was published to PyPI, imitating a legitimate library. During installation, the package executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    PyPITyposquattingCompromised package
  3. containedcritical

    Malicious code in pydanticc (PyPI)

    The PyPI package pydanticc is a typosquatting attack imitating the popular pydantic library. During installation, it executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    2026 08 FlasqPyPITyposquattingCompromised package
  4. containedcritical

    Malicious code in flasq (PyPI)

    A malicious package named flasq was published on PyPI, imitating a popular library. During installation, it executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    PyPITyposquattingCompromised package