This hunt detects adversary behavior involving the deployment of XMRIG cryptocurrency mining tools to establish a persistent presence and leverage victim resources for covert crypto-mining operations. A SOC team should proactively hunt for these indicators in Azure Sentinel because early identification of XMRIOCs enables the rapid isolation of compromised assets before significant computational resource exhaustion or potential lateral movement occurs.
Malware Family: XMRIG Total IOCs: 3 IOC Types: ip:port, domain
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 156[.]229[.]165[.]166:80 | botnet_cc | 2026-07-30 | 100% |
| ip:port | 107[.]175[.]114[.]96:80 | botnet_cc | 2026-07-30 | 100% |
| domain | download.stopbanningmydomains.ru | botnet_cc | 2026-07-30 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - XMRIG
let malicious_ips = dynamic(["156.229.165.166", "107.175.114.96"]);
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(["156.229.165.166", "107.175.114.96"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
// Hunt for DNS queries to known malicious domains
// Source: ThreatFox - XMRIG
let malicious_domains = dynamic(["download.stopbanningmydomains.ru"]);
DnsEvents
| where Name has_any (malicious_domains)
| project TimeGenerated, Computer, Name, IPAddresses, QueryType
| order by TimeGenerated desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
DnsEvents | Ensure this data connector is enabled |
Here are the false positive scenarios and corresponding exclusions for the ThreatFox: XMRIG IOCs detection rule:
Scenario 1: Legitimate Cryptocurrency Mining on Dedicated Nodes
xmrig for internal cryptocurrency mining initiatives or proof-of-work experiments. These servers consistently generate the XMRIG process and network IOCs during business hours.Purpose=Compute-Mining. Additionally, exclude the executable path C:\Program Files\XMRig\xmrig.exe if it is signed by the official XMRIG developer certificate.Scenario 2: Scheduled Maintenance and Backup Jobs
01:30 to 04:30) for the specific backup server group. Alternatively, filter out alerts where the process parent is identified as Task Scheduler Service (svchost.exe -k netsvcs) and the command line arguments contain the specific script identifier -script "StressTest.ps1".Scenario 3: Development Environment Testing