This hunt detects adversary activity involving known indicators of compromise (IOCs) linked to the ValleyRAT remote access trojan, which is frequently used for credential theft and lateral movement within enterprise networks. A proactive search in Azure Sentinel is critical because ValleyRAT often establishes persistent footholds that may evade standard signature-based detections until significant data exfiltration or privilege escalation occurs.
Malware Family: ValleyRAT Total IOCs: 2 IOC Types: url, ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| url | hxxp://aidrmvo.cn/getinstall64 | botnet_cc | 2026-07-21 | 100% |
| ip:port | 206[.]238[.]20[.]21:6681 | botnet_cc | 2026-07-21 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["206.238.20.21"]);
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(["206.238.20.21"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
// Hunt for access to known malicious URLs
// Source: ThreatFox - ValleyRAT
let malicious_urls = dynamic(["http://aidrmvo.cn/getinstall64"]);
UrlClickEvents
| where Url has_any (malicious_urls)
| project Timestamp, AccountUpn, Url, ActionType, IsClickedThrough
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
UrlClickEvents | Ensure this data connector is enabled |
Here are specific false positive scenarios and corresponding exclusions for the ThreatFox: ValleyRAT IOCs detection rule in an enterprise environment:
Scenario: Scheduled Antivirus Definition Updates via Third-Party Agents
C:\Program Files\CrowdStrike\FalconSensor\csfalcon.exe and its child processes, specifically filtering out events where the parent process is WindowsUpdate or DefenderService.Scenario: Admin-Driven Patch Deployment via Configuration Management Tools
HKLM\Software or writing to the AppData directory).DOMAIN\SYSADMIN, DOMAIN\SCCM_SERVICE) and the execution source path matches the central management server’s distribution point, such as \\SCCM-SRV01\D$.Scenario: Legacy Business Application Auto-Updates