Event ID 4765 — SID History was added to an account.
Description
SID History was added to an account.
Message #
Fields #
| Name | Description |
|---|---|
Account_Name | [Source Account] Account Name. |
Security_ID | [Source Account] Security ID. |
Account_Name | [Target Account] Account Name. |
Account_Domain | [Target Account] Account Domain. |
Security_ID | [Target Account] Security ID. |
Security_ID | [Subject] Security ID. |
Account_Name | [Subject] Account Name. |
Account_Domain | [Subject] Account Domain. |
Logon_ID | [Subject] Logon ID. |
Privileges | [Additional Information] Privileges. Privilege constants reference |
SID_List | [Additional Information] SID List. |
Example Event #
{
"system": {
"provider": "Microsoft-Windows-Security-Auditing",
"guid": "54849625-5478-4994-A5BA-3E3B0328C30D",
"event_source_name": "",
"event_id": 4765,
"version": 0,
"level": 0,
"task": 13824,
"opcode": 0,
"keywords": 9232379236109516800,
"time_created": "2017-06-12T23:39:43.512986Z",
"event_record_id": 8075,
"correlation": {},
"execution": {
"process_id": 496,
"thread_id": 1696
},
"channel": "Security",
"computer": "2012r2srv.maincorp.local",
"security": {
"user_id": ""
}
},
"event_data": {
"SourceUserName": "maincorp.local\\Domain Admins",
"SourceSid": "S-1-5-21-2634088540-571122920-1382659128-512",
"TargetUserName": "labuser",
"TargetDomainName": "MAINCORP",
"TargetSid": "S-1-5-21-2634088540-571122920-1382659128-1104",
"SubjectUserSid": "S-1-5-21-2634088540-571122920-1382659128-500",
"SubjectUserName": "Administrator",
"SubjectDomainName": "MAINCORP",
"SubjectLogonId": "0x432c8",
"PrivilegeList": "-",
"SidList": "-"
}
}
Detection Patterns #
Community Notes #
May indicate DCShadow or similar lateral movement attacks.
References #
- Microsoft Learn https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4765
- Microsoft Learn Audit Policy https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-user-account-management
- Ultimate Windows Security https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4765
- Example event sourced from https://github.com/Yamato-Security/hayabusa-sample-evtx