Cryptojacking: stolen compute for mining and how to spot it
Cryptojacking runs cryptocurrency miners on someone else’s servers, cloud accounts, containers, or browsers. Indicators (sustained CPU, mining pool connections, unexpected GPU instances), common entry points, and cleanup.
Diagram
A miner on a cloud host
Step 1 of 4
Entry
An exposed service, leaked cloud key, or vulnerable container image.
# Entry # An exposed service, leaked cloud key, or vulnerable # container image.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Misleading names
- What fails
- Miners use names like kworker or systemd to blend in.
- Who is affected
- Admins reading process lists.
- What you would notice
- High CPU from kernel-looking names run as a normal user.
- What you change
- Check the binary path and owner, not the name.
Cloud accounts
- What fails
- Leaked keys are used to launch GPU instances.
- Who is affected
- The bill.
- What you would notice
- GPU instances in unused regions.
- What you change
- Budgets, anomaly alerts, and region restrictions.
Containers
- What fails
- Public images and exposed Docker APIs are common entry points.
- Who is affected
- Clusters.
- What you would notice
- Unknown images running, or Docker API on port 2375.
- What you change
- Restrict registries and never expose the Docker API.
Browser mining
In-browser miners like Coinhive (shut down in 2019) ran in visitors’ browsers. They are rarer now but still appear on compromised sites; CSP and script integrity limit them for site owners.
Check yourself
Recognition and the fix. Nothing here is a procedure.
A process named kworkerds uses 396% CPU as user www. What do you check?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.