When it is written
A domain controller writes 4716 when the trusted domain object of an existing trust is modified. The New Trust Information fields hold the values after the change. Microsoft says that a field that did not change shows a dash or its old value, so the event does not always say which setting changed: compare it with the earlier 4706 or 4716 events of the same partner (Domain ID) or with your trust inventory. The event has no failure version.
Microsoft documents one routine case. When the subject is ANONYMOUS LOGON (logon ID 0x3E6), the trust password was reset automatically by the system, and event 4724, 4742 or both can follow for the account that represents the trust (a name ending with $ in Microsoft's example). Only domain controllers write 4716; collect the Security log of all of them.
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 changed the trust. S-1-5-7 (ANONYMOUS LOGON) for the automatic trust password reset. Event Viewer shows it resolved to a name. | v0 |
Account NameSubjectUserNameSubject | Name of that account, ANONYMOUS LOGON in the automatic reset case. | v0 |
Account DomainSubjectDomainNameSubject | Domain of that account, usually as a NetBIOS name, or NT AUTHORITY for built-in principals such as ANONYMOUS LOGON. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the session that made the change, in hexadecimal. 0x3e6 in the automatic reset case. Matches the logon event (4624) of the same session. | v0 |
Domain NameDomainNameTrusted Domain | New name of the trusted domain. A dash when the name did not change, as in Microsoft's sample. | v0 |
Domain IDDomainSidTrusted Domain | SID of the trusted domain (shown as Domain ID). Present even when the name is a dash, so use it to identify the trust. | v0 |
Trust TypeTdoTypeNew Trust Information | Type of the trust after the change (shown as Trust Type), 1 to 4. A dash or the old value when it did not change. | v0 |
Trust DirectionTdoDirectionNew Trust Information | Direction of the trust after the change (shown as Trust Direction). 1 inbound, 2 outbound, 3 both, 0 disabled. A dash or the old value when it did not change. | v0 |
Trust AttributesTdoAttributesNew Trust Information | Attributes of the trust after the change as a decimal sum of flags (shown as Trust Attributes). Convert to hexadecimal to read the bits. A dash or the old value when it did not change. | v0 |
SID FilteringSidFilteringEnabledNew Trust Information | SID filtering state after the change (shown as SID Filtering). The XML holds %%1795 (Enabled) or %%1796 (Disabled), or a dash when it did not change. | v0 |
Values to know
Security ID SubjectUserSid
| Value | Meaning | Signal |
|---|---|---|
S-1-5-7 | ANONYMOUS LOGON, the automatic reset of the trust passwordMicrosoft's explanation. Event 4724 or 4742 for the trust account can follow. | Noise |
A user account SID | An administrator changed the trust settingsConfirm with a change record and read which attributes changed. | Worth knowing |
Trust Attributes TdoAttributes
| Value | Meaning | Signal |
|---|---|---|
No 0x4 on an external trust | SID filtering quarantine removedSIDs from other domains that the partner's accounts carry in SID history are no longer filtered out. | Attack signal |
0x40 added to a forest trust | TRUST_ATTRIBUTE_TREAT_AS_EXTERNALRelaxes the SID filtering of the forest trust to the level of an external trust. | Attack signal |
32 (0x20) | TRUST_ATTRIBUTE_WITHIN_FORESTThe value in Microsoft's sample event, a trust inside the forest. | Worth knowing |
- | Not changedMicrosoft says an unchanged field shows a dash or its old value. | Worth knowing |
SID Filtering SidFilteringEnabled
| Value | Meaning | Signal |
|---|---|---|
%%1795 | Enabled | Expected |
%%1796 | DisabledNormal inside a forest. On an external trust, read it with the quarantine flag 0x4. | Worth knowing |
- | Not changedThe value in Microsoft's sample event. | Worth knowing |
Trust Direction TdoDirection
| Value | Meaning | Signal |
|---|---|---|
2 or 3 | Outbound or two-way, this domain trusts the partnerA change to one of these values lets accounts of the partner be given access in this domain. | Worth knowing |
0 | The trust is disabled | Worth knowing |
Volume and noise
Low. Changes to trust settings are rare and planned; the automatic trust password resets that Microsoft describes are the routine source. Microsoft gives the event a potential criticality of Medium in its list of Active Directory events to monitor.
Keeping it manageable
- Keep and forward every 4716: the trust rule reads all of them, including the automatic resets.
- In alert handling, give events whose subject is ANONYMOUS LOGON (
S-1-5-7, logon ID0x3e6) a lower priority, since Microsoft attributes them to the automatic trust password reset. Do not drop them at collection. - Read
TdoAttributesin hexadecimal and compare it with the value the trust had before. Losing0x4(quarantine) on an external trust or gaining0x40(treat as external) on a forest trust makes SID filtering less strict.
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>4716</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="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>
<Data Name="DomainName">-</Data>
<Data Name="DomainSid">S-1-5-21-2481930475-3097621482-1748305966</Data>
<Data Name="TdoType">2</Data>
<Data Name="TdoDirection">2</Data>
<Data Name="TdoAttributes">0</Data>
<Data Name="SidFilteringEnabled">%%1796</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Why is the subject of event 4716 ANONYMOUS LOGON?
Microsoft explains that this is the automatic reset of the trust password by the system. Events 4724, 4742 or both can follow for the account that represents the trust, a name ending with $ in Microsoft's example. Treat these as routine unless the trust attributes changed too.
How can I tell which trust setting changed?
Not always from the event alone. Microsoft says a field that did not change shows a dash or its old value. Compare the values with the trust's previous 4706 or 4716 event (same DomainSid) or with your trust inventory.
Which changes to a trust weaken it?
Removing the quarantine flag 0x4 from an external trust, adding treat-as-external 0x40 to a forest trust and disabling SID filtering make SID filtering less strict. A new outbound or two-way direction lets accounts of the partner be given access in this domain.