What is cryptojacking?

The short answer

Cryptojacking is when a criminal secretly runs cryptocurrency mining software on your computer, phone, or cloud account, keeps the coins, and leaves you paying for the power.

Animated diagram: What is cryptojacking?

Cryptojacking

Cryptojacking is when a criminal quietly runs cryptocurrency mining software on your computer, your phone, or your cloud account, and keeps the coins. You pay for the work. On a home PC that cost is extra electricity. In the cloud it can be much bigger. Sysdig found victims billed about 53 dollars in cloud bills for every dollar the attacker mined. MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge), a public catalog of attacker techniques, files this under Compute Hijacking (T1496.001).

Catching it is hard. Mining abuses normal CPU (central processing unit) features, so MITRE notes it cannot be easily mitigated with preventive controls. That’s why newer defenses watch how the processor behaves. On newer Intel PCs, Intel Threat Detection Technology (TDT) works with Microsoft Defender to spot the pattern of mining itself.

What a cryptojacker actually does

First it gets in. CISA (Cybersecurity and Infrastructure Security Agency) lists cracked ‘free premium’ installers, cloud accounts with weak passwords or none at all, and unpatched internet-facing software as common routes. Then it hides. In 2022, Microsoft saw miners injected into legitimate programs on more than 200,000 devices a day, with notepad.exe the favorite. The trick is process hollowing. The attacker starts a trusted program suspended, swaps its memory for the miner, then resumes it. The program’s file on disk isn’t changed, and Task Manager shows a trusted name.

Then it mines. For Monero, your CPU runs the RandomX algorithm, used by Monero since November 30, 2019. It makes thousands of guesses a second. A miner such as XMRig talks to a mining pool with a simple exchange. It sends login, receives a job with an easy target, and sends submit when a guess beats that target. Each winning guess is a share, and shares earn the attacker a cut. An Intel i7-8550U laptop manages only about 1,700 guesses a second, so attackers steal thousands of machines.

How hardware-based detection works

  1. Counters record CPU activity. The CPU’s performance monitoring unit (PMU) keeps performance counters about the work it’s doing.
  2. Intel TDT reads them. On Intel Core and vPro processors from the 6th generation or later, Threat Detection Technology reads those counters.
  3. Machine learning spots mining. Defender’s machine learning recognizes the pattern of mining, even when it runs under a trusted program name.
  4. Defender blocks the miner. Microsoft Defender stops it and reports a detection named Behavior:Win32/CoinMiner.CN!tdt.

The check looks at what the CPU is doing, not at the program’s name. It only works on those Intel processors with Microsoft Defender, so not every PC has it.

A miner is not always a pinned CPU

Many people expect a hidden miner to push the CPU to 100 percent right away. Sometimes it does, and Microsoft saw CPU use jump to continued maximum utilization. But miners can also throttle down so the machine looks only a little busy, and they hide behind trusted names like notepad.exe. A calm-looking computer is not proof that nothing is mining.

What to do

  • Open Task Manager and sort by CPU. If something odd stays busy while you’re idle, run a full antivirus scan.
  • On Windows, the full scan is in Windows Security, under Virus & threat protection, then Scan options, then Full scan.
  • Check the Details tab in Task Manager, where program names like notepad.exe appear, and ask why a simple tool would be working hard.
  • Skip cracked ‘free premium’ installers, and protect cloud accounts with strong passwords.

#cryptojacking#cryptomining#xmrig#monero#randomx#malware#mitreattack#cybersecurity#cloudsecurity#infosec

Watch it in 60 seconds