Skip to content
supplychainattack.orgSupply chain attack incident catalog
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.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Unknown; depends on installation prevalence of the malicious package
Ecosystems
Attack vectors
Threat actor
Affected entities
  • pydanticcTyposquatting package imitating pydantic library

The malicious package pydanticc on PyPI is a typosquatting attack designed to mimic the legitimate pydantic library. The package overrides the install command in setup.py to execute obfuscated malicious code during the installation process.

Upon installation, the malicious code downloads a remote executable and executes it on the victim's system. The payload is designed to exfiltrate cryptocurrency wallet data and likely other sensitive information from the compromised system.

The attack was identified and attributed to campaign 2026-08-flasq. The malicious package was discovered and reported through the OpenSSF's malicious-packages repository, which tracks confirmed supply chain attacks in open-source ecosystems.

Indicators of compromise

Packages
  • pydanticc

Remediation

  • Immediately uninstall pydanticc from any affected systems
  • Install the legitimate pydantic package instead
  • Audit systems that installed pydanticc for signs of compromise, particularly cryptocurrency wallet access and data exfiltration
  • Review and revoke any cryptocurrency wallet credentials or keys that may have been exposed
  • Monitor for unauthorized access to sensitive data and accounts
  • Use package name verification and typosquatting detection tools when installing dependencies

Sources

  1. GitHub Advisory GHSA-2678-pjvc-v3wf · GitHub Advisory Database

Cite this entry

"Malicious code in pydanticc (PyPI)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 7, 2026; last updated August 7, 2026. https://supplychainattack.org/incident/malicious-code-in-pydanticc-pypi-adic41

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 @years19/n8n-nodes-utils-helper-d (npm)

    The npm package @years19/n8n-nodes-utils-helper-d contained malicious code that downloads and executes a Python DDoS/offensive-tooling dropper on installation. The package impersonates a legitimate n8n community node but performs unauthorized system reconnaissance and beacons host identity to an attacker-controlled endpoint.

    npmPyPICompromised packageTyposquatting
  2. 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
  3. 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
  4. containedcritical

    Malicious code in fast-hashes (PyPI)

    A malicious package named fast-hashes was published to PyPI, using typosquatting to imitate a legitimate library. During installation, obfuscated code downloads and executes a remote malicious executable that exfiltrates cryptocurrency wallet data and potentially other sensitive information.

    2026 08 Flasq CampaignPyPITyposquattingCompromised package