Skip to content

MAL-2024-11674 Malicious code in pyprettifier (PyPI)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


-= Per source details. Do not edit below this line.=-

Source: kam193 (52228ec641ddc958a8048619d93a51b762697ab133afc13ec13c01d24b120467)

The pyprettifier library has a feature to send out the user home path throuh the logger. It's attached to the init of EmojiConverter class. Other related packages utilize a typosquatting to imitate real packages, and attempts to call the EmojiConverter from pyprettifier, triggering notifying the author about the user's home path.


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: 2024-09-pyprettifier

Reasons (based on the campaign):

  • typosquatting

  • The malicious code is intentionally included in a dependency of the package

  • action-hidden-in-lib-usage

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
pypi pyprettifier(PyPI) = 0.1.0; = 0.1.1; = 0.1.2; = 0.1.3 +2 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi pyprettifier(PyPI) = 0.1.0 No fix listed
pypi pyprettifier(PyPI) = 0.1.1 No fix listed
pypi pyprettifier(PyPI) = 0.1.2 No fix listed
pypi pyprettifier(PyPI) = 0.1.3 No fix listed
pypi pyprettifier(PyPI) = 0.1.4 No fix listed
pypi pyprettifier(PyPI) = 0.1.5 No fix listed

References