RDP access denied (not for NPS/RADIUS — this is direct DC-based RDP deny). AccountName and ClientAddress are key.
RDP access denials from external IPs indicate brute force or unauthorized access attempts. High volume from single IP = automated attack.
Alert: >5 RDP denials from single ClientAddress. Alert: admin accounts denied on servers they should not be accessing.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Credential Access | Brute Force (T1110) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4825 // A user was denied the access to Remote Desktop
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4825
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A user was denied the access to Remote Desktop — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A user was denied the access to Remote Desktop. RDP access denied (not for NPS/RADIUS — this is direct DC-based RDP deny). AccountName and ClientAddress are key.
Event 4825 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Logon/Logoff' subcategory (Success and/or Failure).
Event 4825 is associated with: Brute Force (T1110).
Alert: >5 RDP denials from single ClientAddress. Alert: admin accounts denied on servers they should not be accessing.