1. Resources
  2. Detection sources
  3. Event ID 4716

Event ID 4716: Trusted domain information was modified

Written by a domain controller when an existing trust changes: its name, type, direction, attributes or SID filtering. The routine case is the automatic reset of the trust password, logged under ANONYMOUS LOGON.

Log source
Windows Security log
Detection value
Supporting
Volume
Low
Last updated
Audit subcategory
Audit Authentication Policy Change (Policy Change, Success)
Logged on
Domain controllers only
Event versions
0
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
2 groups that MITRE ATT&CK records using these techniques
Fields the rules read
The event ID and the provider only

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
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccessMicrosoft'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 serversSuccessMicrosoft'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.
WorkstationsSuccessMicrosoft'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.
Check the current setting
auditpol /get /subcategory:"Authentication Policy Change"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Authentication Policy Change" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9230-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

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.

FieldWhat it holdsSince
Security IDSubjectUserSidSubjectSID 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 NameSubjectUserNameSubjectName of that account, ANONYMOUS LOGON in the automatic reset case.v0
Account DomainSubjectDomainNameSubjectDomain of that account, usually as a NetBIOS name, or NT AUTHORITY for built-in principals such as ANONYMOUS LOGON.v0
Logon IDSubjectLogonIdSubjectLogon 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 DomainNew name of the trusted domain. A dash when the name did not change, as in Microsoft's sample.v0
Domain IDDomainSidTrusted DomainSID 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 InformationType 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 InformationDirection 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 InformationAttributes 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 InformationSID 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

ValueMeaningSignal
S-1-5-7ANONYMOUS LOGON, the automatic reset of the trust passwordMicrosoft's explanation. Event 4724 or 4742 for the trust account can follow.Noise
A user account SIDAn administrator changed the trust settingsConfirm with a change record and read which attributes changed.Worth knowing

Trust Attributes TdoAttributes

ValueMeaningSignal
No 0x4 on an external trustSID 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 trustTRUST_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

ValueMeaningSignal
%%1795EnabledExpected
%%1796DisabledNormal 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

ValueMeaningSignal
2 or 3Outbound 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
0The trust is disabledWorth 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 ID 0x3e6) a lower priority, since Microsoft attributes them to the automatic trust password reset. Do not drop them at collection.
  • Read TdoAttributes in hexadecimal and compare it with the value the trust had before. Losing 0x4 (quarantine) on an external trust or gaining 0x40 (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.

References