mal-2024-12281
Vulnerability from ossf_malicious_packages
Published
2024-08-23 22:55
Modified
2025-12-12 12:13
Summary
Malicious code in hack-test (PyPI)
Details

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

Source: kam193 (bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2)

Packages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.


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-simple-tests

Reasons (based on the campaign):

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



{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "hack-test"
      },
      "versions": [
        "0.1.1",
        "0.1.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": "ANALYST"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "pypi/GENERIC-simple-tests/hack-test",
        "import_time": "2025-12-02T22:30:56.082415459Z",
        "modified_time": "2025-11-23T15:11:02.968104Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "69727976e464122a8453f300a53e246882e4c266f302a9e44389aeefb0fd028d",
        "source": "kam193"
      },
      {
        "id": "pypi/GENERIC-simple-tests/hack-test",
        "import_time": "2025-12-02T23:07:19.272252411Z",
        "modified_time": "2025-11-23T15:11:02.968104Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2",
        "source": "kam193"
      },
      {
        "id": "pypi/GENERIC-simple-tests/hack-test",
        "import_time": "2025-12-12T12:11:30.652577033Z",
        "modified_time": "2025-11-23T15:11:02.968104Z",
        "sha256": "712cb96dca55e5b55be43eb1a2f7e436acf74c4d55e5aa37caa0f64245caa648",
        "source": "kam193",
        "versions": [
          "0.1.1",
          "0.1.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2)\nPackages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.\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-simple-tests\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",
  "id": "MAL-2024-12281",
  "modified": "2025-12-12T12:13:06Z",
  "published": "2024-08-23T22:55:41Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/hack-test"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in hack-test (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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…