mal-2024-12287
Vulnerability from ossf_malicious_packages
Published
2024-10-30 18:55
Modified
2025-12-31 02:45
Summary
Malicious code in hmac2 (PyPI)
Details

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

Source: kam193 (055915f62eab8a5fe37b7501a3ed565a2aba267bdd69e82acaa13525bacf41a1)

The package contains obfuscated code that exfiltrate basic data, and then executes commands delivered from remote server


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

Campaign: 2024-10-hmac2

Reasons (based on the campaign):

  • obfuscation

  • dependency-confusion

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

  • exfiltration-generic




{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "hmac2"
      },
      "versions": [
        "0.0.1",
        "0.0.2",
        "0.0.2rc0"
      ]
    }
  ],
  "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": {
    "iocs": {
      "ips": [
        "38.54.57.42"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "pypi/2024-10-hmac2/hmac2",
        "import_time": "2025-12-02T22:30:55.251253999Z",
        "modified_time": "2024-10-30T18:55:55Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "aa701936e511c8660bdb35501d4992b32a9cf69b60b6a29d0469f6e3eaab6741",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-10-hmac2/hmac2",
        "import_time": "2025-12-02T23:07:18.274371633Z",
        "modified_time": "2024-10-30T18:55:55Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "055915f62eab8a5fe37b7501a3ed565a2aba267bdd69e82acaa13525bacf41a1",
        "source": "kam193"
      },
      {
        "id": "pypi/2024-10-hmac2/hmac2",
        "import_time": "2025-12-10T21:38:57.529141051Z",
        "modified_time": "2024-10-30T18:55:55Z",
        "sha256": "f4c8ca7684a9f624376e65f4fb0ddfeb5900aafb96a722e1e5a8d30853fef470",
        "source": "kam193",
        "versions": [
          "0.0.1",
          "0.0.2",
          "0.0.2rc0"
        ]
      },
      {
        "id": "pypi/2024-10-hmac2/hmac2",
        "import_time": "2025-12-30T22:39:04.099348183Z",
        "modified_time": "2024-10-30T18:55:55Z",
        "sha256": "e085b192f68f8e7a2d3649619f8bcb85a26f4e95d269808570bc81d3523a0839",
        "source": "kam193",
        "versions": [
          "0.0.1",
          "0.0.2rc0",
          "0.0.2"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (055915f62eab8a5fe37b7501a3ed565a2aba267bdd69e82acaa13525bacf41a1)\nThe package contains obfuscated code that exfiltrate basic data, and then executes commands delivered from remote server\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2024-10-hmac2\n\n\nReasons (based on the campaign):\n\n\n - obfuscation\n\n\n - dependency-confusion\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 - exfiltration-generic\n",
  "id": "MAL-2024-12287",
  "modified": "2025-12-31T02:45:15Z",
  "published": "2024-10-30T18:55:55Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/hmac2"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in hmac2 (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…