PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

Hackers Invade YouTube Ads To Mine Cryptocurrency

The ads largely arrived on Wednesday and ended up stealing the computing power from victims' PCs through their browsers.

 & Michael Kan Principal Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS

This week, ads over YouTube carried a sneaky surprise: a cryptocurrency miner.

The mining software briefly invaded the video platform in an attempt to secretly siphon the computing power from any YouTube viewers who encountered the ads.

SecurityWatch

The culprit? Hackers who decided to abuse Google's ad network. The bad actors seeded the advertisements with web scripts that'll run over your browser to mine the digital currency Monero.

The ads largely arrived on Wednesday and ended up spreading to victims based in Japan, France, Taiwan, Italy and Spain, according to the security firm Trend Micro.

Twitter users noticed the problem too. They've posted screenshots of their antivirus software detecting the mining scripts.

The hackers probably targeted YouTube because the platform is so popular, Trend Micro said in a Friday blog post. The more browsers the mining software can leverage, the more cryptocurrency it can generate.

However, the mining comes with a cost: it can hog your PC's computer resources, and drag down the performance. In this case, the mining scripts in the YouTube scheme were configured to siphon 80 percent of the PC's computing power, Trend Micro said.

Google, which owns YouTube, has taken action. On Friday, the company claimed that the ads were blocked in less than two hours. The bad actors have also been removed from Google's platforms.

"Mining cryptocurrency through ads is a relatively new form of abuse that violates our policies and one that we've been monitoring actively," a company spokesperson said on Friday in an email.

Unfortunately, cryptocurrency mining that creeps through your browser is probably here to stay. In recent months, hackers have been hijacking websites, and even Chrome browser extensions, to seed them with web scripts that can mine the digital currency Monero, which is now worth $320 a coin.

YouTube Coinhive

Many of these hacks all have something in common: they've relied on a service called Coinhive to do the mining. Since Sept, Coinhive has been offering a Javascript Monero miner that anyone can register to use and slip into a website. In return, Coinhive takes a 30 percent cut.

Wednesday's YouTube scheme pulled from the same playbook; it too used a Coinhive script in about 90 percent of the ads served. The remaining ads employed a private web miner.

So far, Coinhive hasn't commented on the YouTube scheme. But its mining script has become widespread. Many anti-virus vendors including Trend Micro are starting to rank it as among the most pervasive malware threats circulating on the web.

About Our Expert

Michael Kan

Michael Kan

Principal Reporter

My Experience

I've been a journalist for over 15 years. I got my start as a schools and cities reporter in Kansas City and joined PCMag in 2017, where I cover satellite internet services, cybersecurity, PC hardware, and more. I'm currently based in San Francisco, but previously spent over five years in China, covering the country's technology sector.

Since 2020, I've covered the launch and explosive growth of SpaceX's Starlink satellite internet service, writing 600+ stories on availability and feature launches, but also the regulatory battles over the expansion of satellite constellations, fights with rival providers like AST SpaceMobile and Amazon, and the effort to expand into satellite-based mobile service. I've combed through FCC filings for the latest news and driven to remote corners of California to test Starlink's cellular service.

I also cover cyber threats, from ransomware gangs to the emergence of AI-based malware. In 2024 and 2025, the FTC forced Avast to pay consumers $16.5 million for secretly harvesting and selling their personal information to third-party clients, as revealed in my joint investigation with Motherboard.

I also cover the PC graphics card market. Pandemic-era shortages led me to camp out in front of a Best Buy to get an RTX 3000. I'm now following how the AI-driven memory shortage is impacting the entire consumer electronics market. I'm always eager to learn more, so please jump in the comments with feedback and send me tips.

The Best Tech I've Had:

  • My first video game console: a Nintendo Famicom
  • I loved my Sega Saturn despite PlayStation's popularity.
  • The iPod Video I received as a gift in college
  • Xbox 360 FTW
  • The Galaxy Nexus was the first smartphone I was proud to own.
  • The PC desktop I built in 2013, which still works to this day.

Read full bio