Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
Cryptojacking is the unauthorised use of someone else’s computing power to mine cryptocurrency, turning stolen CPU time, electricity, and cloud spend into coins for the attacker.

What Is Cryptojacking?
Cryptojacking is the unauthorised use of someone else’s computing resources to mine cryptocurrency. The attacker gains execution on a machine, a container, or a cloud account, installs a mining program, and collects the proceeds while the victim pays for the processor time, the electricity, and — increasingly the largest line — the cloud bill. MITRE ATT&CK records it as T1496, Resource Hijacking.
Almost all of it targets Monero. Its RandomX algorithm is designed to run well on ordinary processors rather than specialised hardware, and its privacy features make the proceeds hard to trace. The near-universal mining binary is XMRig, an open source project that is entirely legitimate and routinely repackaged by criminals.
Mining is the low-effort monetisation of access. Ransomware requires negotiation and attracts law enforcement attention; data theft requires a buyer. A miner needs no interaction and produces income from the first minute. Where a ransomware operator picks targets carefully, a cryptojacking operator sprays exploits at the whole internet and keeps whatever answers.
Two developments made it attractive at scale. Browser mining through Coinhive, launched in 2017, let any site owner — or anyone who could inject script into a site — mine with visitors’ processors; it closed in March 2019 when Monero’s value and a protocol change made it unprofitable. Cloud computing then replaced it, because stolen cloud capacity is elastic, and a compromised account can spin up far more compute than any physical estate.
The Tesla incident reported by RedLock in 2018 remains a clean illustration: an unauthenticated Kubernetes console led to cloud credentials, which led to mining inside the company’s own cloud environment, with the attackers throttling CPU use and hiding pool traffic behind a content delivery network to avoid the obvious detections.
Treating cryptojacking as a nuisance underestimates it in two ways. First, the direct cost can be severe: compromised cloud accounts have produced bills in the hundreds of thousands of pounds within days, and providers do not generally refund them. Second, and more important, a miner is proof that someone else can run arbitrary code in your environment. The same access would support data theft or ransomware; mining is simply what this particular operator chose to do with it.
/tmp, /dev/shm, or a user profile directory.Nothing here is specific to mining, which is the point. Patch internet-facing software promptly, never expose container runtime or orchestration APIs, enforce multi-factor authentication on cloud consoles, use short-lived federated credentials instead of static keys, scan repositories for secrets, apply egress filtering so build agents and servers cannot reach arbitrary hosts, and set billing anomaly alerts that reach a human.
If unexplained compute appears in your environment, our cloud security services can establish how it got there and what else the same access touched.
Look for sustained processor load with no matching application workload, processes running from temporary or user-writable directories, and outbound connections to mining pools over Stratum ports. On cloud platforms, unexpected spend, new regions, and GPU instance types are often the first signal. Billing anomaly alerts frequently detect cryptojacking before any security tool does.
Much less so than in 2017 and 2018. Coinhive, which drove the trend, shut down in March 2019 after a Monero protocol change and falling value made it unprofitable, and browsers and extensions now block mining scripts. Attackers moved to servers, containers, and cloud accounts, where the available compute per compromise is orders of magnitude larger.
Yes, for two reasons. The direct cost can be very large in cloud environments, where attackers scale up quickly and providers rarely refund the bill. More importantly, a miner proves that an unauthorised party can execute code in your environment. Investigate it as a compromise, because the same access supports data theft or ransomware just as easily.
Enforce multi-factor authentication on all console and privileged access, replace long-lived access keys with short-lived federated credentials, scan code repositories and build logs for leaked secrets, restrict which regions and instance types accounts may use through policy, and set billing anomaly alerts. Also review identity permissions regularly, since most cloud mining follows an over-privileged credential.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.