VYPR

pypi · Malicious package advisory

Malware

pydantics

GHSA-p2mh-p4gx-grgj

Malicious code in pydantics (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (dda36b358c57e79abf804d53d4750cf2836f930b07aa524c0b5c4d231d92143f)
Package is a typosquatting or dependency confusion attempt with a low-harm local-only action, like leaving a flag file.


---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.


Campaign: GENERIC-local-typosquatting


Reasons (based on the campaign):


 - dependency-confusion


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - typosquatting

## Source: ossf-package-analysis (7c6d61cdeefc8455cbf435a43ba1e13c796ed4b43b63fe74314706d265387ea1)
The OpenSSF Package Analysis project identified 'pydantics' @ 1.0.0 (pypi) as malicious.

It is considered malicious because:

- The package executes one or more commands associated with malicious behavior.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/pydantics/MAL-2026-868.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/pydantics
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/pydantics/MAL-2026-868.json
- https://github.com/advisories/GHSA-p2mh-p4gx-grgj

Compromised versions (1)

  • = 1.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.