This malware has been known for a long time, and we call it in general
clipboard malware, and that's exactly what you described. The precautions that every crypto user should take should consist of trying to prevent such malware from getting into our system at all. This would include the following actions:
- Never click on suspicious links presented through e-mail and social networks, but also do not click on advertisements that can also lead to malicious content.
- Be extremely careful when downloading all media files directly or via torrent, and when visiting xxx websites - it would be best to have a separate device for such things.
- Get proper antivirus/malware protection to protect you in case you still make a mistake.
- Always check all the data in your crypto wallet before confirming the transaction by clicking on the preview option, with special emphasis on the accuracy of the address to which you are sending coins.
- However, if you are not a careful enough person and bad things often happen to you, invest in a hardware wallet that will additionally protect you by forcing you to raise security to a higher level.