This detection rule identifies potential Remote Access Trojan (RAT) activity by correlating unknown Indicators of Compromise (IOCs) that may signal early-stage adversary reconnaissance or command-and-control establishment. Proactive hunting for these signals in Azure Sentinel is critical to rapidly isolate compromised endpoints before the RAT establishes persistent access and facilitates lateral movement across the network.
Malware Family: Unknown RAT Total IOCs: 2 IOC Types: ip:port, domain
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 186[.]169[.]76[.]60:5047 | botnet_cc | 2026-08-12 | 75% |
| domain | elpolacopop.dynuddns.com | botnet_cc | 2026-08-12 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - Unknown RAT
let malicious_ips = dynamic(["186.169.76.60"]);
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(["186.169.76.60"]);
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 - Unknown RAT
let malicious_domains = dynamic(["elpolacopop.dynuddns.com"]);
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 documented false positive scenarios and corresponding filters for the ThreatFox: Unknown RAT IOCs rule:
Scenario: Automated Endpoint Protection Updates
FalconSensor.exe, S1Agent.exe) or the Parent Process ID of the update service. Additionally, exclude traffic originating from known internal update servers (e.g., WSUS server IPs) or specific external CDN endpoints used by the vendor.Scenario: IT Admin Deploying New Remote Management Tools
IT_Ops or Helpdesk groups. Alternatively, filter out alerts where the initiating process is a known remote management executable (e.g., beyondtrust-agent.exe, TeamViewer_Service.exe) running under an administrative user context.Scenario: Scheduled PowerShell Script Execution for Asset Discovery
AssetDiscovery.ps1) that queries external APIs