LoFP LoFP / rdp gateways may have unusually high amounts of traffic from all other hosts' rdp applications in the network.any legitimate rdp traffic using wrong/expired credentials will be also detected as a false positive.

Techniques

Sample rules

Remote Desktop Network Bruteforce

Description

The following analytic has been deprecated in favor of “Windows Remote Desktop Network Bruteforce Attempt”. The following analytic identifies potential Remote Desktop Protocol (RDP) brute force attacks by monitoring network traffic for RDP application activity. This query detects potential RDP brute force attacks by identifying source IPs that have made more than 10 successful connection attempts to the same RDP port on a host within a one-hour window. The results are presented in a table that includes the source and destination IPs, destination port, number of attempts, and the times of the first and last connection attempts, helping to prioritize IPs based on the intensity of activity.

Detection logic


| tstats `security_content_summariesonly` count, min(_time) as firstTime, max(_time) as lastTime from datamodel=Network_Traffic where (All_Traffic.app=rdp OR All_Traffic.dest_port=3389) AND All_Traffic.action=allowed by All_Traffic.src, All_Traffic.dest, All_Traffic.dest_port All_Traffic.user All_Traffic.vendor_product  
| `drop_dm_object_name("All_Traffic")`  
| eval duration=lastTime-firstTime  
| where count > 10 AND duration < 3600  
| `security_content_ctime(firstTime)`  
| `security_content_ctime(lastTime)`  
| `remote_desktop_network_bruteforce_filter`

Windows Remote Desktop Network Bruteforce Attempt

Description

The following analytic identifies potential Remote Desktop Protocol (RDP) brute force attacks by monitoring network traffic for RDP application activity. This query detects potential RDP brute force attacks by identifying source IPs that have made more than 10 connection attempts to the same RDP port on a host within a one-hour window. The results are presented in a table that includes the source and destination IPs, destination port, number of attempts, and the times of the first and last connection attempts, helping to prioritize IPs based on the intensity of activity.

Detection logic


| tstats `security_content_summariesonly` count, min(_time) as firstTime, max(_time) as lastTime values(Al_Traffic.action) as action  from datamodel=Network_Traffic where (All_Traffic.app=rdp OR All_Traffic.dest_port=3389)  by All_Traffic.src, All_Traffic.dest, All_Traffic.dest_port All_Traffic.user All_Traffic.vendor_product  
| `drop_dm_object_name("All_Traffic")`  
| eval duration=lastTime-firstTime  
| where count > 10 AND duration < 3600  
| `security_content_ctime(firstTime)`  
| `security_content_ctime(lastTime)`  
| `windows_remote_desktop_network_bruteforce_attempt_filter`