This detection identifies adversary activity involving three specific indicators of compromise linked to the ValleyRAT remote access trojan, which is known for establishing persistent footholds and exfiltrating sensitive data from compromised endpoints. Proactively hunting for these IOCs within Azure Sentinel is critical to rapidly identify early-stage infections before adversaries can leverage their command-and-control infrastructure to escalate privileges or move laterally across the network.
Malware Family: ValleyRAT Total IOCs: 3 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 156[.]225[.]94[.]168:6666 | botnet_cc | 2026-08-05 | 99% |
| ip:port | 161[.]248[.]14[.]209:5223 | botnet_cc | 2026-08-05 | 75% |
| ip:port | 161[.]248[.]14[.]209:5222 | botnet_cc | 2026-08-05 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["161.248.14.209", "156.225.94.168"]);
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(["161.248.14.209", "156.225.94.168"]);
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 specific false positive scenarios and corresponding exclusion strategies for the ThreatFox: ValleyRAT IOCs detection rule in an enterprise environment:
Scenario: Legitimate Remote Management Tools
ccmexec.exe for SCCM) and restrict the rule to exclude traffic originating from known management server subnets (e.g., 10.20.x.x).Scenario: Scheduled Backup or Sync Jobs
VeeamAgent.exe, OneDrive.exe). Alternatively, exclude specific destination IP addresses belonging to the organization’s internal cloud storage gateways.Scenario: Third-Party Security Scanners