{"id":"MAL-2024-12287","summary":"Malicious code in hmac2 (PyPI)","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","modified":"2025-12-31T02:54:13.841958Z","published":"2024-10-30T18:55:55Z","database_specific":{"iocs":{"ips":["38.54.57.42"]},"malicious-packages-origins":[{"ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"aa701936e511c8660bdb35501d4992b32a9cf69b60b6a29d0469f6e3eaab6741","source":"kam193","id":"pypi/2024-10-hmac2/hmac2","import_time":"2025-12-02T22:30:55.251253999Z","modified_time":"2024-10-30T18:55:55Z"},{"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-02T23:07:18.274371633Z"},{"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-10T21:38:57.529141051Z"},{"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"]}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/hmac2"}],"affected":[{"package":{"name":"hmac2","ecosystem":"PyPI","purl":"pkg:pypi/hmac2"},"versions":["0.0.1","0.0.2","0.0.2rc0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/hmac2/MAL-2024-12287.json"}}],"schema_version":"1.7.3","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"ANALYST"}]}