This detection rule identifies adversary activity associated with the ValleyRAT remote access trojan by monitoring for specific Indicators of Compromise (IOCs) such as malicious file hashes and network connections. Proactively hunting for these signals in Azure Sentinel is critical to rapidly isolate compromised endpoints before attackers can establish persistence or exfiltrate sensitive data through this known threat actor’s infrastructure.
Malware Family: ValleyRAT Total IOCs: 3 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 154[.]82[.]93[.]242:778 | botnet_cc | 2026-07-19 | 100% |
| ip:port | 202[.]61[.]84[.]99:9123 | botnet_cc | 2026-07-19 | 75% |
| ip:port | 202[.]61[.]84[.]99:9122 | botnet_cc | 2026-07-19 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["154.82.93.242", "202.61.84.99"]);
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.82.93.242", "202.61.84.99"]);
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 5 specific false positive scenarios for the ThreatFox: ValleyRAT IOCs detection rule in an enterprise environment, including suggested filters and exclusions:
Endpoint Management Software Updates
10.x.x.x range) and destination URLs containing specific vendor domains (e.g., *.microsoft.com, *.tenable.com). Additionally, whitelist the specific SHA-256 hashes of the official agent update packages.Automated Patch Deployment Jobs
svc-patch-deploy) and restrict alerts to non-business hours (01:00 – 05:00 local time) where these jobs are known to execute.Cloud Backup and Synchronization Services