Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in yfniance (PyPI)

Attacker distributed 900+ malicious packages via PyPI, including yfniance, which installed malicious browser extensions designed to manipulate clipboard and replace cryptocurrency wallet addresses.

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

An attacker distributed over 900 malicious packages via the Python Package Index (PyPI), with yfniance being one of the identified packages. The malicious code installed browser extensions on infected systems with the capability to intercept and manipulate clipboard contents and replace cryptocurrency wallet addresses, enabling theft of cryptocurrency transactions.\n\nThe attack was identified and documented by Checkmarx, with credit to the OpenSSF's malicious-packages repository for tracking and cataloging the incident. The malicious packages were distributed through the official PyPI repository, making them accessible to any Python developer using standard package installation tools.\n\nThis represents a significant supply chain attack targeting cryptocurrency users and developers, leveraging the trust placed in the PyPI ecosystem to distribute malware at scale.

Indicators of compromise

Packages
  • yfniance

Remediation

  • Immediately uninstall yfniance and any other packages from the 900+ malicious package list from affected systems
  • Audit pip package installation history to identify if any malicious packages were installed
  • Remove any suspicious browser extensions, particularly those installed around the time of package installation
  • Reset cryptocurrency wallet addresses and review transaction history for unauthorized transfers
  • Update all cryptocurrency wallet software and enable additional security measures such as hardware wallet usage
  • Review and strengthen Python package management practices, including using dependency pinning and verification of package sources

Sources

  1. GitHub Advisory GHSA-frrx-r6wq-6pp2 · GitHub Advisory Database

Cite this entry

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

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