mal-2024-11674
Vulnerability from ossf_malicious_packages
Published
2024-09-29 18:01
Modified
2025-12-11 09:27
Summary
Malicious code in pyprettifier (PyPI)
Details

-= 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.


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "pyprettifier",
        "purl": "pkg:pypi/pyprettifier"
      },
      "versions": [
        "0.1.0",
        "0.1.1",
        "0.1.2",
        "0.1.3",
        "0.1.4",
        "0.1.5"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)"
    },
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)",
      "type": "ANALYST"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "RLMA-2024-11131",
        "import_time": "2024-12-09T14:38:47.645113508Z",
        "modified_time": "2024-12-09T06:50:54Z",
        "sha256": "5c174dc35a6eb20ea8baf16c04b2d84a2c43d75f5fece0a3de510fe00bf0d6c2",
        "source": "reversing-labs",
        "versions": [
          "0.1.0",
          "0.1.1",
          "0.1.2",
          "0.1.3",
          "0.1.4",
          "0.1.5"
        ]
      },
      {
        "id": "pypi/2024-09-pyprettifier/pyprettifier",
        "import_time": "2025-12-02T22:30:56.326596309Z",
        "modified_time": "2024-09-29T18:01:44Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "d16875f95907e63c0f307b7230d32fb3579b874ab4c9154e8a3457ed410e0938",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-09-pyprettifier/pyprettifier",
        "import_time": "2025-12-02T23:07:19.516706954Z",
        "modified_time": "2024-09-29T18:01:44Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "52228ec641ddc958a8048619d93a51b762697ab133afc13ec13c01d24b120467",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-09-pyprettifier/pyprettifier",
        "import_time": "2025-12-10T21:38:58.627188229Z",
        "modified_time": "2024-09-29T18:01:44Z",
        "sha256": "990bc01877ca76b4e9c2f8a350d42e9bd46dbdaeb3b5ab8f20d993fe75ad5222",
        "source": "kam193",
        "versions": [
          "0.1.0",
          "0.1.1",
          "0.1.2",
          "0.1.3",
          "0.1.4"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (52228ec641ddc958a8048619d93a51b762697ab133afc13ec13c01d24b120467)\nThe pyprettifier library has a feature to send out the user home path throuh the logger. It\u0027s 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\u0027s home path.\n\n\n---\n\nCategory: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research \u0026 co, with clearly low-harm possibilities.\n\n\nCampaign: 2024-09-pyprettifier\n\n\nReasons (based on the campaign):\n\n\n - typosquatting\n\n\n - The malicious code is intentionally included in a dependency of the package\n\n\n - action-hidden-in-lib-usage\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n",
  "id": "MAL-2024-11674",
  "modified": "2025-12-11T09:27:53Z",
  "published": "2024-09-29T18:01:44Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/pyprettifier"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in pyprettifier (PyPI)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…