MAL-2024-12287

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/hmac2/MAL-2024-12287.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12287
Published
2024-10-30T18:55:55Z
Modified
2025-12-31T02:54:13.841958Z
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

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "aa701936e511c8660bdb35501d4992b32a9cf69b60b6a29d0469f6e3eaab6741",
            "source": "kam193",
            "modified_time": "2024-10-30T18:55:55Z",
            "id": "pypi/2024-10-hmac2/hmac2",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:55.251253999Z"
        },
        {
            "sha256": "055915f62eab8a5fe37b7501a3ed565a2aba267bdd69e82acaa13525bacf41a1",
            "source": "kam193",
            "modified_time": "2024-10-30T18:55:55Z",
            "id": "pypi/2024-10-hmac2/hmac2",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:18.274371633Z"
        },
        {
            "sha256": "f4c8ca7684a9f624376e65f4fb0ddfeb5900aafb96a722e1e5a8d30853fef470",
            "source": "kam193",
            "modified_time": "2024-10-30T18:55:55Z",
            "id": "pypi/2024-10-hmac2/hmac2",
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.2rc0"
            ],
            "import_time": "2025-12-10T21:38:57.529141051Z"
        },
        {
            "sha256": "e085b192f68f8e7a2d3649619f8bcb85a26f4e95d269808570bc81d3523a0839",
            "source": "kam193",
            "modified_time": "2024-10-30T18:55:55Z",
            "id": "pypi/2024-10-hmac2/hmac2",
            "versions": [
                "0.0.1",
                "0.0.2rc0",
                "0.0.2"
            ],
            "import_time": "2025-12-30T22:39:04.099348183Z"
        }
    ],
    "iocs": {
        "ips": [
            "38.54.57.42"
        ]
    }
}
References
Credits

Affected packages

PyPI / hmac2

Package

Affected ranges

Affected versions

0.*
0.0.1
0.0.2rc0
0.0.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/hmac2/MAL-2024-12287.json"