Event ID 4658 — The handle to an object was closed.
Description
The handle to an object was closed.
Message #
Fields #
| Name | Description |
|---|---|
Security_ID | [Subject] Security ID. |
Account_Name | [Subject] Account Name. |
Account_Domain | [Subject] Account Domain. |
Logon_ID | [Subject] Logon ID. |
Object_Server | [Object] Object Server. |
Handle_ID | [Object] Handle ID. |
Process_ID | [Process Information] Process ID. |
Process_Name | [Process Information] Process Name. |
Example Event #
{
"system": {
"provider": "Microsoft-Windows-Security-Auditing",
"guid": "54849625-5478-4994-A5BA-3E3B0328C30D",
"event_source_name": "",
"event_id": 4658,
"version": 0,
"level": 0,
"task": 12804,
"opcode": 0,
"keywords": 9232379236109516800,
"time_created": "2017-06-12T23:39:43.512986Z",
"event_record_id": 8076,
"correlation": {},
"execution": {
"process_id": 4,
"thread_id": 252
},
"channel": "Security",
"computer": "2012r2srv.maincorp.local",
"security": {
"user_id": ""
}
},
"event_data": {
"SubjectUserSid": "S-1-5-21-2634088540-571122920-1382659128-500",
"SubjectUserName": "Administrator",
"SubjectDomainName": "MAINCORP",
"SubjectLogonId": "0x432c8",
"ObjectServer": "Security Account Manager",
"HandleId": "0xc9774b43b0",
"ProcessId": "0x1f0",
"ProcessName": "C:\\Windows\\System32\\lsass.exe"
}
}
Detection Patterns #
References #
- Microsoft Learn https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4658
- Microsoft Learn Audit Policy https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-file-system
- Ultimate Windows Security https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4658
- Example event sourced from https://github.com/Yamato-Security/hayabusa-sample-evtx