Event ID 4662: An operation was performed on an object
An operation was performed on an object (e.g., AD object modified).
- Channel
- Security
- Logged by default
- No
- Written on
- Domain controller
- 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 - A SACL on the AD object. For DCSync visibility, audit 'Control access' for Everyone on the domain root object.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
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=4662)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
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.
Also relevant, depending on field values
- T1482 Domain Trust Discovery
- T1087.002 Domain Account
- T1069.002 Domain Groups
- T1484 Domain or Tenant Policy Modification
- T1484.001 Group Policy Modification
- T1484.002 Trust Modification
- T1098 Account Manipulation
- T1098.007 Additional Local or Domain Groups
- T1207 Rogue Domain Controller
- T1134.005 SID-History Injection
Common questions
- What does Windows event ID 4662 mean?
- An operation was performed on an object (e.g., AD object modified). It is written to the Windows Security log (Security).
- Is event 4662 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.
- Where is event 4662 recorded?
- In the Security channel on the domain controller.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderAn operation was performed on an object (e.g., AD object modified). Needs the "Directory Service Access" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.