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.

Lesson 11 of 18 · 9 min read · practice only with authorization

Diagram

A miner on a cloud host

Follow the path. One example at a time.

Step 1 of 4

Entry

An exposed service, leaked cloud key, or vulnerable container image.

Illustration: Entry
# 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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

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.

  1. MapMalware fundamentals: families, delivery, persistence, and the responseWhat malware categories describe, how infections usually start, where persistence hides on Windows, Linux, and macOS, and why rebuilding usually beats cleaning.

Practice

  1. LabTerminal labRead the files on a scoped host and name the failure in a finding.

Glossary

  1. CardCryptojackingSomeone else's computer mines, and the bill or the CPU graph is the clue.