Beware of Cryptocurrency Miner Scripts that Hijack Your Browser

2025-11-14

The vast majority of websites use affiliate links or advertisements through a third party (or through their proprietary system) to make revenue. It can be a little bit annoying, but some websites have reached a point where they are trying to “mix” these ads in with their content in such a way that they won’t be such an eyesore to visitors. Others have taken to writing scripts that use their visitors’ computers without their consent to “mine” cryptocurrencies so that they can turn a profit. This has become such a problem that it is beginning to capture the attention of browser developers.

How Mining Scripts Work

miningscript-thepiratebay

The best example of mining script usage comes from the time when The Pirate Bay – a popular destination for software and media piracy – has been caught with a script that mined Monero from visitors’ computers.

Many users found themselves unknowingly giving the site the revenue it needs to keep running (and then some) by using their computer power to mine a cryptocurrency. The owners of the website did this to avoid displaying ads.

Mining scripts like these work because they execute on the client side. While scripting languages like PHP usually use the server’s resources to send data to the client on how they should display a particular page, languages like JavaScript rely almost entirely on the resources of the visitor, delegating some of the tasks of presenting page elements to the browser that visits the site.

For example, one could write a script in JavaScript that asks the browser to get an ad from a third-party provider, much like how Google AdSense works. In the case of mining scripts, the code asks the browser to donate its computing power to mine a cryptocurrency. And the browser abides this request, not knowing any better.

How to Tell If You’re Being Hijacked

The simplest way to detect this kind of script running on a page is to look through your tasks and see if anything is consuming an unusual amount of CPU power. If your CPU usage hits 100% on one core while you’re just visiting a text-based page (and you see that one of your browser tasks is the culprit), then you’re probably being hijacked.

To stop the hijack in its tracks, just close the tab you think is eating up all of your resources. If you’re using a browser that executes multiple tasks in your task manager (or processes in your system monitor for those of us who use Linux), then you can just close the culprit task and it will kill the tab for you.

What Are Browser Developers Doing About This?

miningscript-security

I don’t know if the folks at Mozilla or any other browser developers have looked at this yet, but it is likely since Google engineers at the Chromium project are beginning to show awareness about the issue. Ojan Vafai, one of the engineers, has responded to an earlier bug report on 19 October 2017 and proposed some solutions to the problem, including an idea that involves automatically throttling tabs using the CPU heavily.

This doesn’t necessarily mean that a solution is coming overnight, but since engineers are already aware of the issue, we can be sure they’re working on protecting the browser’s users as soon as they build a consensus on what to do about mining scripts.

Since browsers usually follow each other’s leads, it’s likely that other solutions will be brought to the fray as time passes.

What do you think browser developers should do to combat mining scripts? Do you consider them a valid alternative to advertising (if they don’t hog all of your CPU power)? Tell us all of your thoughts in a comment!

Comments on " Beware of Cryptocurrency Miner Scripts that Hijack Your Browser" :

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Related Article

    5 Sites You Can Easily Create Infographics With
    INTERNET

    5 Sites You Can Easily Create Infographics With

    Creating infographics is a great way to get your message across. For some people they are easier to

    WebVR Explained and How It Affects You
    INTERNET

    WebVR Explained and How It Affects You

    Google Chrome and Mozilla Firefox now both offer out-of-the-box support for WebVR. This open virtual

    How to Protect Yourself from KRACK WiFi Vulnerability
    INTERNET

    How to Protect Yourself from KRACK WiFi Vulnerability

    Recently, a major flaw in WiFi’s WPA2 protocol was revealed to the world. This flaw allows a hacke

    How Cryptojacking Spread to Facebook, and How To Beat It
    INTERNET

    How Cryptojacking Spread to Facebook, and How To Beat It

    If you’re a regular reader, you may remember a few weeks ago when we covered what “cryptojacking

    5 Interesting Ways Blockchain Technology Is Being Used Right Now
    INTERNET

    5 Interesting Ways Blockchain Technology Is Being Used Right Now

    Even if you don’t own any cryptocurrency, odds are good that you know someone who does. “Bitcoin

    How to Test Your Web Browser’s Cryptojacking Protection
    INTERNET

    How to Test Your Web Browser’s Cryptojacking Protection

    With cryptocurrencies on the rise, avid cryptocurrency miners have been keen to ride the wave to ric

    How to Find the Best Alternative DNS Server
    INTERNET

    How to Find the Best Alternative DNS Server

    Changing your DNS server is a good idea. You will get better security, privacy, accuracy, and speed

    Beware of Fake Ad-Blocking Chrome Extensions!
    INTERNET

    Beware of Fake Ad-Blocking Chrome Extensions!

    Chrome extensions have allowed us to have a great deal of flexibility in what features we can have i

    About Netverse

    We are a premier digital platform committed to delivering high-quality content to our readers. Our mission is to provide accurate, reliable, and engaging information that adds value to our audience's daily lives.

    Our team consists of experienced content creators and subject matter experts who uphold the highest standards of professionalism. In an era of information overload, we curate content with care, ensuring our users receive only the most relevant and trustworthy information.

    Beyond just reporting facts, we focus on depth and context. Through expert analysis, comprehensive research, and clear presentation, we help our audience gain meaningful insights and make informed decisions.

    We take pride in being a trusted information source for our growing community of readers. Our user-first approach means we continuously adapt to provide content that meets our audience's evolving needs and interests.

    Innovation and excellence drive everything we do. We're committed to improving our platform and services to deliver the best possible experience for our users.