This hunt detects adversary activity involving known indicators of compromise (IOCs) from the ValleyRAT remote access trojan to identify potential lateral movement or data exfiltration attempts within the environment. A SOC team should proactively hunt for these signatures in Azure Sentinel because ValleyRAT is frequently used by threat actors to establish persistent footholds, and early detection allows for rapid containment before broader network compromise occurs.
Malware Family: ValleyRAT Total IOCs: 2 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 134[.]122[.]204[.]55:8888 | botnet_cc | 2026-08-08 | 50% |
| ip:port | 134[.]122[.]204[.]55:6666 | botnet_cc | 2026-08-08 | 50% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["134.122.204.55"]);
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(["134.122.204.55"]);
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 the documented false positive scenarios and corresponding exclusions for the ThreatFox: ValleyRAT IOCs detection rule:
Scenario: Legitimate Remote Administration via TeamViewer or AnyDesk
TeamViewer and AnyDesk application hashes to bypass this detection for outbound connections to their official C2 domains (e.g., *.teamviewer.com, *.anydesk.com).Scenario: Scheduled Backup Jobs Utilizing Cloud Storage
DOMAIN\BackupSvc) during their defined maintenance windows (e.g., 02:00–04:00 local time), or whitelist the specific process paths of these backup agents.Scenario: Software Update Mechanisms from Vendor Ecosystems