mal-2025-191729
Vulnerability from ossf_malicious_packages
Published
2025-08-05 16:11
Modified
2025-12-11 09:27
Summary
Malicious code in flashsimplelogger (PyPI)
Details

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

Source: kam193 (8c4753ee44e481f1f689cfaeddcddaef8dcdf86fbb1db19b3fe0acc2fadac305)

It's a clone of "loguru" package which on import loads a second-stage script from loguru[.]guru. This makes a few checks and downloads the next stage, which is a code obfuscated with PyArmor with unclear behaviour.

The way the malicious code has been embedded could be called a "sophisticated" threat. The code is in the _logger.py in two places: the payload in L2242 as a long string constraint of only whitespaces, which are then transformed into bits and bytes, and later compiled and executed using "types.FunctionType" during initialisation of Core class.


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

Campaign: 2025-07-loquru

Reasons (based on the campaign):

  • typosquatting

  • obfuscation

  • clones-real-package

  • Downloads and executes a remote malicious script.


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "flashsimplelogger"
      },
      "versions": [
        "0.1.0",
        "0.2.0"
      ]
    }
  ],
  "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": "REPORTER"
    }
  ],
  "database_specific": {
    "iocs": {
      "domains": [
        "loguru.guru"
      ],
      "urls": [
        "https://loguru.guru/version/is_match_revision",
        "https://loguru.guru/version/code"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "pypi/2025-07-loquru/flashsimplelogger",
        "import_time": "2025-12-02T22:30:55.197616772Z",
        "modified_time": "2025-08-05T16:11:02.979601Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "4e15e4d836902748ddc1299d65d490003096ba69cc7a42f9aa54a08616c99616",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-07-loquru/flashsimplelogger",
        "import_time": "2025-12-02T23:07:18.206681709Z",
        "modified_time": "2025-08-05T16:11:02.979601Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "8c4753ee44e481f1f689cfaeddcddaef8dcdf86fbb1db19b3fe0acc2fadac305",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-07-loquru/flashsimplelogger",
        "import_time": "2025-12-10T21:38:57.491355503Z",
        "modified_time": "2025-08-05T16:11:02.979601Z",
        "sha256": "29b910f6bee20818c26414d261dfd8f0c9a0e6cf428265e3497a31ec16302b94",
        "source": "kam193",
        "versions": [
          "0.1.0",
          "0.2.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (8c4753ee44e481f1f689cfaeddcddaef8dcdf86fbb1db19b3fe0acc2fadac305)\nIt\u0027s a clone of \"loguru\" package which on import loads a second-stage script from loguru[.]guru. This makes a few checks and downloads the next stage, which is a code obfuscated with PyArmor with unclear behaviour.\n\nThe way the malicious code has been embedded could be called a \"sophisticated\" threat. The code is in the _logger.py in two places: the payload in L2242 as a long string constraint of only whitespaces, which are then transformed into bits and bytes, and later compiled and executed using \"types.FunctionType\" during initialisation of Core class.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-07-loquru\n\n\nReasons (based on the campaign):\n\n\n - typosquatting\n\n\n - obfuscation\n\n\n - clones-real-package\n\n\n - Downloads and executes a remote malicious script.\n",
  "id": "MAL-2025-191729",
  "modified": "2025-12-11T09:27:53Z",
  "published": "2025-08-05T16:11:02Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Delgan/loguru/issues/1363"
    },
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/flashsimplelogger"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in flashsimplelogger (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…