Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in ypcodestyle (PyPI)

Malicious code was distributed in the ypcodestyle package on PyPI as part of a campaign distributing 900+ compromised packages. The malware installs a malicious browser extension designed to manipulate the clipboard and replace cryptocurrency wallet addresses.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
900+ malicious packages distributed; targets local browsers and cryptocurrency wallets
Ecosystems
Attack vectors
Affected entities
  • ypcodestyleMalicious package distributed via PyPI

An attacker distributed over 900 malicious packages via PyPI, including the ypcodestyle package, as part of a coordinated supply chain attack. The compromised packages contained code that installed malicious browser extensions on infected systems.\n\nThe malicious extension targeted users' clipboard functionality and cryptocurrency wallets, replacing legitimate wallet addresses with attacker-controlled addresses to redirect cryptocurrency transactions.\n\nThis incident was identified and documented by Checkmarx and credited to the OpenSSF's malicious-packages repository (MAL-2023-2464). The attack demonstrates the risk of typosquatting and compromised legitimate-looking package names on public package repositories.

Indicators of compromise

Packages
  • ypcodestyle

Remediation

  • Immediately uninstall ypcodestyle and any other suspicious packages from affected systems
  • Audit PyPI package installations for the presence of 900+ known malicious packages from this campaign
  • Review browser extensions for unauthorized or suspicious entries
  • Monitor cryptocurrency wallet transactions for unauthorized activity
  • Update to legitimate versions of required packages from trusted sources
  • Implement package verification and integrity checks in dependency management workflows

Sources

  1. GitHub Advisory GHSA-j7fj-mmff-4pr8 · GitHub Advisory Database

Cite this entry

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

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