Websites using Malvertising to Mine Monero
3 min read

Websites using Malvertising to Mine Monero

By Editorial Team

Annoying web ads can really impede one's browsing experience. However, how about the prospect of your browser doing a bit of Monero mining whenever you visit a page?

We have previously heard how Russian hackers have resorted to spreading malware that embeds itself on the user's machine to mine Monero. However, this would require the user to download the Malware in some way. This is generally one of the hardest parts.

Hackers have therefore decided that it can be much easier to get a user to visit a page on a website and mine that Monero with the browser. Malvertising is a form of malware that aims to present the user with adverts. As users have become wiser to intrusive ads, these hackers have found that the mining malvertising is much more efficient.

All that is required is that the website has to embed a piece of Javascript code that will run once the user visits a particular page. Once the code is running, it will mine the Monero and the user will be none the wiser. The only thing that they may notice is that their PC is running a bit slower than usual.

Choosing the Targets

At current, the malvertising code is targeting users who use gaming and streaming sites. This is reasonable given that most of these users have advanced graphics cards or GPUs which can mine the Monero more efficiently.

For example, many users of the Peer-to-Peer downloading site, Piratebay became aware that their PCs were running a bit slower than ususal when they visited a particular page on the site. Upon closer examination they discovered the code in the footer of the page. It is an external script that is provided by coinhive. Below is the script that is run when it loads.

Javascript Code Mining

This has been throttled at 0.8 in order to hide the immediate effect that this would have on the speed of the PC. However, this was picked up by users on the Piratebay website and they raised it with a number of the admins. The response from the admins was that this was an alternative way for them to generate some revenue without bombarding the users with a great deal of ads.

There is also another script which is a modified version of MineCrunch. This was a script that was developed in 2014 and appears to be used more and more. It can also mine Zcash and Litecoin.

Adblock to the Rescue

Users should not worry too greatly about the impact of this if they are running some successful ad blocking plugins. Most of the effective blockers are able to identify the malicious javascript and refuse its execution. If the user does not have an ad blocking script then they can merely disable javascript on the browser. Unless the code is executed from an unusual location then it is unlikely that they will be able to circumvent these measures.

Featured Image via Fotolia

Editors at large. Posting the latest news, reviews and analysis to hit the blockchain.
View all posts by Editorial Team -> Best Crypto Deals ->

Related Posts

SwissBorg Capital Raise
What Bear Market? SwissBorg Charges Ahead Amidst Harsh Crypto Conditions 
SwissBorg Capital Raise

What Bear Market? SwissBorg Charges Ahead Amidst Harsh Crypto Conditions 

December 17, 2022 6 min read
OKX invests in WAX
OKX Blockdream Ventures Invests Millions in GameFi and NFT Development on WAX
OKX invests in WAX

OKX Blockdream Ventures Invests Millions in GameFi and NFT Development on WAX

June 3, 2022 2 min read
Binance partners with the weekend
Binance Partners with The Weekend to Provide First-Ever Web 3 Enhanced World Tour
Binance partners with the weekend

Binance Partners with The Weekend to Provide First-Ever Web 3 Enhanced World Tour

June 3, 2022 2 min read
21Shares Releases Sixth State of Crypto Report
21Shares Releases Sixth State of Crypto Report: Summary
21Shares Releases Sixth State of Crypto Report

21Shares Releases Sixth State of Crypto Report: Summary

April 5th, 2023 3 min read
Algorand and MakerX Commit 1M Algo to Migrate Terra Users to Algorand
Algorand and MakerX Commit 1M Algo to Migrate Terra Users to Algorand
Algorand and MakerX Commit 1M Algo to Migrate Terra Users to Algorand

Algorand and MakerX Commit 1M Algo to Migrate Terra Users to Algorand

June 2, 2022 2 min read
Regulators are “Not Allowing” Banks to Engage with Crypto
Bank of America CEO: Regulators are “Not Allowing” Banks to Engage with Crypto
Regulators are “Not Allowing” Banks to Engage with Crypto

Bank of America CEO: Regulators are “Not Allowing” Banks to Engage with Crypto

June 1, 2022 2 min read
US Conference of Mayors Introduces Blockchain Resolution
US Conference of Mayors Introduces Blockchain Resolution
US Conference of Mayors Introduces Blockchain Resolution

US Conference of Mayors Introduces Blockchain Resolution

June 1, 2022 2 min read