Malware & ransomware

What Is Cryptojacking? How It Works, Signs & How to Stop It

Cryptojacking does not steal your files or lock your screen. It quietly uses your processor, your electricity and your cloud bill to mine cryptocurrency for someone else.

Cysoro Security TeamPublished · 7 min read
CPU 98%Mining…Your power, their coins MALWARE & RANSOMWARE What iscryptojacking? Signs, detection & removal
Quick answer

Cryptojacking is the unauthorized use of someone else's computing power to mine cryptocurrency. Attackers install mining software on a device or server, or run mining code in a website visitor's browser, so the victim pays for the electricity, hardware wear and cloud bill while the attacker keeps the mined coins.

Key takeaways

  • Cryptojacking steals computing power, not files: sustained high CPU, overheating and a rising cloud bill are the main signs.
  • It spreads through vulnerable servers, phishing, malicious ads, weaponized apps and exposed cloud credentials.
  • Patching, strong passwords, least privilege and monitoring for abnormal CPU use are the core defenses.

Cryptojacking is the quiet cousin of ransomware. It does not encrypt your files or demand payment. It simply borrows your processor, your electricity and your cloud bill — and uses them to mine cryptocurrency for someone else, for as long as it can stay hidden.

What is cryptojacking?

Cryptojacking occurs when malicious actors hijack the processing power of victim devices and systems by exploiting vulnerabilities in webpages, software and operating systems to illicitly install cryptomining software. That is how CISA defines it.

Mining cryptocurrency requires solving cryptographic calculations, which takes a massive amount of processing power. Instead of buying hardware and paying for electricity, an attacker steals yours.

Cryptojacking involves maliciously installed programs that are persistent or non-persistent. Persistent miners survive a reboot; non-persistent miners, such as browser-based scripts, run only while a page is open.

How does cryptojacking work?

An attacker first gains access, then installs a miner, then connects it to a mining pool and a wallet they control. The miner solves cryptographic puzzles, the pool pays out coins, and the attacker collects them.

The miner is usually configured to use most of the CPU or GPU, but not all of it, so the victim notices slowness rather than a complete failure. On servers and cloud accounts, the attacker may spin up many instances at once to mine faster.

Monero is the cryptocurrency most often associated with cryptojacking, because it can be mined efficiently on ordinary CPUs and its transactions are hard to trace. Attackers may also mine other coins, depending on hardware and profitability.

How a cryptojacking attack works1Gain accessvulnerable server,phishing, weak password2Install minerhidden process orbrowser script3Connect to poolmining pool andwallet address4Mine coinsyour CPU andelectricity do the work5Collect payoutattacker keepsthe mined coinsYou pay the bill. The attacker keeps the coins.
The five stages of a cryptojacking attack. Illustration by Cysoro.

What are the main types of cryptojacking?

The main types are file-based miners installed on a device or server, browser-based miners that run as JavaScript while a page is open, and cloud cryptojacking that abuses cloud accounts and containers.

File-based miners are the most common on servers. They are installed as a hidden process, often with persistence through cron jobs, scheduled tasks or systemd services, so they restart after a reboot.

Browser-based miners run only while the victim visits a compromised or malicious page. They stop when the tab closes, so they are less profitable per victim but can reach many visitors at once.

Cloud cryptojacking is the most expensive for victims. Attackers use stolen cloud keys or exposed management APIs to launch compute instances in regions the owner does not use, then mine until the bill arrives.

How does cryptojacking spread?

Cryptojacking spreads through the same entry points as other intrusions: a vulnerable internet-facing service, an exposed management API, default or weak credentials, or a stolen cloud key.

CISA notes that malicious actors distribute cryptojacking malware through weaponized mobile applications, botnets and social media platforms, by exploiting flaws in applications and servers and by hijacking Wi-Fi hotspots.

Phishing and malicious ads are also common delivery methods. A user clicks a link or an ad, a script or a download runs, and the miner starts in the background.

Which devices are at risk from cryptojacking?

Any internet-connected device with a CPU is susceptible to cryptojacking. CISA lists desktop computers, laptops, tablets, smartphones, servers and cloud systems among the commonly targeted devices.

Servers and cloud-based systems are common targets because they offer more computing power and can run miners around the clock. MITRE ATT&CK notes that attackers may consume enough resources to make affected machines unresponsive.

Internet-of-things devices, routers and smart-home gadgets can also be hijacked, though they offer less power per device. Attackers compensate by compromising many of them at once.

How do you know if you have been cryptojacked?

Sustained high CPU use on a machine that should be idle is the headline symptom. If your fan runs constantly, your device overheats, or performance drops for no clear reason, investigate before you assume it is old hardware.

  • Sustained high CPU or GPU use: check Task Manager, Activity Monitor or top for unfamiliar processes.
  • Overheating and battery drain: mining is resource-intensive and drains batteries noticeably faster.
  • Slow performance and crashes: the miner competes with your real work for processor time.
  • Unfamiliar processes: look for random-looking names and processes started by cron or scheduled tasks.
  • Connections to mining pools: outbound connections to known pool ports, such as 3333, 5555, 7777 and 14444.
  • A jump in your cloud bill: new instances in regions you do not use are a strong signal.

On a Linux server, check running processes, files in /tmp and /dev/shm, cron jobs for every user, and new systemd services. A config file holding pool URLs or a wallet address is a strong signal.

Cryptojacking vs ransomware: what's the difference?

Cryptojacking and ransomware both start with an intrusion, but they want different things. Ransomware encrypts files and demands payment; cryptojacking quietly mines cryptocurrency and hopes you never notice.

CryptojackingRansomware
GoalSteal computing power to mine coinsEncrypt files and demand a ransom
Visible to victimUsually hidden; slowness and heatObvious; files locked, ransom note
DurationWeeks or months, if undetectedHours to days, then encryption
Main costElectricity, hardware wear, cloud billsDowntime, ransom, recovery costs
Data stolenUsually not the goalOften stolen before encryption
DetectionCPU, process and network monitoringFiles change, alerts, ransom note

An attacker who can install a miner can often install ransomware too, so finding a miner should trigger a full incident check, not just a cleanup of one process.

What damage does cryptojacking cause?

CISA lists the consequences as degraded system and network performance from monopolized CPU and bandwidth, higher power consumption and crashes, disrupted operations, and financial loss.

On a personal device, the cost is slower performance, a shorter battery and hardware life, and higher electricity bills. On a server, it can mean degraded service for real users and unexpected downtime.

On a cloud account, the cost can be large and fast. Attackers can launch many instances at once, and the bill arrives before anyone notices the CPU spike.

How do you detect cryptojacking?

Detect it by watching for sustained, unexplained resource use and by checking for the persistence and network signals miners leave behind. No single tool catches every miner, so combine host, network and cloud checks.

  1. Check CPU use: look for unfamiliar long-running processes consuming high CPU.
  2. Check persistence: review cron jobs, scheduled tasks and systemd services for recent, unfamiliar entries.
  3. Check dropped files: look in /tmp, /var/tmp and /dev/shm for executables and config files with pool URLs.
  4. Check network traffic: look for connections to known mining pools and unusual DNS queries.
  5. Check cloud activity: review instance creation, regions and IAM activity for anything outside your normal pattern.
  6. Use endpoint and network monitoring: EDR, SIEM alerts and DNS monitoring can flag mining behavior automatically.

MITRE ATT&CK files cryptojacking under Resource Hijacking, technique T1496, sub-technique Compute Hijacking, T1496.001. See the MITRE ATT&CK T1496 page for detection ideas.

How do you prevent cryptojacking?

Prevention narrows the odds, and detection catches the rest. MITRE notes that this technique cannot be easily mitigated with preventive controls alone, because it is based on the abuse of system features — so monitoring matters as much as patching.

  • Keep software patched: install updates promptly, prioritizing entries in CISA's Known Exploited Vulnerabilities catalog.
  • Use strong, unique passwords: change default usernames and passwords on every device and service.
  • Check privilege policies: only users who need administrative rights should have them.
  • Apply application allow listing: prevent unknown executables from launching on their own.
  • Disable unnecessary services: review running services and uninstall software you do not use.
  • Protect cloud keys: never expose Docker or Kubernetes management APIs to the internet, use short-lived credentials, and alert on instance creation outside your normal regions.
  • Monitor CPU activity: learn what normal CPU use looks like, and investigate sustained abnormal activity.

CISA's full list is in its guidance on defending against illicit cryptocurrency mining. For browser protection, use an anti-mining extension and block known mining domains at your firewall.

These controls fit into a wider plan in our small business cybersecurity checklist.

Six defenses against cryptojacking1. Patch promptlyPrioritize CISA Known Exploited Vulnerabilities2. Strong passwordsChange defaults; unique passwords everywhere3. Least privilegeAdmin rights only where they are needed4. Allow listingBlock unknown executables from launching5. Monitor CPUInvestigate sustained abnormal activity6. Protect cloud keysNo exposed APIs; alert on new instances
Six defenses that narrow the odds and help you catch cryptojacking early. Illustration by Cysoro.

What should you do if you find cryptojacking?

Act quickly, and treat it as an intrusion, not just a slow computer. The miner is a symptom; the entry point that let it in is the real problem.

  1. Isolate the device: disconnect it from the network if you can, so the miner cannot reach its pool.
  2. Revoke exposed keys first: if a cloud account is affected, revoke stolen keys before you clean the instances.
  3. Run a full scan: use antivirus and endpoint detection to find and remove the miner and its persistence.
  4. Remove persistence: delete unfamiliar cron jobs, scheduled tasks and systemd services, and remove dropped files.
  5. Change passwords: change passwords and keys for the affected system, and check for new accounts.
  6. Patch the entry point: fix the vulnerability or misconfiguration that let the attacker in.
  7. Check for other damage: look for data theft, new users and other malware, because a miner is rarely the only payload.

If money was lost, report it to the FBI's Internet Crime Complaint Center at ic3.gov. Our guide to knowing if your phone is hacked covers similar checks for mobile devices.

The bottom line

Cryptojacking is quiet, persistent and expensive in aggregate: your processor, your electricity and your cloud bill, working for someone else. The signs are sustained high CPU, overheating and unexplained costs.

Patch promptly, use strong unique passwords, limit admin rights, protect cloud keys and monitor for abnormal CPU use. You can check your network basics in seconds with the free DNS lookup tool.

Frequently asked questions

What is cryptojacking in simple terms?

Cryptojacking is when someone uses your computer, phone, server or cloud account to mine cryptocurrency without your permission. You pay for the electricity and wear, and they keep the coins.

How do I know if I have been cryptojacked?

The clearest signs are sustained high CPU use on a machine that should be idle, a fan running constantly, overheating, slow performance, unfamiliar processes, and a sudden jump in your cloud bill.

Is cryptojacking the same as ransomware?

No. Ransomware encrypts your files and demands payment. Cryptojacking quietly uses your computing power to mine cryptocurrency. It is quieter and can run for months without being noticed.

Can cryptojacking happen in a browser?

Yes. Some cryptojacking runs as JavaScript in a web page, mining while you have the page open and stopping when you close it. Browser-based mining is less common now than server and cloud mining, but it still happens.

Can cryptojacking damage my computer?

It can shorten hardware life through constant heat and high CPU use, cause crashes, and raise electricity costs. On servers and cloud accounts it can also cause large bills and service outages.

How do I remove cryptojacking malware?

Disconnect the affected device, run a full antivirus and endpoint scan, remove unfamiliar processes and scheduled tasks, change passwords and cloud keys, and patch the vulnerability that let it in. If a cloud account is affected, revoke exposed keys first.

Can cryptojacking be prevented?

Not completely, because it abuses normal system features. Patching, strong unique passwords, least privilege, application allow listing and monitoring for abnormal CPU use narrow the odds and help you catch it early.

Sources

  1. CISA — Defending Against Illicit Cryptocurrency Mining Activity
  2. MITRE ATT&CK — Technique T1496: Resource Hijacking
  3. Huntress — What Is Crypto Malware: A Guide to Cryptojacking and Detection
  4. Sazabi — What Is Cryptojacking?
  5. Rootcrak — What Is Cryptojacking and How Do You Detect It in 2026?
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against CISA's cryptojacking guidance and MITRE ATT&CK T1496 Resource Hijacking, including compute hijacking.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free