This hunt identifies adversary activity involving the five specific indicators of compromise linked to the RatonRAT remote access trojan within Azure Sentinel logs. Proactively hunting for these signatures is critical because early detection of this RAT enables the SOC team to isolate compromised endpoints before attackers can establish persistent command-and-control channels or exfiltrate sensitive data.
Malware Family: RatonRAT Total IOCs: 5 IOC Types: sha256_hash, md5_hash, ip:port, sha1_hash
| Type | Value | Threat Type | First Seen | Confidence |
|---|---|---|---|---|
| ip:port | 158[.]160[.]75[.]185:40644 | botnet_cc | 2026-06-29 | 100% |
| md5_hash | 4db7b73a3650b98b99aa282bf1e16cc1 | payload | 2026-06-29 | 95% |
| sha256_hash | 16aa5e9cd33302fb4bba5f5fe61b9dcef4e6e1a777098985eca17e5a6f075234 | payload | 2026-06-29 | 95% |
| sha1_hash | 3f762a0e0d991b182032fcf13cb94c75a61fe47b | payload | 2026-06-29 | 95% |
| ip:port | 81[.]177[.]49[.]127:24378 | botnet_cc | 2026-06-29 | 100% |
// Hunt for network connections to known malicious IPs
// Source: ThreatFox - RatonRAT
let malicious_ips = dynamic(["81.177.49.127", "158.160.75.185"]);
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(["81.177.49.127", "158.160.75.185"]);
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 - RatonRAT
let malicious_hashes = dynamic(["4db7b73a3650b98b99aa282bf1e16cc1", "16aa5e9cd33302fb4bba5f5fe61b9dcef4e6e1a777098985eca17e5a6f075234", "3f762a0e0d991b182032fcf13cb94c75a61fe47b"]);
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 specific false positive scenarios for the ThreatFox: RatonRAT IOCs detection rule, tailored for an enterprise environment:
Endpoint Protection Scanning of Quarantined Archives
C:\Quarantine directory. This directory contains archived versions of legacy applications and known benign files that happen to share hash values with RatonRAT IOCs due to common open-source libraries (e.g., specific versions of libcurl or openssl) embedded within them.\Quarantine\, \Temp\, and \Staging\. Additionally, filter out alerts where the process name is the EDR scanner itself (e.g., C:\Program Files\CrowdStrike\fs.exe or MsMpEng.exe) rather than a user-facing application.Software Deployment via Configuration Management
Ansible.exe, ccmexec.exe, TaskScheduler) and restrict the rule to trigger only on non-administrative user sessions, or exclude specific IP ranges associated with internal patch management servers.Scheduled Backup and Snapshot Operations