Here are some tips on preventing virus attacks.
- Don't install untrusted softwares.
- Don't open unknown emails, be careful about the email attachments.
- Keep the antivirus software up-to-date.
- Perform regular virus scan for you computer.
- If you want to transfer data securely across the internet, consider using VPN. A VPN is used to securely transfer data across insecure media, like the internet.