Skip to main content
Menu
Advisories

Malicious code in pyprig (PyPI)

GHSA-25JM-3G7H-JGF6Published Updated GitHubMalware

Description

Source: kam193 (11f4beddcb42e2348d31d2ef0605d72198a28e796467c8afbac5c5c30d870315)

Clone of a legitimate Pydantic package with the added downloading of a remote code. The remote code is delivered from the GitHub repository and unpacked as a new module and then called during initialization of any models (runner injected into cloned Pydantic code). During analysis, the remote code was just a placeholder.

---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-11-pyprig

Reasons (based on the campaign):

  • Downloads and executes a remote malicious script.
  • clones-real-package

---

Credit: OpenSSF (source)

Affected versions

References

bad-packages.kam193.eu

GitHub · PyPrig/pyprig-validation-toolkit

GitHub · ossf/malicious-packages

pypi.org

GitHub Advisory Database