mal-2025-3454
Vulnerability from ossf_malicious_packages
Published
2025-03-01 15:16
Modified
2025-12-11 09:27
Summary
Malicious code in piedefender (PyPI)
Details

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

Source: kam193 (f8a30e991bd97073c50a9cdabb10842f2c5ae074c46fcd0aeff5d7917d4b56fa)

setup.py is prepared to download and run an obfuscated batch script. While the script is not detected by any AV currently, in the sandbox analysis it reveals behaviour like adding exclusions to Windows Defender


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

Campaign: 2025-02-pydefender

Reasons (based on the campaign):

  • Downloads and executes a remote malicious script.

  • malware

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


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "piedefender",
        "purl": "pkg:pypi/piedefender"
      },
      "versions": [
        "0.0.1"
      ]
    }
  ],
  "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://raw.githubusercontent.com/baledreamer/payload/refs/heads/main/smegma.bat"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "RLMA-2025-02517",
        "import_time": "2025-04-25T09:36:47.086298036Z",
        "modified_time": "2025-04-23T16:06:31Z",
        "sha256": "b13c9da5083fadd88be010b9dd1c0f2e3cb5cec7f1ff9a33d8f5f824c3182e1e",
        "source": "reversing-labs",
        "versions": [
          "0.0.1"
        ]
      },
      {
        "id": "pypi/2025-02-pydefender/piedefender",
        "import_time": "2025-12-02T22:30:55.427439345Z",
        "modified_time": "2025-03-01T15:16:30Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "2c1529cc05836ad53ce1822ee0e8da4790aa1ce9d219d1b00e70ced2cb8798fe",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-02-pydefender/piedefender",
        "import_time": "2025-12-02T23:07:18.453273245Z",
        "modified_time": "2025-03-01T15:16:30Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "f8a30e991bd97073c50a9cdabb10842f2c5ae074c46fcd0aeff5d7917d4b56fa",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-02-pydefender/piedefender",
        "import_time": "2025-12-10T21:38:57.668560408Z",
        "modified_time": "2025-03-01T15:16:30Z",
        "sha256": "2903ec35712e2f200e617905786798d33c5fde00c0334c5694257c81e6b9f066",
        "source": "kam193",
        "versions": [
          "0.0.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (f8a30e991bd97073c50a9cdabb10842f2c5ae074c46fcd0aeff5d7917d4b56fa)\nsetup.py is prepared to download and run an obfuscated batch script. While the script is not detected by any AV currently, in the sandbox analysis it reveals behaviour like adding exclusions to Windows Defender\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-02-pydefender\n\n\nReasons (based on the campaign):\n\n\n - Downloads and executes a remote malicious script.\n\n\n - malware\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n",
  "id": "MAL-2025-3454",
  "modified": "2025-12-11T09:27:53Z",
  "published": "2025-03-01T15:16:30Z",
  "references": [
    {
      "type": "EVIDENCE",
      "url": "https://www.virustotal.com/gui/file/0877653f6a24639bb02b547c94f670597c3c0cd96df910a2ac891eaeaa9cc5f3/behavior"
    },
    {
      "type": "EVIDENCE",
      "url": "https://tria.ge/250301-sdh1pstrz7/behavioral1"
    },
    {
      "type": "EVIDENCE",
      "url": "https://app.any.run/tasks/0fbdb4f9-0497-4272-baf0-872e8d6e50bc"
    },
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/piedefender"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in piedefender (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…