{"id":8734,"date":"2025-03-07T10:42:52","date_gmt":"2025-03-07T10:42:52","guid":{"rendered":"https:\/\/fusionmindlabs.com\/blogs\/malicious-pypi-package-steals-ethereum-keys\/"},"modified":"2025-03-07T10:42:55","modified_gmt":"2025-03-07T10:42:55","slug":"malicious-pypi-package-steals-ethereum-keys","status":"publish","type":"post","link":"https:\/\/fusionmindlabs.com\/blogs\/malicious-pypi-package-steals-ethereum-keys\/","title":{"rendered":"Malicious PyPI Package Steals Ethereum Keys"},"content":{"rendered":"\n<\/p>\n<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Mar 07, 2025<\/span><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><\/span><span class=\"p-tags\">Malware \/ Blockchain<\/span><\/p>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\">\n<a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgY77x-OuhLIlxSUxscvgJhS4GvrJ1-cF8bxpqXLFX_TunxoJFH6XyqsDRSQeGlJW6_kgk_SMoMYS9imV0Ka3aB8iza6XlOeJYs734zmlqFKNAWbdzJdqE9jYfwQP8YXvBQiy5D24Edui52-9EPnlQzxeYPDEHs6rEy4WG4x97BbVsZJA6h9UO43r2zJ2mA\/s728-rw-e365\/PyPI-code.png\" style=\"clear: left; display: block; float: left;  text-align: center;\" rel=\"nofollow noopener\" target=\"_blank\"><\/p>\n<p><\/a>\n<\/div>\n<p>Researchers specializing in cybersecurity have identified a malicious package on the Python Package Index (PyPI) that is designed to steal Ethereum private keys by masquerading as popular libraries.<\/p>\n<p>The package, known as <a href=\"https:\/\/pypi.org\/project\/set-utils\/\" rel=\"noopener nofollow\" target=\"_blank\">set-utils<\/a>, had been downloaded 1,077 times before it was removed from the official registry. It is no longer available for download.<\/p>\n<p>According to Socket, a company that specializes in software supply chain security, the package &#8220;disguises itself as a simple utility for Python sets, mimicking popular libraries such as python-utils (712M+ downloads) and utils (23.5M+ downloads)&#8221;.<\/p>\n<p\"This deception tricks developers into installing the compromised package, giving attackers unauthorized access to Ethereum wallets,\" the company <a href=\"https:\/\/socket.dev\/blog\/new-pypi-malware-exfiltrates-ethereum-private-keys\" rel=\"noopener nofollow\" target=\"_blank\">explained<\/a>.<\/p>\n<div class=\"dog_two clear\">\n<center class=\"cf\"><br \/>\n<a href=\"https:\/\/thehackernews.uk\/cloud-secure-d\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><br \/>\n<img fetchpriority=\"high\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhPWsOsc5-XgG7OgLaedicSgtFyWz34mXvDdyCyBN0HSv2LVBMQPs-Ma8uaYGqN19Mvm7puED6vlOFihpguPFfq-e_PQ6pfqHPeMKSX6luNSqXs_m3IHmaA6waPe8qHtxB35qw_CdmXzEDQ30crRU_-UvN9w8cSL1W51CocP1fJXyJIrdUcBNvSaMyhb_cV\/s728-e100\/cloud-secure-d.jpg\" width=\"727\" height=\"90\"\/><br \/>\n<\/a><br \/>\n<\/center>\n<\/div>\n<p>The primary target of the package appears to be Ethereum developers and organizations that use Python-based blockchain applications, particularly those working with Python-based wallet management libraries such as eth-account.<\/p>\n<div class=\"separator\" style=\"clear: both;\">\n<a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjS4ZxpQmJw8FKHr8kPpuJxqrokD5p1YQ3Ls7rqwXjafBhhD8wwxvlqMeHM4axX5KVR3Uq9XTtmnybUqS1Yp0MNNtTYS6HZaUc_jLSEwZzqdIh2yFLTGWKioJxj5pJuWpHE7ar9jAeH7yLnUQA5Kl7hfbtBWHUghCx49t-YrW_j1-fwlwf7xTZOlOieZC-F\/s728-rw-e365\/python.jpg\" style=\"clear: left; display: block; float: left;  text-align: center;\" rel=\"nofollow noopener\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjS4ZxpQmJw8FKHr8kPpuJxqrokD5p1YQ3Ls7rqwXjafBhhD8wwxvlqMeHM4axX5KVR3Uq9XTtmnybUqS1Yp0MNNtTYS6HZaUc_jLSEwZzqdIh2yFLTGWKioJxj5pJuWpHE7ar9jAeH7yLnUQA5Kl7hfbtBWHUghCx49t-YrW_j1-fwlwf7xTZOlOieZC-F\/s728-rw-e365\/python.jpg\" alt=\"Malicious PyPI Package\" border=\"0\" data-original-height=\"853\" data-original-width=\"1189\" title=\"Malicious PyPI Package\"\/><br \/>\n<\/a>\n<\/div>\n<p>Besides containing the attacker&#8217;s RSA public key for encrypting stolen data and an Ethereum sender account under their control, the library also embeds itself into wallet creation functions such as &#8220;from_key()&#8221; and &#8220;from_mnemonic()&#8221; to intercept private keys as they are generated on the compromised machine.<\/p>\n<p>In a notable twist, the private keys are exfiltrated via blockchain transactions through the Polygon RPC endpoint &#8220;rpc-amoy.polygon.technology&#8221;, in an attempt to evade traditional detection methods that monitor for suspicious HTTP requests.<\/p>\n<p>&#8220;This means that even if a user successfully creates an Ethereum account, their private key will be stolen and transmitted to the attacker,&#8221; according to Socket. &#8220;The malicious function runs in a background thread, making it even harder to detect.&#8221;<\/p>\n<p><\/p>\n<div class=\"cf note-b\">If you found this article interesting, you can follow us on <a href=\"https:\/\/twitter.com\/thehackersnews\" rel=\"noopener nofollow\" target=\"_blank\">Twitter <i class=\"icon-font icon-twitter\">\uf099<\/i><\/a> and <a href=\"https:\/\/www.linkedin.com\/company\/thehackernews\/\" rel=\"noopener nofollow\" target=\"_blank\">LinkedIn<\/a> to read more exclusive content.<\/div>\n<\/div>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>\n<br \/>\n<br \/><a href=\"https:\/\/thehackernews.com\/2025\/03\/this-malicious-pypi-package-stole.html\" rel=\"nofollow noopener\" target=\"_blank\">Source Link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ue802Mar 07, 2025\ue804Ravie LakshmananMalware \/ Blockchain Researchers specializing in cybersecurity have identified a malicious package on the Python Package Index (PyPI) that is designed to steal Ethereum private keys by&#8230;<\/p>\n","protected":false},"author":19,"featured_media":8735,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[46,39,32,31,33,34,35,40,36,37,42,44,43,41,38,45],"class_list":["post-8734","post","type-post","status-publish","format-standard","has-post-thumbnail","category-cybersecurity","tag-computer-security","tag-cyber-attacks","tag-cyber-news","tag-cyber-security-news","tag-cyber-security-news-today","tag-cyber-security-updates","tag-cyber-updates","tag-data-breach","tag-hacker-news","tag-hacking-news","tag-how-to-hack","tag-information-security","tag-network-security","tag-ransomware-malware","tag-software-vulnerability","tag-the-hacker-news"],"jetpack_featured_media_url":"https:\/\/fusionmindlabs.com\/blogs\/wp-content\/uploads\/sites\/9\/2025\/03\/PyPI-code.png","_links":{"self":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/8734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/comments?post=8734"}],"version-history":[{"count":1,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/8734\/revisions"}],"predecessor-version":[{"id":8736,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/8734\/revisions\/8736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media\/8735"}],"wp:attachment":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media?parent=8734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/categories?post=8734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/tags?post=8734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}