This guide shows you how to keep your computer from being secretly used to mine cryptocurrency. Mining malware hijacks your CPU or GPU, slowing your system, spiking your electricity bill, and wearing out your hardware. You’ll learn the warning signs, the key defenses, and what to do if you’re already infected.
What You’ll Need
- Administrator access to your computer (to change settings and install software)
- An up-to-date antivirus or anti-malware program (Windows Defender works if enabled)
- A web browser (Chrome, Firefox, Edge, or Safari)
- Optional: a free browser extension that blocks miners (e.g., NoCoin, MinerBlock)
Step-by-Step
- Keep your operating system and software updated. Enable automatic updates for Windows, macOS, and your web browser. Mining malware often exploits known vulnerabilities that updates patch. On Windows, go to Settings > Update & Security > Windows Update and click “Check for updates.” On macOS, open System Settings > General > Software Update.
- Install and maintain a reputable antivirus program. If you’re on Windows 10 or 11, Windows Defender is built-in and good, but make sure it’s turned on. Go to Windows Security > Virus & threat protection and ensure “Real-time protection” is enabled. If you use a third-party antivirus, keep it updated and run a full scan at least once a week.
- Use a browser extension to block coin miners. Install an extension like NoCoin or MinerBlock in your browser. These block JavaScript-based miners that run when you visit a website. After installing, check that the extension is active (usually a small icon in your toolbar).
- Be cautious with downloads and email attachments. Only download software from official websites. Avoid opening attachments or clicking links in unsolicited emails—many mining trojans arrive as fake invoices or delivery notices. If a file asks to enable macros in Office, don’t unless you’re sure it’s safe.
- Disable JavaScript on unfamiliar websites (optional but effective). If you visit a site you don’t trust, turn off JavaScript in your browser settings or use an extension like NoScript (Firefox) or ScriptSafe (Chrome). This stops many in-browser miners from running.
- Monitor your system’s performance. Open Task Manager (Ctrl+Shift+Esc on Windows) or Activity Monitor (on macOS) and check CPU and GPU usage. If you see 100% usage when you’re not doing anything heavy, you may be infected. Also watch for high fan noise or a hot laptop—common signs of mining.
- Use a standard (non-admin) account for daily use. Create a separate user account without administrator privileges for everyday browsing and work. If malware infects that account, it can’t install itself system-wide. On Windows, go to Settings > Accounts > Family & other users to add a standard user.
- Block known mining domains at the network level (advanced). You can edit your hosts file (on Windows: C:\Windows\System32\drivers\etc\hosts) to redirect known mining domains to 127.0.0.1. This is more technical, but effective. Lists of mining domains are available online—just add each one as a line like “127.0.0.1 coinhive.com”.
- Keep your router firmware updated. Some routers can be hijacked to inject mining scripts into web pages. Log into your router’s admin panel (usually at 192.168.1.1 or 192.168.0.1) and check for firmware updates.
- If you suspect infection, run a full scan and remove it. Boot into Safe Mode (restart and press F8 or Shift+Restart on Windows), then run a full antivirus scan. Also run a second opinion scanner like Malwarebytes. Delete anything that’s flagged.
Common Mistakes
- Ignoring the signs. Many users think a slow computer is just old. A sudden drop in performance, especially when idle, is a red flag.
- Only using free scans. Free online scanners are not a substitute for a real-time protection. They only check when you run them.
- Disabling Windows Defender. Some users turn off Defender because it’s annoying, but that leaves you exposed. If you install a third-party antivirus, keep only one active—having two can cause conflicts.
- Not updating browser extensions. Extensions that block miners need updates too. Enable automatic updates in your browser.
- Clicking “Allow” on pop-ups. Some sites ask permission to run scripts or notifications—deny unless you trust the site.
Tips
- Use a hardware wallet for any cryptocurrency you own—mining malware often scans for wallet files and steals them.
- For laptops, check battery life. Mining drains battery quickly, so if your laptop dies faster than usual, investigate.
- Set your browser to block pop-ups and redirects by default.
- Consider using a DNS service that blocks malicious domains, like OpenDNS or Cloudflare’s 1.1.1.1 with security features.
- Regularly review installed programs and browser extensions. Uninstall anything you don’t recognize.
Troubleshooting
What if my antivirus can’t remove the miner? Try booting into Safe Mode (with networking) and run Malwarebytes or a dedicated removal tool like AdwCleaner. If that fails, you may need to restore your system to an earlier point or back up your files and reinstall Windows.
What if the miner comes back after removal? It may be hiding in a scheduled task or a registry entry. Use an advanced tool like Autoruns (from Microsoft Sysinternals) to see what starts at boot and disable anything suspicious. Also check for browser extensions that reinstall themselves.
What if my browser is slow but the CPU is fine? The miner might be running in a background tab. Close all tabs and see if performance improves. Also clear your browser cache and cookies, as some miners use service workers.
What if I suspect my router is compromised? Reset your router to factory defaults (there’s usually a small pinhole button), change the admin password, and update the firmware. Also change your Wi-Fi password.
Frequently Asked Questions
Q: Can I get infected just by visiting a website? Yes. Drive-by mining scripts can run in your browser without any download. That’s why browser extensions that block miners are important.
Q: Is crypto mining malware dangerous beyond slowing my PC? It can overheat components, reduce their lifespan, and increase your electricity bill. Some miners also steal passwords or other data.
Q: Does Windows Defender catch all mining malware? It catches many known strains, but new ones appear daily. Using a second scanner like Malwarebytes adds a layer of protection.
Q: Can my phone get infected with a miner? Yes, but it’s less common. Android is more at risk than iOS. Stick to official app stores and avoid sideloading.
Q: Are there legitimate uses of in-browser mining? Some websites mine as an alternative to ads, but they should ask your consent. If a site mines without telling you, it’s malicious.
Q: How do I know if my computer is mining right now? Open Task Manager and check CPU usage. If it’s near 100% with no programs open, that’s a strong sign. Also feel the laptop’s bottom—if it’s hot when idle, investigate.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Notifications Not Working? Fixes That Work
- Fix Thumbnails Not Showing on Network Drives in Windows 11
- Stop Skype Auto-Start in Windows: 5 Fixes
- Print iMessage or Text Conversations on iPhone & iPad
- Madden 20 Crashes on PC: Solved?
- SQL Injection Prevention: Step-by-Step Guide