mal-2025-191483
Vulnerability from ossf_malicious_packages
Published
2025-11-26 06:40
Modified
2025-12-03 00:04
Summary
Malicious code in hooktest2 (PyPI)
Details

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

Source: kam193 (207bb5790445a690e4cbb75453026def57279287f88d6c54c7af956e3ba89e1c)

During installation, the package starts a code to retrieve and execute commands from Discord


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

Campaign: 2025-11-hooktest1

Reasons (based on the campaign):

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

  • The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.

  • rat

Source: ossf-package-analysis (4f2601a65663badae35e814ced0812aa9618d4a318fb46f045721e67043d9957)

The OpenSSF Package Analysis project identified 'hooktest2' @ 0.1.1 (pypi) as malicious.

It is considered malicious because:

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

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "hooktest2"
      },
      "versions": [
        "0.1.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://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": "2025-11-28T04:40:12.257693183Z",
        "modified_time": "2025-11-26T06:40:43Z",
        "sha256": "4f2601a65663badae35e814ced0812aa9618d4a318fb46f045721e67043d9957",
        "source": "ossf-package-analysis",
        "versions": [
          "0.1.1"
        ]
      },
      {
        "id": "pypi/2025-11-hooktest1/hooktest2",
        "import_time": "2025-12-02T22:30:55.253488575Z",
        "modified_time": "2025-11-26T08:07:26.214646Z",
        "sha256": "5620ff22dfb87011ca790d80b0ba39953cfda43853a70acf0ea4926e64fdeb7d",
        "source": "kam193",
        "versions": [
          "0.1.1"
        ]
      },
      {
        "id": "pypi/2025-11-hooktest1/hooktest2",
        "import_time": "2025-12-02T23:07:18.275961459Z",
        "modified_time": "2025-11-26T08:07:26.214646Z",
        "sha256": "207bb5790445a690e4cbb75453026def57279287f88d6c54c7af956e3ba89e1c",
        "source": "kam193",
        "versions": [
          "0.1.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (207bb5790445a690e4cbb75453026def57279287f88d6c54c7af956e3ba89e1c)\nDuring installation, the package starts a code to retrieve and execute commands from Discord\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-11-hooktest1\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 - The package contains code to execute remote commands (probably limited to a specific set) on the victim\u0027s machine.\n\n\n - rat\n\n## Source: ossf-package-analysis (4f2601a65663badae35e814ced0812aa9618d4a318fb46f045721e67043d9957)\nThe OpenSSF Package Analysis project identified \u0027hooktest2\u0027 @ 0.1.1 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n",
  "id": "MAL-2025-191483",
  "modified": "2025-12-03T00:04:27Z",
  "published": "2025-11-26T06:40:43Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/hooktest2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in hooktest2 (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…