{"id":"MAL-2025-934","summary":"Malicious code in huggingleg2 (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (19ba00b8fab08e8016af3bfb4ba9fbb18510b2aa823dfb82a46a5b3ecd477655)\nInstalling the package starts a revshell\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2024-12-huggingleg2\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","modified":"2026-03-19T12:53:50.457114Z","published":"2024-12-04T06:28:49Z","database_specific":{"malicious-packages-origins":[{"sha256":"c3d2d113b69ab7c811fd32de5f831f98c73976e678425f05c61747b81078f1a9","id":"RLMA-2025-00474","import_time":"2025-02-03T18:38:06.804154563Z","source":"reversing-labs","modified_time":"2025-02-03T17:07:27Z","versions":["0.1"]},{"sha256":"b5db7f765f02adaa83c6f464ec54339279b949420281dfa726e684715f5fe232","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"id":"pypi/2024-12-huggingleg2/huggingleg2","import_time":"2025-12-02T22:30:55.262326202Z","source":"kam193","modified_time":"2024-12-04T06:28:49Z"},{"sha256":"19ba00b8fab08e8016af3bfb4ba9fbb18510b2aa823dfb82a46a5b3ecd477655","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"id":"pypi/2024-12-huggingleg2/huggingleg2","import_time":"2025-12-02T23:07:18.28670537Z","source":"kam193","modified_time":"2024-12-04T06:28:49Z"},{"sha256":"6ba90df2440613af1727c5b46a669b1bc6f196fc46667d87c39157d5e96a05e3","id":"pypi/2024-12-huggingleg2/huggingleg2","import_time":"2025-12-10T21:38:57.538068611Z","source":"kam193","modified_time":"2024-12-04T06:28:49Z","versions":["0.1"]},{"sha256":"b66ac6e1c28ec210cb2a33b33021d65fa2a25fe2c7f8a64039bd109d1b3f1854","id":"RLUA-2026-00406","import_time":"2026-03-19T12:19:53.250949085Z","source":"reversing-labs","modified_time":"2026-03-18T12:14:49Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/huggingleg2"}],"affected":[{"package":{"name":"huggingleg2","ecosystem":"PyPI","purl":"pkg:pypi/huggingleg2"},"versions":["0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/huggingleg2/MAL-2025-934.json"}}],"schema_version":"1.7.5","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"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}