This hunt detects adversary activity involving the deployment of ValleyRAT remote access trojan by monitoring for specific indicators of compromise within the Azure Sentinel environment. Proactively hunting for these IOCs is critical to identify early-stage lateral movement and data exfiltration attempts before they escalate into broader network compromises.
Malware Family: ValleyRAT Total IOCs: 2 IOC Types: ip:port, url
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 95[.]41[.]30[.]246:8443 | botnet_cc | 2026-09-02 | 50% |
| url | hxxps://aidksoflsf.cn:8443/ | botnet_cc | 2026-09-02 | 50% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["95.41.30.246"]);
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(["95.41.30.246"]);
DeviceNetworkEvents
| where RemoteIP in (malicious_ips)
| project Timestamp, DeviceName, RemoteIP, RemotePort, InitiatingProcessFileName, ActionType
| order by Timestamp desc
// Hunt for access to known malicious URLs
// Source: ThreatFox - ValleyRAT
let malicious_urls = dynamic(["https://aidksoflsf.cn:8443/"]);
UrlClickEvents
| where Url has_any (malicious_urls)
| project Timestamp, AccountUpn, Url, ActionType, IsClickedThrough
| order by Timestamp desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DeviceNetworkEvents | Ensure this data connector is enabled |
UrlClickEvents | Ensure this data connector is enabled |
Here are specific false positive scenarios and corresponding filters for the ThreatFox: ValleyRAT IOCs detection rule in an enterprise environment:
Scenario: Endpoint Security Agent Self-Updates
Process Name and Parent Process. Exclude alerts where the process name matches the EDR sensor executable (e.g., csagent.exe, MsMpEng.exe) and the parent process is the specific EDR service manager, provided the file hash matches the latest known good version.Scenario: Scheduled Backup Job Execution
Process Path filter. Exclude alerts where the process path resides within the backup vendor’s installation directory (e.g., C:\Program Files\Veeam\Backup and Replication\...) or matches specific scheduled task names like “Veeam Backup Service”.Scenario: IT Admin Remote Management Sessions