This rule detects the presence of known XMRIG indicators, which signals an adversary attempting to deploy a popular open-source cryptocurrency miner to covertly harvest computational resources and generate revenue. Proactively hunting for these IOCs in Azure Sentinel allows the SOC team to identify and isolate compromised assets before the miner can fully establish persistence or consume excessive cloud resources, thereby reducing both financial impact and the risk of further lateral movement.
Malware Family: XMRIG Total IOCs: 3 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 165[.]154[.]227[.]8:22 | botnet_cc | 2026-09-21 | 85% |
| ip:port | 165[.]154[.]162[.]74:22 | botnet_cc | 2026-09-21 | 85% |
| ip:port | 36[.]69[.]157[.]49:22 | botnet_cc | 2026-09-21 | 80% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - XMRIG
let malicious_ips = dynamic(["36.69.157.49", "165.154.162.74", "165.154.227.8"]);
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(["36.69.157.49", "165.154.162.74", "165.154.227.8"]);
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 |
xmr-stak or a compatible XMRIG build for CPU-based stress testing or benchmarking new server hardware before deployment.
stress-ng, iperf3, or a specific benchmarking script (e.g., benchmark_cpu.sh), or exclude executions from the /opt/benchmarks/ directory.IT-Testers or Security-Validation group, or exclude executions from temporary directories like C:\Users\Public\Downloads\ or /tmp/ if the user is in a test group.C:\Program Files\InternalTools\compressor.exe) if it is known to be a signed internal tool, or exclude scheduled tasks named DailyMediaProcess that execute this specific binary.env=dev or env=test in your CMDB or asset management system, or exclude processes