This hunt targets adversary behavior involving the execution of known ValleyRAT remote access trojan indicators to establish persistent command and control channels within the network. Proactively hunting for these specific IOCs in Azure Sentinel is critical because early detection of this high-severity threat prevents lateral movement and data exfiltration before the malware can fully embed its malicious capabilities.
Malware Family: ValleyRAT Total IOCs: 2 IOC Types: ip:port, url
| 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 for the ThreatFox: ValleyRAT IOCs detection rule, tailored for an enterprise environment:
Endpoint Protection Scanning of Legacy Archives
C:\Shared\Legacy_Projects directory. Additionally, exclude the process MsMpEng.exe (Microsoft Defender) and CrowdStrikeService.exe from triggering this alert when accessing files with a “Known Good” reputation score in the threat intelligence platform.IT Admin Deployment of Remote Management Tools
svc-deploy-agent) and the specific executable path of the management tool (e.g., C:\Program Files\Ivanti\Agent\bin\deploy.exe). Configure the detection logic to suppress alerts originating from these trusted service accounts during standard business hours (08:00–17:00) when deployment windows are active.