This detection rule identifies potential Ghost RAT activity by correlating three specific Indicators of Compromise (IOCs) known to be used by this remote access tool for command and control or lateral movement. Proactive hunting in Azure Sentinel is critical because Ghost RAT often operates with low visibility, allowing adversaries to establish persistent footholds that can lead to significant data exfiltration if not identified early through IOC-based correlation.
Malware Family: Ghost RAT Total IOCs: 3 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 137[.]220[.]158[.]91:8080 | botnet_cc | 2026-08-31 | 99% |
| ip:port | 8[.]210[.]93[.]39:22 | botnet_cc | 2026-08-31 | 99% |
| ip:port | 47[.]83[.]128[.]111:80 | botnet_cc | 2026-08-31 | 99% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - Ghost RAT
let malicious_ips = dynamic(["47.83.128.111", "8.210.93.39", "137.220.158.91"]);
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(["47.83.128.111", "8.210.93.39", "137.220.158.91"]);
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 |
Here are 4 specific false positive scenarios for the ThreatFox: Ghost RAT IOCs detection rule, including suggested filters and exclusions tailored for an enterprise environment:
Scenario: Endpoint Security Agent Scheduled Updates
10.20.5.0/24) and filter out processes named FalconService.exe or MsMpEng.exe when they initiate connections to known update endpoints during maintenance windows (e.g., 02:00–04:00 UTC).Scenario: Third-Party Backup Solution Connectivity
VeeamService or RubrikAgent) and exclude network flows where the destination port is 8443 or 9000, provided the source process hash matches the known good signature of the installed backup agent version.Scenario: IT Admin Remote Management Sessions