When it is written
A domain controller writes 4707 when a trust is deleted from its domain. The event is short: it names the partner domain (Domain Name and Domain ID) and the account that removed the trust, but not the type, direction or attributes the trust had. Those are in the 4706 or 4716 events written earlier for the same partner, or in your trust inventory. The event has no failure version.
Only domain controllers write it, and the change can be made on any of them, so collect the Security log of every domain controller. Each domain holds its own side of a trust, so the partner domain's domain controllers record their own 4707 when that side is removed.
How to turn it on
Advanced audit policy subcategory Audit Authentication Policy Change, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Policy Change > Audit Authentication Policy Change| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success | Microsoft's general and stronger baselines both recommend Success auditing, which records operations on domain and forest trusts and changes to the Kerberos policy. The subcategory has no failure events. |
| Member servers | Success | Microsoft's general and stronger baselines both recommend Success auditing, which records changes to logon rights and to the password policy. The subcategory has no failure events. |
| Workstations | Success | Microsoft's general and stronger baselines both recommend Success auditing, which records changes to logon rights and to the password policy. The subcategory has no failure events. |
auditpol /get /subcategory:"Authentication Policy Change"auditpol /set /subcategory:"Authentication Policy Change" /success:enableauditpol /get /subcategory:"{0CCE9230-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | SID of the account that removed the trust. Event Viewer shows it resolved to a name when it can. | v0 |
Account NameSubjectUserNameSubject | Name of the account that removed the trust. | v0 |
Account DomainSubjectDomainNameSubject | Domain of that account, usually as a NetBIOS name. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the session that removed the trust, in hexadecimal. Matches the logon event (4624) of the same session. | v0 |
Domain NameDomainNameDomain Information | Name of the partner domain whose trust was removed. Microsoft's sample shows a NetBIOS name. | v0 |
Domain IDDomainSidDomain Information | SID of the partner domain (shown as Domain ID). Event Viewer tries to resolve it to a name. Use it to find the 4706 and 4716 events of the same trust. | v0 |
Values to know
Domain Name DomainName
| Value | Meaning | Signal |
|---|---|---|
NetBIOS name, such as PARTNER | The form Microsoft's sample of 4707 shows | Worth knowing |
DNS name, such as partner.example.net | The form Microsoft's sample of 4706 showsCompare removals with creations through DomainSid, which is the same in both events. | Worth knowing |
Logon ID SubjectLogonId
| Value | Meaning | Signal |
|---|---|---|
0x3e7 | The session of SYSTEM, the domain controller itself | Worth knowing |
Any other value | The logon session of the account in SubjectMatch it with event 4624 on the same domain controller to find the source address and the logon type. | Worth knowing |
Volume and noise
Very low. Trusts are removed when a partner relationship ends, after a migration or when a domain leaves the forest. Microsoft gives the event a potential criticality of Low in its list of Active Directory events to monitor, but the trust rule alerts on every removal: a removed trust stops authentication across it, and nobody removes one without a reason.
Keeping it manageable
- Keep and forward every 4707. The trust rule alerts on each one, and the volume is negligible.
- Match removals on
DomainSid, not on the name. Microsoft's sample of 4707 shows the partner's NetBIOS name, while its sample of 4706 shows a DNS name, so names of the same partner do not always match. - Close an alert with the change record of the decommissioning. Without one, find the session behind
SubjectLogonId(event 4624 on the same domain controller) to see where the account came from.
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4707</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>13569</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="DomainName">PARTNER</Data>
<Data Name="DomainSid">S-1-5-21-2481930475-3097621482-1748305966</Data>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1105</Data>
<Data Name="SubjectUserName">adm-alice</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x5a3c21</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Why would an attacker remove a trust?
A removed trust stops accounts on one side from authenticating to resources on the other, so it can disrupt operations. It can also remove a trust that was added for an intrusion and is no longer needed. Either way, a removal without a change record needs an explanation.
Does event 4707 say what kind of trust was removed?
No. It holds only the partner's name and SID and the account that removed the trust. Look up the 4706 or 4716 events of the same DomainSid, or your trust inventory, for the type, direction and attributes.
Is 4707 logged in both domains of the trust?
Each domain holds its own side of the trust as a separate object. The domain controllers of each domain write 4707 when their side is removed, provided they audit Authentication Policy Change.