This hunt detects adversary activity involving five specific indicators of compromise (IOCs) linked to the ValleyRAT remote access trojan, which are known to facilitate credential theft and lateral movement within compromised networks. The SOC team should proactively search for these IOCs in Azure Sentinel because early identification of ValleyRAT presence allows for immediate containment before attackers can establish persistence or exfiltrate sensitive data.
Malware Family: ValleyRAT Total IOCs: 5 IOC Types: ip:port, sha1_hash, sha256_hash, md5_hash
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 43[.]132[.]212[.]50:661 | botnet_cc | 2026-08-16 | 100% |
| ip:port | 43[.]132[.]212[.]50:662 | botnet_cc | 2026-08-16 | 100% |
| md5_hash | 079d47dd089638b90a5741175e15760f | payload | 2026-08-15 | 95% |
| sha256_hash | aafaddd58c513931655be4a52b11317283b500ef27608a83af45d4e625568d20 | payload | 2026-08-15 | 95% |
| sha1_hash | 4068c64946bc4bafa70fba0bef12fd1568d62441 | payload | 2026-08-15 | 95% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["43.132.212.50"]);
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(["43.132.212.50"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
// Hunt for files matching known malicious hashes
// Source: ThreatFox - ValleyRAT
let malicious_hashes = dynamic(["079d47dd089638b90a5741175e15760f", "aafaddd58c513931655be4a52b11317283b500ef27608a83af45d4e625568d20", "4068c64946bc4bafa70fba0bef12fd1568d62441"]);
DeviceFileEvents
| where SHA256 in (malicious_hashes) or SHA1 in (malicious_hashes) or MD5 in (malicious_hashes)
| project Timestamp, DeviceName, FileName, FolderPath, SHA256, InitiatingProcessFileName
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceFileEvents | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
Here are the false positive scenarios and corresponding exclusion strategies for the ThreatFox: ValleyRAT IOCs detection rule:
Legitimate Enterprise Backup Operations
vbr.exe or commvault.cmd) and restrict the detection scope to exclude the Backup Server Subnet. Alternatively, add the known good SHA-256 hashes of the backup agents to the IOC allow-list.Software Deployment via Configuration Management
ccmexec.exe (SCCM) or ansible-playbook. Additionally, configure the detection logic to ignore events occurring within defined Maintenance Windows (e.g., Sundays 02:00–06:00 UTC) for these specific deployment accounts.Internal Security Scanning and EDR Telemetry