Guide

Cryptomining on Your Server: How to Spot It and Stop It

A hidden miner pins the CPU and slows everything around it. How to find one, how it talks to its pool, and how to stop it coming back.

By Frabs · 15 November 2026 · 3 min read

The short answer: a cryptominer shows as a process or VPS using close to all of its CPU for hours, with steady connections to a mining pool, often on ports such as 3333, 4444 or 5555. Find it by CPU use and its outgoing connections, stop the process, remove whatever started it, and find how it got in, or it will be back within the hour.

Why It Matters on Shared Hardware

On a dedicated server a miner wastes your power and hardware. On a hypervisor or shared hosting server it is worse: one miner can take the CPU that every other customer on the node is paying for, and the slowdown lands on them.

Most miners arrive through a weak password or an unpatched service. Some customers run them on purpose, which most hosting terms forbid.

Signs to Look For

  • CPU near 100% for hours, not minutes. Busy servers have spikes; miners have a flat line.
  • A process with a strange or misleading name, often in /tmp, /dev/shm or a hidden folder.
  • Steady outgoing connections to one or two addresses, often on mining pool ports.
  • A cron job or service you did not create, which restarts the miner after you kill it.

How to Find It

Find the busiest processes:

Shell
ps -eo pid,user,%cpu,etime,cmd --sort=-%cpu | head

Check what a suspicious process is connected to:

Shell
ss -tnp | grep <pid>

See where it was started from, even if the file was deleted:

Shell
ls -l /proc/<pid>/exe

Look for the way it comes back:

Shell
crontab -l -u <user>; ls -la /etc/cron.d /var/spool/cron
systemctl list-units --type=service --state=running

On a hypervisor, the node's own tools show which VPS is using its CPU, for example virsh domstats --cpu-total on libvirt, or the summary on Proxmox.

How to Stop It

  1. Kill the process and remove its file. Then remove the cron job or service that restarts it.
  2. Close the way in. Change passwords, update the service that was exploited and check for SSH keys you did not add.
  3. Consider a rebuild. If you cannot be sure what else the attacker left, a clean reinstall is safer than cleaning up what you can see.
  4. Watch for it coming back. Miners are often reinstalled by the same automated attack within minutes.

High CPU Is Not Always Abuse

Video encoding, builds, game servers and scientific work also hold the CPU high for a long time. A sustained load alone is a reason to look, not proof. The connection to a mining pool is what separates a miner from a busy customer.

How Frabs Handles Mining

Frabs separates the two. It watches resource use over hours, not minutes, so a busy moment is never treated as abuse: CPU is flagged only when it stays high for an hour or more, at levels you can change. Separately, it recognises connections to known mining pools and the mining protocol itself, which is what marks a miner.

When a VPS is mining, Frabs names it and its customer, and can block the pool so the miner earns nothing, by your rules. On Frabs Hypervisor, it can also cap the CPU or disk of a VPS that keeps hogging the node, so its neighbours carry on. On Frabs Server and Frabs Host, it watches the server itself and the accounts on it.

Frequently Asked Questions

How do I know if my server is cryptomining?

Look for CPU close to 100% for hours from one process or VPS, steady outgoing connections to one or two addresses on ports such as 3333, 4444 or 5555, and a cron job or service that restarts it.

Why does the miner come back after I kill it?

Something restarts it: a cron job, a service, or the same automated attack that installed it. Remove those and close the way in, or it returns.

Is high CPU always a sign of mining?

No. Encoding, builds and game servers also hold the CPU high. The connection to a mining pool is what separates a miner from a busy customer.

Can Frabs limit a VPS that is using too much CPU?

Yes, on Frabs Hypervisor it can cap the CPU or disk of a VPS that keeps hogging the node, by the levels you set. Mining pools can be blocked on every product.

Earn 30% recommending Frabs

Share your own code. Your customers get 20% off their first month, and you earn 30% of every payment for them, for as long as they keep them. Paid by PayPal.

Become an Affiliate

Start with One Server, Free