Cryptojacking

Definition

Cryptojacking is a form of cybercrime in which attackers secretly use a victim’s computing resources – CPU, GPU, or FPGA power – to mine cryptocurrency without the victim’s knowledge or consent, effectively stealing electricity, processing capacity, and hardware lifespan to generate cryptocurrency revenue for the attacker. Unlike ransomware (which holds data hostage) or data theft (which targets information), cryptojacking stealthily exploits computational resources – it can operate for months without victims noticing beyond slower device performance, higher electricity bills, and increased hardware wear. Cryptojacking takes two primary forms: malware-based (malicious software installed on victim devices) and browser-based (JavaScript mining code embedded in websites that runs while visitors are on the page), with Monero (XMR) being the overwhelmingly preferred cryptocurrency due to its CPU-mineable design and privacy properties.

Origin & History

DateEvent
2011Early Bitcoin mining malware appears as Bitcoin gains value
2013GPU mining botnets appear; thousands of machines enslaved for mining
2017Coinhive launches – JavaScript browser mining API; legitimate and malicious use explodes
2017Pirate Bay caught using Coinhive to mine Monero via visitor browsers
2018Cryptojacking becomes mainstream cyberthreat; 500M+ devices affected according to Symantec
2018Tesla cloud infrastructure cryptojacked via exposed Kubernetes console
2019Coinhive shuts down as Monero mining becomes unprofitable at scale via browser
2020–22Cryptojacking shifts to cloud infrastructure (AWS, Azure, GCP) – higher hash rates
2023TeamTNT and other advanced persistent threat groups specialize in cloud cryptojacking
2024AI infrastructure (GPU clusters) become premium cryptojacking targets
“Cryptojacking is the perfect crime for sophisticated attackers – it generates continuous revenue with low detection risk, and victims often don’t notice until electricity bills arrive.”
McAfee Threat Intelligence

How It Works

Attack TypeTargetDetection DifficultyProfitability
Browser JavaScriptWebsite visitorsLow (performance visible)Low per user
PC/Server malwareIndividual devicesMediumMedium
Botnet miningThousands of hostsMedium-HighHigh (scale)
Cloud infrastructureAWS/GCP/AzureHighVery High
IoT device miningRouters, cameras, DVRsVery HighLow
AI/GPU clusterResearch/enterprise GPUHighExtremely High

In Simple Terms

  1. Your device, their profit: Cryptojacking uses your computer, phone, or server’s processing power to mine cryptocurrency – sending the rewards to the attacker while you pay the electricity bill and suffer performance degradation.
  2. Monero is the preferred coin: Monero (XMR) is cryptojackers’ currency of choice because: it’s designed to be CPU-mineable (no specialized hardware needed), its privacy features make transactions harder to trace, and its RandomX algorithm runs efficiently on ordinary processors.
  3. Browser mining was the “gold rush”: In 2017–2018, Coinhive provided JavaScript code that websites could embed to mine Monero using visitor CPU cycles. Some sites used it as an “alternative to ads,” others injected it maliciously. Its shutdown in 2019 reduced but didn’t eliminate browser-based cryptojacking.
  4. Cloud is the new frontier: Modern cryptojacking increasingly targets cloud infrastructure – exposed Kubernetes APIs, misconfigured Docker containers, and AWS access keys. Attackers spin up thousands of GPU instances, mine for days or weeks, and leave victims with massive unexpected cloud bills.
  5. Detection signs: Unexplained performance degradation, CPU/GPU running at near-100% when idle, elevated electricity consumption, device overheating, and unusual network traffic to mining pool IP addresses are all cryptojacking indicators.

Real-World Examples

ScenarioImplementationOutcome
Coinhive in Pirate BayPirate Bay silently used visitor CPUs to mine XMRDiscovered by users noticing CPU spikes; major controversy
Tesla cloud cryptojackingKubernetes dashboard exposed; attackers used Tesla GPU instancesDiscovered; attacker profited from Tesla’s compute/electricity
Los Angeles Times (2018)Coinhive script injected into LA Times news website (Homicide Report page)Mining ran for weeks before discovery; LA Times apologized
Rocke group operationsChinese cybercrime group deployed cloud cryptojacking at scaleMillions in XMR mined via compromised cloud accounts globally
AI GPU cluster targetingAttackers target exposed Jupyter notebooks on research clustersHigh-value GPU resources generate significant XMR at victim cost

Advantages

AdvantageDescription
Awareness BuildingCryptojacking awareness drives better cybersecurity hygiene
Alternative Revenue ModelSome legitimate sites explored browser mining as ad alternative (informed consent basis)
Security ResearchCryptojacking campaigns reveal common infrastructure vulnerabilities (Kubernetes, cloud APIs)

Disadvantages & Risks

DisadvantageDescription
Device DamageSustained maximum CPU/GPU load can overheat and permanently damage hardware
Electricity TheftVictims pay for electricity consumed by attacker’s mining operations
Performance ImpactMining software degrades system performance for legitimate tasks
Security GatewayCryptojacking malware often serves as initial access for more serious attacks
Cloud BillsCloud cryptojacking can generate five to seven-figure unexpected infrastructure charges

Risk Management Tips:

  • Install reputable endpoint security (antivirus/EDR) with cryptojacking detection signatures
  • Use browser extensions like NoScript, uBlock Origin, or dedicated anti-cryptomining extensions
  • Monitor CPU/GPU usage – unexpected sustained high utilization when idle is a red flag
  • For cloud infrastructure: rotate API keys regularly, enable MFA on cloud consoles, monitor billing alerts, and restrict container image sources
  • For organizations: use Kubernetes network policies and restrict access to exposed APIs

FAQ

Why do cryptojackers prefer Monero over Bitcoin?

Monero (XMR) is the preferred cryptojacking currency for several reasons: (1) RandomX algorithm is specifically designed to run efficiently on consumer CPUs and resist ASIC specialization, making stolen CPU cycles competitive; (2) Monero’s privacy features (ring signatures, stealth addresses, RingCT) make it extremely difficult to trace payments from mining pools back to attackers; (3) Lower profitability threshold than Bitcoin makes small-scale mining viable; (4) XMR can be mined effectively without GPUs, making it accessible from a wider range of compromised devices including IoT.

How do I detect cryptojacking on my device?

Signs include: (1) CPU/GPU usage near 100% when the computer is otherwise idle; (2) Significant performance degradation during normal tasks; (3) Device running hotter than usual and fans at maximum; (4) Unusual battery drain on laptops/phones; (5) Higher than expected electricity bills. For detailed detection: use Task Manager (Windows) or Activity Monitor (Mac) to identify suspicious processes; use security software with cryptomining detection; on servers, monitor for unusual outbound connections to known mining pool addresses.

Is browser-based cryptojacking still a threat?

Less than during the 2017–2019 peak following Coinhive’s shutdown, but it persists. Some websites still embed mining scripts, and malicious JavaScript can still be injected into legitimate sites via compromised ad networks or website vulnerabilities. Browser-based mining is generally less profitable per victim than malware-based approaches, pushing attackers toward more valuable targets (cloud infrastructure, corporate networks). Browser security extensions effectively block most browser-based mining.

What are the legal consequences of cryptojacking?

Cryptojacking is illegal in most jurisdictions as unauthorized computer access and use of computational resources. In the US, it violates the Computer Fraud and Abuse Act (CFAA). Several high-profile cryptojacking operators have been arrested and prosecuted internationally. The sentences have ranged from fines to multi-year prison terms, particularly when corporate or government infrastructure was targeted.

How can organizations protect cloud infrastructure from cryptojacking?

Key protections: (1) Enable MFA on all cloud console access; (2) Rotate API keys and service account credentials regularly; (3) Set up billing alerts for anomalous cost spikes; (4) Use cloud security tools (AWS Security Hub, GCP Security Command Center) to monitor for mining-related behavior; (5) Apply principle of least privilege to all service accounts; (6) Use container image scanning to detect known mining software; (7) Monitor outbound traffic for connections to known mining pool IPs.

News & Events