A user right (privilege) was assigned to an account. Privilege and AccountName are key.
Assigning SeDebugPrivilege, SeTcbPrivilege, or other sensitive rights to non-admin accounts grants them persistent attack capabilities.
Alert: any sensitive privilege assigned to non-expected accounts. Alert: changes outside change management windows.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Privilege Escalation | Access Token Manipulation (T1134) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4704 // A user right was assigned
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4704
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A user right was assigned — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A user right was assigned. A user right (privilege) was assigned to an account. Privilege and AccountName are key.
Event 4704 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Policy Change' subcategory (Success and/or Failure).
Event 4704 is associated with: Access Token Manipulation (T1134).
Alert: any sensitive privilege assigned to non-expected accounts. Alert: changes outside change management windows.