⛏️
Security

Cryptominer on your website: why server load hit 100%

23.11.2026
← All articles

One morning the site loads much slower than usual, the admin panel barely responds and hosting monitoring shows the CPU pinned at 100%. Traffic has not grown and no ad campaign started, yet the server is constantly busy with something. One of the first suspects in this situation is a hidden cryptominer. This article explains what it is, how it gets in, how to spot it and how to remove it for good rather than until the next restart.

What a cryptominer is and why attackers target websites

A cryptominer is a program that burns computing power to mine cryptocurrency. Legitimate miners pay for their own hardware and electricity, while attackers prefer to hijack other people's servers and use their CPUs for free. Every compromised site is free capacity for them, and for the owner it means a slow site, unhappy customers and sometimes a suspended hosting account. These programs usually mine CPU-friendly coins such as Monero, so no graphics card is needed and an ordinary web server is good enough.

A browser-based variant also exists: a JavaScript snippet injected into your pages loads visitors' computers instead of the server. Server load stays normal, but visitors notice their laptops heating up and antivirus tools start blocking the site.

What to look for when load reaches 100%

Not every load spike is a miner. Search crawlers, heavy SQL queries or an uncached catalog can also eat the CPU. The miner's signature is constant, flat load that does not drop even at night when nobody visits, plus a process with an odd name, either random letters or something disguised as a system process like kworker or php-fpm. With SSH access, these commands help find it and reveal where its binary really lives:

# top CPU consumers
ps aux --sort=-%cpu | head -n 10

# real binary and working directory of a process
ls -l /proc/12345/exe
ls -l /proc/12345/cwd

# which remote hosts the process talks to
ss -tnp | grep 12345

Miner files typically sit in /tmp, /var/tmp, /dev/shm or the site's uploads folder under a hidden dot-name, with a permanent connection to a mining pool or control server.

How the miner gets in

The most common entry point is an outdated CMS or plugin with a known vulnerability. Others are weak or reused passwords for FTP, SSH or the admin panel, and remote code execution flaws in modern frameworks such as old Node.js or Next.js projects. Consider a Tashkent building supplies shop running WordPress with a page builder plugin that had not been updated for years. The attacker dropped a small PHP file into wp-content/uploads, used it to download a miner and added a cron job that relaunched it every minute. Restarting did nothing; only cleaning the cron entry, the hidden PHP file and updating the plugin together solved it.

Cleanup in the right order

  1. Stop the miner process, note its file path and move the file to quarantine.
  2. Check crontab -l: any line you did not add is suspicious, especially ones calling curl or wget.
  3. Look for recently changed PHP files and files in unexpected places.
  4. Change every password: hosting panel, FTP, SSH, database and CMS admins.
  5. Update the CMS core, plugins and themes and delete unused ones.
find ~/www -name "*.php" -mtime -7 -ls
find ~/www -path "*uploads*" -name "*.php"
find /tmp /var/tmp /dev/shm -type f -perm -u+x 2>/dev/null

If the infection is deep or the entry point is unclear, restore from a clean backup made before the infection and then immediately apply updates and new passwords.

On shared hosting without SSH

Use the ISPmanager file manager to inspect the uploads folder, recently modified files and cron jobs. sayt.uz customers open the hosting panel straight from their cabinet. Server-level processes and connections are visible to support, so if load stays high, open a ticket and ask which file or process is consuming resources. On a shared server one site's miner hurts its neighbours too, so the account may be limited temporarily until it is cleaned.

Preventing reinfection

Watch server load for several days after cleanup, keep everything updated, use unique strong passwords with two-factor authentication, and block PHP execution in the uploads folder:

# wp-content/uploads/.htaccess (Apache)
<FilesMatch "\.(php|phtml|phar)$">
    Require all denied
</FilesMatch>

Keep regular backups and test restoring them. With miners, time is the expensive part: the sooner you notice and the cleaner your backup, the faster the site is back to normal.

Related articles

👤 Fake Admins Appeared in WordPress: What to Do 🌐 The danger of misconfigured CORS: how to open your API correctly 🔍 Scanning a Website with ClamAV: Setup, Commands and Reading the Results 🦠 Malware on Your PC Steals FTP Passwords: Signs and Protection
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓