A logon right or system access right was granted to an account.
Granting SeNetworkLogonRight to backdoor accounts enables network access. Granting SeInteractiveLogonRight to service accounts enables interactive logon for privilege escalation.
Alert: logon rights granted to unexpected accounts. Monitor for addition of high-privilege rights.
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 == 4717 // System security access was granted to an account
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4717
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# System security access was granted to an account — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
System security access was granted to an account. A logon right or system access right was granted to an account.
Event 4717 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Policy Change' subcategory (Success and/or Failure).
Event 4717 is associated with: Access Token Manipulation (T1134).
Alert: logon rights granted to unexpected accounts. Monitor for addition of high-privilege rights.