Skip to content

Windows Event ID 4658: The handle to an object was closed

Written when a handle to an object is closed. It carries little meaning on its own; it is a supporting event for knowing how long a handle was open (its hold time).

Overview

The subcategories are Audit File System, Audit Handle Manipulation, Audit Kernel Object, Audit Registry, and Audit Removable Storage. It is generated when the handle to a file, registry, or kernel object is closed. It is recorded only if Success auditing for Audit Handle Manipulation is enabled.

How it is triggered

  • When a handle opened by 4656 (handle request) / 4661 is closed.
  • It ties to the corresponding open event via Handle ID.

Security review points

  • It has almost no security meaning on its own. Use it paired with the corresponding 4656 when you want to know a handle’s hold time.
  • In investigating access to sensitive objects, it is material that completes the “when opened, when closed” picture.

Notes for log review

  • Enabling Audit Handle Manipulation records a huge number of handle closes and is very noisy. Normally do not leave it on; enable it narrowly for specific investigations.
  • Do not alert on it alone; treat it as a supplement to actual-access events such as 4656/4663.

MITRE ATT&CK mapping

No technique maps on its own. Pair it with 4656 to fill in how long access lasted.

Mapping as of ATT&CK v19.2. To search by technique, see the ATT&CK reverse lookup.

Detection rules

SigmaHQ has 1 public detection rule that uses this event ID as a condition.

RuleTypeSeverity
Potential Secure Deletion with SDeleteSigmaMedium

Rules are collected from SigmaHQ r2026-07-01 and from Azure-Sentinel as of 2026-10-09, limited to those whose conditions include this event ID. Sentinel rules are limited to those that query the SecurityEvent or WindowsEvent table. “Threat-specific” rules target a particular threat group or malware, and “needs setup” rules require values for your environment. Severity is the value each rule’s author assigned.

Key fields

FieldMeaning
Handle IDThe closed handle; the key for matching the open side
Object ServerThe subsystem managing the object (such as Security). The object name is not included, so match it with 4656 by Handle ID
Process NameThe process that closed the handle

References