That is called clipboard malware. There are a lot of types of hacking tools that we don't even know. A person should not connect their hardware wallet to a random computer. if you connect it to your own computer, make sure it is fresh. If you have a good amount of money in your crypto wallet, always be careful with it. You can run two operating systems on the same computer by making it dual boot.
If you visit random websites with your computer, you never know if it is already affected by malware. You should not take any kind of risk when it comes to your own crypto wallet. I use linux for wallet management and I do not use it for day to day work.
[/quote]
I have an old experience with this. When I first started with cryptocurrency, I didn't have my own computer. So, I would go to an internet cafe and rent a computer to perform crypto-related tasks, including sending funds. One time, I attempted to transfer my funds to another wallet, but I didn't realize that the address had been changed, and my money was sent to a different address. Since that incident, I invested in my own personal computer and secured my wallets to prevent any such incidents from happening again.