Malicious JavaScript was discovered in the code of the cryptocurrency mixer Tornado Cash, which for almost two months transferred data from deposit notes to a remote server.
Certificates of deposit act as private keys for funds passed through the mixer and can be used to re-access assets after they have been “mixed”. The discovered backdoor compromises the privacy and security of all transactions conducted through IPFS (launched on January 1, 2024), including ipfs.io, cf-ipfs.com and eth.link.
It is reported that the malicious code was introduced two months ago through the governance proposal (number 47) by a certain Butterfly Effects (presumably one of the community developers). This problem was first noticed by a researcher under the nickname Gas404and then his discovery confirmed and founder of blockchain security company SlowMist. In its report, Gas404 called on all interested parties to quickly veto the harmful governance proposal.
Gas404 notes that the malicious functionality encodes private certificates of deposit to appear as normal blockchain transaction data and hides the use of the window.fetch function.
Tornado Cash developers have already confirmed fact of compromise and warned about the risks, advising users to remove their old and probably compromised certificates, replacing them with newly generated ones. In addition, everyone is recommended to withdraw their votes for governance proposal 47 in order to reverse the changes and get rid of the malicious code.
Let us remind you that Tornado Cash is an open source decentralized mixer on the Ethereum blockchain. It uses the cryptographic zero-knowledge system SNARKs (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge) to allow users to deposit and withdraw funds anonymously.
In 2022, American authorities accused Tornado Cash of money laundering and sanctioned the project (although many in the cryptocurrency industry did not like this), and in 2023, the project’s founders were accused of helping criminals launder more than $1 billion in stolen cryptocurrency. Since then, the original Tornado Cash has ceased to exist, but its code base continues to be used for new shadow mixing services.