This rule detects the presence of known XMRIG indicators, signaling that an adversary has likely deployed a Monero cryptocurrency miner to exploit compute resources for financial gain. Proactively hunting for these IOCs in Azure Sentinel allows the SOC team to identify and isolate compromised workloads before the miner can fully saturate CPU resources or establish persistence mechanisms.
Malware Family: XMRIG Total IOCs: 2 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 46[.]8[.]228[.]191:9009 | payload_delivery | 2026-09-03 | 100% |
| ip:port | 216[.]9[.]226[.]120:9009 | payload_delivery | 2026-09-03 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - XMRIG
let malicious_ips = dynamic(["46.8.228.191", "216.9.226.120"]);
CommonSecurityLog
| where DestinationIP in (malicious_ips) or SourceIP in (malicious_ips)
| project TimeGenerated, SourceIP, DestinationIP, DestinationPort, DeviceAction, Activity
| order by TimeGenerated desc
// Hunt in Defender for Endpoint network events
let malicious_ips = dynamic(["46.8.228.191", "216.9.226.120"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
xmrig binary to a staging server to benchmark CPU performance for a new microservice deployment, using the standard GitHub release URL or a known internal mirror.
10.0.0.0/8 range and the user account belongs to the devops-benchmark security group, or exclude file paths ending in /benchmarks/ or /tmp/xmrig-test/.powershell.exe or pwsh.exe and the command line contains specific flags like -File .\update-build-agent.ps1, or exclude network connections to the internal artifact repository domain (e.g., artifacts.corp.local).sec-test-runner.
sec-test-runner or the host is tagged with the Azure/VM tag purpose=red-team-test, or exclude file executions where the working directory is /opt/red-team/xmrig/.