SecurityPolicy Change
Event ID 4707: A trust to a domain was removed
A trust to a domain was removed.
- Channel
- Security
- Logged by default
- Yes
- Written on
- Any host
- Volume
- Low
- Audit subcategory
- Authentication Policy Change
- Needs a SACL
- No
To have this event
- Enable Authentication Policy Change:
auditpol /set /subcategory:"Authentication Policy Change" /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 that removed the trust |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID for correlation |
| DomainName | Name of the domain whose trust was removed |
| DomainSid | SID of the domain |
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=4707)]]" -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 4707 mean?
- A trust to a domain was removed. It is written to the Windows Security log (Security).
- Is event 4707 logged by default?
- Yes, a default Windows installation records it. It is controlled by the "Authentication Policy Change" Advanced Audit Policy subcategory (Policy Change).
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA trust to a domain was removed. Needs the "Authentication Policy Change" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.