mal-2024-10895
Vulnerability from ossf_malicious_packages
Published
2024-07-26 16:53
Modified
2025-12-11 09:27
Summary
Malicious code in some-random-package-33 (PyPI)
Details

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

Source: kam193 (56e2adbf4dfb01600fc7df2c4a270d862b1b575c7040142ae070c7bf990d671e)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


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: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

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

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

Source: ossf-package-analysis (0202389971fffa3954690cc01ec76374424a1edd87f08ee6f80999f756cb13f6)

The OpenSSF Package Analysis project identified 'some-random-package-33' @ 2.3.100 (pypi) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "some-random-package-33"
      },
      "versions": [
        "2.3.100"
      ]
    }
  ],
  "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://github.com/ossf/package-analysis",
        "https://openssf.slack.com/channels/package_analysis"
      ],
      "name": "OpenSSF: Package Analysis",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "import_time": "2024-11-24T10:37:24.312802987Z",
        "modified_time": "2024-11-24T10:05:46Z",
        "sha256": "0202389971fffa3954690cc01ec76374424a1edd87f08ee6f80999f756cb13f6",
        "source": "ossf-package-analysis",
        "versions": [
          "2.3.100"
        ]
      },
      {
        "id": "pypi/GENERIC-standard-pypi-install-pentest/some-random-package-33",
        "import_time": "2025-12-02T22:30:56.408624018Z",
        "modified_time": "2024-07-26T16:53:30Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "f3c8d55d7c36cb7cff3ad56d59e2484be8f6bb470c7bdf9f3b322fbf85901196",
        "source": "kam193"
      },
      {
        "id": "pypi/GENERIC-standard-pypi-install-pentest/some-random-package-33",
        "import_time": "2025-12-02T23:07:19.594554736Z",
        "modified_time": "2024-07-26T16:53:30Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "56e2adbf4dfb01600fc7df2c4a270d862b1b575c7040142ae070c7bf990d671e",
        "source": "kam193"
      },
      {
        "id": "pypi/GENERIC-standard-pypi-install-pentest/some-random-package-33",
        "import_time": "2025-12-10T21:38:58.699027833Z",
        "modified_time": "2024-07-26T16:53:30Z",
        "sha256": "3d4eb3aaf403806453e9f17abac2436c5ef33bcf397540cf376f35b2ce225706",
        "source": "kam193",
        "versions": [
          "2.3.100"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (56e2adbf4dfb01600fc7df2c4a270d862b1b575c7040142ae070c7bf990d671e)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\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: GENERIC-standard-pypi-install-pentest\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n## Source: ossf-package-analysis (0202389971fffa3954690cc01ec76374424a1edd87f08ee6f80999f756cb13f6)\nThe OpenSSF Package Analysis project identified \u0027some-random-package-33\u0027 @ 2.3.100 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n",
  "id": "MAL-2024-10895",
  "modified": "2025-12-11T09:27:54Z",
  "published": "2024-07-26T16:53:30Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/some-random-package-33"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in some-random-package-33 (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…