Dwight Pavlovic | August 24, 2026

What Is Cryptojacking and How Do You Stop It?

What is Cryptojacking and How to Stop an Attack

Cryptojacking is one of the fastest-growing cybersecurity threats, and most victims never realize it is happening. Cryptojacking incidents surged 136 percent in recent years, and in early 2026, SentinelOne documented $6.5 million in cryptojacking-related incidents. The anti-cryptojacking solutions market is projected to reach $31.8 billion by 2030—a measure of how seriously the security industry takes this threat.

Unlike ransomware, which announces itself and demands payment, cryptojacking operates silently. It hijacks your computer's processing power to mine cryptocurrency for someone else, running in the background while you pay the costs in performance, electricity, and hardware wear. Here is how it works, how to detect it, and how to stop it.

What is cryptojacking?

Cryptojacking is the unauthorized use of someone else's computing resources to mine cryptocurrency. As Interpol defines it, cryptojacking covers any activity that secretly uses a victim's computing power to generate digital currency.

Mining cryptocurrency requires significant processing power and energy. Instead of investing in their own hardware and paying large electricity bills, cryptojackers distribute the workload across thousands of compromised personal computers, cloud instances, and servers—each contributing a small amount of mining power that adds up to significant profit for the attacker.

The vast majority of cryptojacking malware—roughly 89 percent—is based on XMRig, an open-source tool designed to mine Monero (XMR), a privacy-focused cryptocurrency that is difficult to trace. This makes cryptojacking both profitable and low-risk for attackers: the stolen computing power mines untraceable currency, and victims rarely report the crime because they often do not know it is happening.

How does cryptojacking work?

Attackers use several methods to install cryptomining scripts on your device.

Malicious links and phishing emails. The most common delivery method is identical to traditional malware: clicking a malicious link in a phishing email or on a compromised website downloads a cryptomining script to your system. In 2026, 94 percent of all malware is delivered via email, and phishing remains the top initial access vector according to Cisco Talos's Q1 2026 incident response data.

Browser-based mining. Some websites embed JavaScript-based mining scripts that use your browser's processing power while you are on the site. The mining stops when you close the tab—but while you are there, your CPU is working for someone else. This method requires no download and leaves no file on your device, making it harder to detect.

Compromised cloud infrastructure. Increasingly, attackers target cloud environments rather than individual PCs. A single set of compromised cloud credentials can spin up GPU instances for mining at the victim's expense. Organizations have reported six-figure cloud bills from cryptojacking attacks that ran undetected for weeks. Cloud cryptojacking increased roughly 20 percent in 2025, and Google Cloud's Threat Horizons report flagged it as a primary risk for misconfigured cloud accounts.

Supply chain and container attacks. Malicious Docker Hub images containing hidden mining code have been pulled over 100,000 times before detection. Attackers also exploit vulnerable drivers and software supply chains to gain persistent access for long-running mining operations.

Two Boys Using HP Computers

How to detect cryptojacking

Because cryptojacking depends on your hardware to mine currency, the signs are physical before they are digital.

Reduced performance during normal use. Cryptocurrency mining consumes heavy CPU and GPU resources. If your computer struggles with routine tasks—checking email, scrolling through a spreadsheet, browsing the web—when it normally handles them smoothly, unauthorized mining may be consuming your processing power.

Overheating and excessive fan activity. Mining generates significant heat. If your device becomes hot to the touch, especially near ventilation points, or if fans run at maximum speed during light use, investigate further. Sustained overheating also accelerates hardware degradation and shortens component lifespan.

Decreased battery life. On laptops, cryptomining drains the battery far faster than normal use. If a relatively new device loses its charge much sooner than expected—even when idle—it may be running mining scripts in the background.

High CPU usage when idle. Open your system's task manager (Ctrl+Shift+Esc on Windows) and check CPU usage when no applications are actively running. Sustained high CPU usage during idle periods is one of the clearest indicators of cryptojacking. Some sophisticated scripts only activate when you are not using the device or stay just below thresholds that would trigger obvious slowdowns.

Unexpected spikes in electricity or cloud bills. For businesses, an unexplained increase in electricity costs or cloud computing charges can signal a cryptojacking compromise—especially in cloud environments where attackers spin up additional compute instances.

How to stop and prevent cryptojacking

Keep your browser and operating system updated. Browser updates include patches for the vulnerabilities that cryptojacking scripts exploit. Enable automatic updates and do not delay installing them. Remove any browser extensions you do not recognize—cryptomining malware is frequently packaged as browser add-ons.

Use comprehensive security software. Install, update, and actively run cybersecurity software that includes real-time malware detection. McAfee+, which comes preinstalled on HP PCs, provides AI-powered scam protection, real-time antivirus with 100 percent zero-day malware detection in independent testing, and web protection that blocks malicious sites before mining scripts can execute. McAfee's protection plans cover unlimited devices so every computer in your household is protected.

Block known mining scripts. Browser-based mining can be blocked with ad blockers and anti-mining extensions. Tools like uBlock Origin and dedicated anti-cryptomining extensions identify and block known mining scripts before they execute. Most modern browsers also allow you to manage site permissions and block JavaScript execution on suspicious domains.

Monitor system resources. Make it a habit to check your task manager periodically. Familiarize yourself with your device's normal CPU usage so that anomalies are easier to spot. For businesses, deploy endpoint monitoring tools that flag unusual resource consumption across the fleet.

Secure cloud accounts. If your organization uses cloud infrastructure, enforce least-privilege IAM policies, enable billing alerts with low thresholds, and monitor for unauthorized compute instance launches. Google Cloud and AWS both recommend identity segmentation and continuous credential validation as primary defenses against cloud-native cryptojacking.
 

How HP protects against cryptojacking and malware

Cryptojacking scripts exploit the same entry points as other malware—phishing links, compromised websites, malicious downloads, and vulnerable software. HP Wolf Security provides hardware-enforced protection against all of these vectors.

HP Sure Click isolates browser tabs, email attachments, and downloaded files inside hardware-enforced micro-virtual machines. If you accidentally visit a site running a cryptomining script or click a malicious link in a phishing email, the threat is contained in an isolated environment and cannot access your system's resources or spread to other applications.

HP Sure Run keeps critical security processes active even if malware attempts to disable them—preventing cryptojacking scripts from shutting down your antivirus or monitoring tools to avoid detection.

HP Sure Start automatically detects and recovers from BIOS-level attacks, protecting the firmware foundation that all other security depends on.

And HP's Workforce Experience Platform (WXP) gives IT teams fleet-wide visibility into device health, resource usage anomalies, and security compliance—making it easier to detect and respond to cryptojacking across an organization's entire endpoint fleet.

Cryptojacking thrives on stealth. The best defense is a combination of updated software, real-time security monitoring, and hardware-enforced endpoint protection that stops threats before they can execute—whether you see them coming or not.

About the Author

Dwight Pavlovic is a contributing writer for HP® Tech Takes. Dwight is a music and technology writer based out of West Virginia.

Disclosure: