mal-2025-6547
Vulnerability from ossf_malicious_packages
Published
2025-07-16 19:46
Modified
2025-12-11 09:27
Summary
Malicious code in memlib (PyPI)
Details

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

Source: kam193 (a0d0e362d3ea9b768078a9e47f80c667acef799c7099f8044e74fd1738fdedb4)

Installing the package triggers a code that looks like downloading a picture, but in fact downloads and starts an executable with malware. Note that file supplied from the URL differs depending on the presence of the special header


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

Campaign: 2025-07-memlib

Reasons (based on the campaign):

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

  • Downloads and executes a remote executable.

  • malware


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "memlib",
        "purl": "pkg:pypi/memlib"
      },
      "versions": [
        "2.0.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"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "iocs": {
      "urls": [
        "https://image-logo-popup-files.vercel.app/public/image.jpg"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "RLMA-2025-03644",
        "import_time": "2025-08-01T10:07:12.593648595Z",
        "modified_time": "2025-07-31T19:15:43Z",
        "sha256": "e424a3ccba21168bc30bb897ea5eb6e2943ee8a5554c39eec55f049031239127",
        "source": "reversing-labs",
        "versions": [
          "2.0.0"
        ]
      },
      {
        "id": "pypi/2025-07-memlib/memlib",
        "import_time": "2025-12-02T22:30:55.333720421Z",
        "modified_time": "2025-07-16T19:46:02.684371Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "de3ef8a2a725d846e8066394b238be79bfe0d7b7e7c3b653dc1b5e7dc12361d2",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-07-memlib/memlib",
        "import_time": "2025-12-02T23:07:18.3624201Z",
        "modified_time": "2025-07-16T19:46:02.684371Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "a0d0e362d3ea9b768078a9e47f80c667acef799c7099f8044e74fd1738fdedb4",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-07-memlib/memlib",
        "import_time": "2025-12-10T21:38:57.591212641Z",
        "modified_time": "2025-07-16T19:46:02.684371Z",
        "sha256": "d5e00072c0ca596f2cfeffed47046624395c7ae0158ae4df3ef306239b6109f8",
        "source": "kam193",
        "versions": [
          "2.0.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (a0d0e362d3ea9b768078a9e47f80c667acef799c7099f8044e74fd1738fdedb4)\nInstalling the package triggers a code that looks like downloading a picture, but in fact downloads and starts an executable with malware. Note that file supplied from the URL differs depending on the presence of the special header\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-07-memlib\n\n\nReasons (based on the campaign):\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - Downloads and executes a remote executable.\n\n\n - malware\n",
  "id": "MAL-2025-6547",
  "modified": "2025-12-11T09:27:53Z",
  "published": "2025-07-16T19:46:02Z",
  "references": [
    {
      "type": "EVIDENCE",
      "url": "https://www.virustotal.com/gui/file/0fc1e062c521184f7e0c9f23dfdeb5431414e35cb55886e87c5ff5ec92ff4603"
    },
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/memlib"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in memlib (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…