Most resource hijacking on endpoints and servers is a Monero miner, usually XMRig or a fork of it, because Monero's algorithm runs well on ordinary CPUs and its privacy design makes stolen coins hard to trace back to a wallet. The binary takes a pool URI on its command line, something like -o pool.supportxmr.com:443 -u <wallet> -p x, connects over the Stratum mining protocol (plain TCP or TLS-wrapped), and starts pinning CPU cores at or near 100% for as long as it runs undetected. Attackers rename the binary to look like a system process (kworkerd, systemd-helper) and often throttle it with --cpu-max-threads-hint to stay just under the level that triggers obvious slowdowns.
On Linux and container hosts, the same technique gets automated into worm behaviour. Groups following the TeamTNT and Kinsing playbook scan for exposed Docker APIs and misconfigured Redis instances, drop a shell script that first kills competing miner processes (their own and rivals'), installs the miner as a systemd service with an innocuous name, and adds a cron entry or a Docker image layer to survive a restart. On compromised cloud instances, the same actors query the instance metadata service for IAM credentials, then use those credentials to spin up additional compute, GPU instances where available, purely to mine at the account's expense.
Beyond mining, the same technique family covers bandwidth hijacking (selling residential or corporate IP space to a proxy network, common in adware bundles and some botnets), SMS pumping against a compromised telephony API, and abusing cloud messaging services to relay spam. All four sub-techniques share the same economic logic: the attacker doesn't need data or persistence value from the host, they need its CPU cycles, network egress, or API quota, so the compromise itself can be shallow and the payload trivial to redeploy elsewhere if you kill it.