Skip to content
WETNav
SecurityObject Access

Event ID 4661: A handle to an object was requested

A handle to an object was requested (SAM Server object).

Channel
Security
Logged by default
No
Written on
Any host
Volume
High
Audit subcategory
Directory Service Access
Needs a SACL
Yes

To have this event

  • Enable Directory Service Access: auditpol /set /subcategory:"Directory Service Access" /success:enable /failure:enable

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

SubjectUserNameAccount requesting the handle
SubjectDomainNameDomain of the account
SubjectLogonIdLogon ID for correlation
ObjectServerSubsystem (SAM)
ObjectTypeType of SAM object
ObjectNameName of the SAM object
HandleIdHandle ID for correlation
ProcessNameProcess requesting the handle
ProcessIdProcess ID
AccessMaskAccess rights requested
Have one of these events? Paste it into the decoder

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4661)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 4661 mean?
A handle to an object was requested (SAM Server object). It is written to the Windows Security log (Security).
Is event 4661 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Directory Service Access" Advanced Audit Policy subcategory (DS Access). It also requires a SACL on the audited object.

A handle to an object was requested (SAM Server object). Needs the "Directory Service Access" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.