Skip to main content
T1496Impactmedium difficulty

Resource Hijacking

Resource Hijacking (T1496) is an attacker stealing your compute for their profit: dropping a cryptominer like XMRig, renting your bandwidth to a proxy network, or abusing cloud messaging for spam. Detection leans on sustained CPU/GPU spikes from unfamiliar processes plus DNS or connection lookups to mining pools, not on antivirus signatures, since the miner itself is often a legitimate open-source binary.

Practice detecting Resource Hijacking on realistic SIEM, XDR alerts in SOCSimulator Operations.

SIEMXDR

What is Resource Hijacking?

Resource Hijacking is documented as technique T1496 in MITRE ATT&CK® v19.1 under the Impact tactic. Detection requires visibility into SIEM, XDR telemetry.

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.

Where Resource Hijacking fits in an attack

Cryptomining rarely arrives as the primary objective of a targeted intrusion. It's the monetization step that follows access an attacker already has for another reason: a webshell left after an unpatched CVE, a stolen cloud access key, an exposed Docker or Kubernetes API, or a secondary payload dropped alongside an infostealer once credentials and wallets have already been harvested. Because the miner adds detectable noise (CPU load, network egress) without buying the attacker anything toward data theft or ransomware, it's often the last stage run on a host before the operator moves on, treating the box as a disposable revenue source rather than a foothold worth protecting.

Sysdig's research on TeamTNT documented the escalation path clearly: initial access via exposed Docker APIs or vulnerable services, XMRig deployment for immediate revenue, then a pivot to harvesting AWS instance-metadata credentials to reach S3 buckets and spin up additional mining compute at the victim's cloud billing rate. TeamTNT and the competing Kinsing group both script automatic removal of each other's miners on the same host, which is itself a detection opportunity: a burst of process-kill activity immediately followed by a new systemd service is a stronger signal than either behaviour alone. For a defender, resource hijacking findings on a server are worth treating as evidence of a broader compromise, not just a nuisance to clean up.

Detection Strategies

The following detection strategies help SOC analysts identify Resource Hijacking activity. These methods apply across SIEM, XDR environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

EQL
file where host.os.type == "linux" and event.type == "creation" and
  (
    file.name : ("moneroocean_miner.service", "c3pool_miner.service", "pnsd.service", "apache4.service", "pastebin.service", "xvf.service")
    or (process.executable : "/usr/local/share/aliyun-assist/*/aliyun-service" and file.name : "aliyun.service")
  )

Elastic's 'Suspicious Mining Process Creation Event' rule, which catches the systemd unit files that known Linux cryptojacking worms drop to persist their miner across reboots.

other
FROM metrics-*
| WHERE system.process.cpu.total.norm.pct >= 0.9 and process.name is not null
| STATS first_seen = MIN(@timestamp), hosts = COUNT_DISTINCT(agent.id) BY process.name
| EVAL minutes_old = DATE_DIFF("minute", first_seen, NOW())
| WHERE minutes_old <= 6 and hosts == 1

Mirrors Elastic's 'Newly Observed Process Exhibiting High CPU Usage' analytic: a process pegging 90%+ CPU that has existed for under six minutes on exactly one host, the pattern a freshly dropped miner produces before anyone notices the load.

Simulated example generated by SOCSimulator Research
Timestamp: 2026-07-14T02:41:09.331Z
DeviceName: WEB-PROD-04.corp.local
FileName: kworkerd
ProcessCommandLine: ./kworkerd -o pool.supportxmr.com:443 -u 4AeUv1234...abcd -p x --tls --cpu-max-threads-hint=90
InitiatingProcessFileName: cron
AccountName: www-data
CPUUtilizationPercent: 98

Tuning and false positives

Legitimate workloads spike CPU too: video transcoding, scientific computing, batch ETL jobs, backup compression, and CI/CD build agents can all pin cores near 100% for extended periods. A first-seen-process-plus-high-CPU rule alone will catch a lot of that, especially on build servers and data-science hosts where new binaries appear routinely as part of normal deployment.

The differentiator is destination and command-line shape, not CPU percentage. A legitimate render job doesn't open a Stratum connection to a mining pool domain, and a backup process doesn't take --algo= or --coin=monero as arguments. Allow-list your known batch-compute and CI hosts for the CPU-spike rule, then require the DNS-to-mining-pool or command-line-pattern match to fire regardless of host, since that combination has almost no benign explanation. For cloud environments, tie the alert to unexpected instance-type families (a webapp account suddenly launching GPU instances) rather than raw compute spend, which swings normally with legitimate scaling events.

Example Alerts

These realistic alert examples show what Resource Hijacking looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

HighXDR

Unseen Process Sustaining 98% CPU on WEB-PROD-04

A process named kworkerd (masquerading as a kernel thread) first appeared on WEB-PROD-04 six minutes ago and has held 98% CPU on a single core since. Its command line includes -o pool.supportxmr.com:443 -u 4AeUv... and it was spawned from a cron entry added the same day.

MediumSIEM

DNS Lookups to Monero Mining Pool Domains

Proxy DNS logs show FS-02.corp.local resolving minexmr.com and nanopool.org 40 times over 20 minutes, with no corresponding HTTP traffic to those domains, consistent with a stratum miner doing pool failover.

CriticalXDR

New systemd Mining Service on Docker Host

A new unit file c3pool_miner.service was created on docker-node-03 and enabled via systemctl, chained from a shell script that first killed three competing miner processes, the signature cleanup behaviour of TeamTNT/Kinsing-style cryptojacking worms.

Responding to Resource Hijacking

First, confirm what's actually running: pull the full command line and binary hash, check whether the process was signed or matches a known package, and see whether the DNS or connection destination resolves to a documented mining pool. If the binary is XMRig or a renamed fork with a stratum:// URI, you're not debating intent. Next, check how it got there: a new cron entry, a new systemd unit, a container image pulled from an unfamiliar registry, or a webshell dropped through a known CVE all tell you whether this is an isolated drop or a symptom of a wider compromise.

Kill the process and remove its persistence (cron entry, systemd unit, container) once you've captured the artifacts you need for the investigation; miners rarely have anti-forensic tripwires, so there's little cost to acting immediately versus waiting. If the host is a cloud instance, rotate any IAM credentials the instance could reach through metadata before you consider the incident closed, since resource hijacking is frequently the visible symptom of a credential compromise that also grants broader account access. Escalate to a full compromise investigation, not just a cleanup ticket, whenever the miner shows up alongside worm-style behaviour (killing competing processes, scanning for other hosts) or on any system that shouldn't have external network egress at all.

Frequently Asked Questions

How do SOC analysts detect Resource Hijacking?
Detection centers on SIEM, XDR telemetry for the impact phase of the attack. Baseline per-host CPU and GPU utilization, then alert on a previously-unseen process pinning a core near 100% for more than five minutes; a first-seen process with sustained high CPU is one of the strongest cryptomining tells you have. Watch DNS and proxy logs for lookups to known Monero mining pool domains such as minexmr.com, supportxmr.com, nanopool.org, and 2miners.com, and flag any resolution that isn't followed by a normal web session.
What does a Resource Hijacking alert look like?
A representative XDR detection is "Unseen Process Sustaining 98% CPU on WEB-PROD-04" (high severity): A process named kworkerd (masquerading as a kernel thread) first appeared on WEB-PROD-04 six minutes ago and has held 98% CPU on a single core since. Its command line includes -o pool.supportxmr.com:443 -u 4AeUv... and it was spawned from a cron entry added the same day.
Which tools detect Resource Hijacking, and how can I practice?
Resource Hijacking (T1496) is best surfaced with SIEM, XDR telemetry, which exposes the impact signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.
Glossary

What is Ransomware? SOC Glossary

Ransomware is malware that encrypts victim data or systems and demands payment, typically cryptocurrency, for the decryp…

Read more
Glossary

What is Incident Response? SOC Glossary

Incident response (IR) is the structured, repeatable process an organization follows before, during, and after a securit…

Read more
Glossary

What is Containment? SOC Glossary

Containment is the incident response phase focused on limiting the spread and impact of a confirmed security incident: i…

Read more
Glossary

What is Recovery? SOC Glossary

Recovery is the final phase of the incident response lifecycle, where affected systems are restored to normal, validated…

Read more
Career Path

Incident Responder Career Guide: Salary & Skills

Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…

Read more
Career Path

SOC Manager Career Guide: Salary & Skills

SOC Managers run the operation. You own staffing, playbook development, tool selection, performance metrics, and executi…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Glossary

SOC Glossary: Security Operations Terminology

Complete glossary of Security Operations Center terminology for aspiring SOC analysts.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more