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
| Date | Event |
| 2011 | Early Bitcoin mining malware appears as Bitcoin gains value |
| 2013 | GPU mining botnets appear; thousands of machines enslaved for mining |
| 2017 | Coinhive launches – JavaScript browser mining API; legitimate and malicious use explodes |
| 2017 | Pirate Bay caught using Coinhive to mine Monero via visitor browsers |
| 2018 | Cryptojacking becomes mainstream cyberthreat; 500M+ devices affected according to Symantec |
| 2018 | Tesla cloud infrastructure cryptojacked via exposed Kubernetes console |
| 2019 | Coinhive shuts down as Monero mining becomes unprofitable at scale via browser |
| 2020–22 | Cryptojacking shifts to cloud infrastructure (AWS, Azure, GCP) – higher hash rates |
| 2023 | TeamTNT and other advanced persistent threat groups specialize in cloud cryptojacking |
| 2024 | AI 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.”
How It Works

| Attack Type | Target | Detection Difficulty | Profitability |
| Browser JavaScript | Website visitors | Low (performance visible) | Low per user |
| PC/Server malware | Individual devices | Medium | Medium |
| Botnet mining | Thousands of hosts | Medium-High | High (scale) |
| Cloud infrastructure | AWS/GCP/Azure | High | Very High |
| IoT device mining | Routers, cameras, DVRs | Very High | Low |
| AI/GPU cluster | Research/enterprise GPU | High | Extremely High |
In Simple Terms
- 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.
- 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.
- 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.
- 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.
- 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
| Scenario | Implementation | Outcome |
| Coinhive in Pirate Bay | Pirate Bay silently used visitor CPUs to mine XMR | Discovered by users noticing CPU spikes; major controversy |
| Tesla cloud cryptojacking | Kubernetes dashboard exposed; attackers used Tesla GPU instances | Discovered; 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 operations | Chinese cybercrime group deployed cloud cryptojacking at scale | Millions in XMR mined via compromised cloud accounts globally |
| AI GPU cluster targeting | Attackers target exposed Jupyter notebooks on research clusters | High-value GPU resources generate significant XMR at victim cost |
Advantages
| Advantage | Description |
| Awareness Building | Cryptojacking awareness drives better cybersecurity hygiene |
| Alternative Revenue Model | Some legitimate sites explored browser mining as ad alternative (informed consent basis) |
| Security Research | Cryptojacking campaigns reveal common infrastructure vulnerabilities (Kubernetes, cloud APIs) |
Disadvantages & Risks
| Disadvantage | Description |
| Device Damage | Sustained maximum CPU/GPU load can overheat and permanently damage hardware |
| Electricity Theft | Victims pay for electricity consumed by attacker’s mining operations |
| Performance Impact | Mining software degrades system performance for legitimate tasks |
| Security Gateway | Cryptojacking malware often serves as initial access for more serious attacks |
| Cloud Bills | Cloud 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.









