This hunt targets adversary behavior involving the deployment of Nanocore Remote Access Trojans (RAT) by detecting six specific Indicators of Compromise across network and endpoint telemetry. Proactively hunting for these IOCs in Azure Sentinel is critical to identify early-stage lateral movement and command-and-control communications before they escalate into full-scale data exfiltration incidents.
Malware Family: Nanocore RAT Total IOCs: 6 IOC Types: md5_hash, sha1_hash, sha256_hash, ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| md5_hash | 036227aa4ccacd6153de68143e02f001 | payload | 2026-07-18 | 95% |
| sha256_hash | c1d7ce9290ee9a148ea430871f900a44511b8db374dedcb4d417072b54e48d07 | payload | 2026-07-18 | 95% |
| sha1_hash | 746b7fc0665654244961885933decb7c3f7dc3a4 | payload | 2026-07-18 | 95% |
| ip:port | 154[.]203[.]165[.]5:443 | botnet_cc | 2026-07-18 | 100% |
| ip:port | 154[.]94[.]123[.]42:443 | botnet_cc | 2026-07-18 | 100% |
| ip:port | 154[.]94[.]123[.]43:443 | botnet_cc | 2026-07-18 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - Nanocore RAT
let malicious_ips = dynamic(["154.203.165.5", "154.94.123.43", "154.94.123.42"]);
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(["154.203.165.5", "154.94.123.43", "154.94.123.42"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
// Hunt for files matching known malicious hashes
// Source: ThreatFox - Nanocore RAT
let malicious_hashes = dynamic(["036227aa4ccacd6153de68143e02f001", "c1d7ce9290ee9a148ea430871f900a44511b8db374dedcb4d417072b54e48d07", "746b7fc0665654244961885933decb7c3f7dc3a4"]);
DeviceFileEvents
| where SHA256 in (malicious_hashes) or SHA1 in (malicious_hashes) or MD5 in (malicious_hashes)
| project Timestamp, DeviceName, FileName, FolderPath, SHA256, InitiatingProcessFileName
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceFileEvents | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
Here are specific false positive scenarios for the ThreatFox: Nanocore RAT IOCs detection rule, tailored for an enterprise environment:
Endpoint Protection Policy Deployment via SCCM/Intune
ccmexec.exe (SCCM) or IntuneManagementExtension.exe, specifically when communicating with known internal distribution point subnets or Microsoft 365 cloud endpoints.Scheduled Software Inventory and Asset Management Scans
LansweeperAgent.exe or EndpointCentralAgent.exe during their configured maintenance windows (e.g., 02:00–04:00 local time) and restrict scope to the specific asset management server IP addresses.Enterprise Browser Extension Updates