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.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account requesting the handle |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID for correlation |
| ObjectServer | Subsystem (SAM) |
| ObjectType | Type of SAM object |
| ObjectName | Name of the SAM object |
| HandleId | Handle ID for correlation |
| ProcessName | Process requesting the handle |
| ProcessId | Process ID |
| AccessMask | Access rights requested |
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.
Techniques
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA 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.