This hunt identifies potential ValleyRAT infections by matching known indicators of compromise against Azure Sentinel telemetry, targeting the specific remote access trojan used for initial access and lateral movement. Proactively hunting for these IOCs allows the SOC team to detect and isolate compromised assets before the adversary can establish persistent footholds or exfiltrate sensitive data.
Malware Family: ValleyRAT Total IOCs: 2 IOC Types: ip:port
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 202[.]61[.]85[.]153:7800 | botnet_cc | 2026-09-16 | 100% |
| ip:port | 202[.]61[.]85[.]153:7811 | botnet_cc | 2026-09-16 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - ValleyRAT
let malicious_ips = dynamic(["202.61.85.153"]);
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(["202.61.85.153"]);
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 |
Scenario: An IT administrator manually deploys a legacy Java-based utility or internal tool that shares a specific file hash or memory pattern with ValleyRAT due to similar obfuscation techniques or shared dependencies (e.g., a custom-built internal dashboard using a common open-source library).
C:\CorpTools\InternalDash\app.exe) or the specific SHA-256 hash if the file is verified as benign and signed by the internal corporate code-signing certificate.Scenario: A scheduled maintenance job runs a third-party cleanup or disk optimization tool (e.g., CCleaner, Advanced SystemCare, or a custom PowerShell script) that temporarily creates temporary files or memory allocations matching one of the ValleyRAT IOCs (such as specific registry keys or file names in %TEMP%).
CCleaner64.exe, powershell.exe with a specific script path like C:\Scripts\Maintenance\Cleanup.ps1) and the action is limited to file deletion or registry cleanup in standard temp directories.Scenario: A developer testing a new internal application on a jump host or dev VM uses a debug build that includes a test DLL or configuration file with a name or hash similar to ValleyRAT’s known IOCs (e.g., a test module named valley_test.dll or a config file with a specific GUID).
Dev or Test in their AD group or CMDB attribute, or whitelist the specific file path if it resides in a known development directory (e.g., C:\Dev\Projects\ProjectX\bin\Debug\).Scenario: A security