Here are some actions you can take: 1. Install an antivirus program. ... 2. Don't open email attachments unless you're expecting them. ... 3. Keep your computer updated. ... 4. Use a firewall.‌ Windows Firewall (or any other firewall) can help alert you to suspicious activity if a virus or worm attempts to connect to your computer.