This hunt targets adversary activity involving specific indicators of compromise linked to the ValleyRAT remote access trojan, which is known for establishing persistent command-and-control channels and exfiltrating sensitive data. Proactively hunting for these IOCs in Azure Sentinel is critical because early detection of this high-severity threat allows the SOC team to isolate compromised endpoints before lateral movement or significant data loss occurs.
Malware Family: ValleyRAT Total IOCs: 2 IOC Types: domain, ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 103[.]119[.]3[.]160:6666 | botnet_cc | 2026-07-18 | 75% |
| domain | ijt1.com | botnet_cc | 2026-07-18 | 75% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["103.119.3.160"]);
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(["103.119.3.160"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
// Hunt for DNS queries to known malicious domains
// Source: ThreatFox - ValleyRAT
let malicious_domains = dynamic(["ijt1.com"]);
DnsEvents
| where Name has_any (malicious_domains)
| project TimeGenerated, Computer, Name, IPAddresses, QueryType
| order by TimeGenerated desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
DnsEvents | Ensure this data connector is enabled |
Here are specific false positive scenarios for the ThreatFox: ValleyRAT IOCs detection rule in an enterprise environment, including suggested filters and exclusions:
Endpoint Protection Scanning of Quarantine Archives
Quarantine or ThreatHistory folders. These directories often contain archived malware samples or historical logs that include ValleyRAT signatures from previous incidents. When the EDR engine re-scans these static files to update their internal threat database, the file hash or network artifact matches the detection rule’s IOCs, triggering an alert despite no active infection.C:\ProgramData\Microsoft\Windows Defender\Quarantine or specific CrowdStrike quarantine paths) and restrict the detection logic to only trigger on files with a “Created” timestamp within the last 24 hours.Software Development Build Pipelines