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

Event ID 4706: A new trust was created to a domain

Written by a domain controller when a trust to another domain, forest or Kerberos realm is created. It records the partner's name and SID, the trust type, direction and attributes, and whether SID filtering is on.

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 4706 when a new trust is created in its domain: an external trust, a forest trust, a realm trust to a non-Windows Kerberos realm, or a trust between two domains of the same forest. Microsoft's own sample event records a trust inside the forest (Trust Attributes 32, which is 0x20, within forest). 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 side of a trust is a separate trusted domain object in its own domain: the domain controllers of the partner domain record their own event when that side is created, if they audit this subcategory.

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 created the trust. Event Viewer shows it resolved to a name when it can.v0
Account NameSubjectUserNameSubjectName of the account that created the trust.v0
Account DomainSubjectDomainNameSubjectDomain of that account, usually as a NetBIOS name.v0
Logon IDSubjectLogonIdSubjectLogon ID of the session that created the trust, in hexadecimal. Match it with the logon event (4624) of the same session on this domain controller to find where the account came from.v0
Domain NameDomainNameTrusted DomainName of the partner domain of the new trust. Microsoft's sample shows its DNS name.v0
Domain IDDomainSidTrusted DomainSID of the partner domain (shown as Domain ID). It identifies the partner even when its name is written in another form. Event Viewer tries to resolve it to a name.v0
Trust TypeTdoTypeTrust InformationType of the trust as a number (shown as Trust Type), 1 to 4. 2 is a partner that runs Active Directory, 3 a non-Windows Kerberos realm.v0
Trust DirectionTdoDirectionTrust InformationDirection of the trust as a number (shown as Trust Direction). 1 inbound, 2 outbound, 3 both directions, 0 disabled.v0
Trust AttributesTdoAttributesTrust InformationAttributes of the trust as a decimal sum of flags (shown as Trust Attributes). Convert it to hexadecimal to read the bits, for example 72 is 0x48, a forest trust (0x8) treated as external (0x40).v0
SID FilteringSidFilteringEnabledTrust InformationWhether SID filtering is on for the new trust (shown as SID Filtering). The XML holds the message code %%1795 (Enabled) or %%1796 (Disabled).v0

Values to know

Trust Attributes TdoAttributes

ValueMeaningSignal
4 (0x4)TRUST_ATTRIBUTE_QUARANTINED_DOMAIN, SID filtering quarantineMicrosoft's Windows Server 2003 documentation says domain controllers set it automatically on new external trusts. Without it, SIDs from other domains that the partner's accounts carry in SID history are not filtered out.Expected
8 (0x8)TRUST_ATTRIBUTE_FOREST_TRANSITIVE, a forest trust between two forest root domainsWorth knowing
32 (0x20)TRUST_ATTRIBUTE_WITHIN_FOREST, the partner is a domain of the same forestThe value in Microsoft's sample event.Expected
64 (0x40)TRUST_ATTRIBUTE_TREAT_AS_EXTERNALRelaxes the SID filtering of a forest trust to the level of an external trust. Usually combined with 0x8, which gives 72.Attack signal
512 (0x200)TRUST_ATTRIBUTE_CROSS_ORGANIZATION_NO_TGT_DELEGATIONTickets issued over this trust are not trusted for delegation.Worth knowing

Trust Direction TdoDirection

ValueMeaningSignal
1Inbound, the partner trusts this domainWorth knowing
2Outbound, this domain trusts the partnerAccounts of the partner can then be given access to resources in this domain, which is why a new outbound trust to an unknown partner is the case to investigate first.Worth knowing
3Bidirectional, both domains trust each otherWorth knowing
0The trust exists but is disabledWorth knowing

Trust Type TdoType

ValueMeaningSignal
2TRUST_TYPE_UPLEVEL, the partner runs Active DirectoryExpected
1TRUST_TYPE_DOWNLEVEL, the partner's domain controllers run a system earlier than Windows 2000Worth knowing
3TRUST_TYPE_MIT, a non-Windows Kerberos realmMicrosoft notes that the default key types of such a trust include DES.Worth knowing
4TRUST_TYPE_DCEMicrosoft says Windows does not use this value.Worth knowing

SID Filtering SidFilteringEnabled

ValueMeaningSignal
%%1795EnabledThe XML holds the message code; Event Viewer shows the word.Expected
%%1796DisabledThe value in Microsoft's sample, a trust inside the forest. On an external trust, check it together with the quarantine flag 0x4.Worth knowing

Volume and noise

Very low. Trusts are created when a domain is added to a forest and in planned projects such as mergers, migrations or a link to a partner's forest; outside such work the event should not appear. Microsoft gives it a potential criticality of Medium in its list of Active Directory events to monitor.

Keeping it manageable

  • Keep and forward every 4706. The trust rule alerts on each one, and the volume is negligible.
  • Keep an inventory of your trusts (partner name and SID, type, direction, attributes) and attach the change record to each new trust, so that an expected event is closed quickly and an unknown partner stands out.
  • Read TdoAttributes in hexadecimal: the event holds a decimal sum of flags. An external trust without 0x4 (quarantine) or a forest trust with 0x40 (treat as external) filters the partner's SIDs less strictly than usual.

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>4706</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.example.net</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>
    <Data Name="TdoType">2</Data>
    <Data Name="TdoDirection">2</Data>
    <Data Name="TdoAttributes">4</Data>
    <Data Name="SidFilteringEnabled">%%1795</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Is event 4706 written for trusts inside a forest?

Yes. It covers every new trust in the domain, and Microsoft's own sample event records a trust whose attributes are 32 (0x20, within forest). Adding a domain to a forest can therefore produce it as well. Read TdoAttributes before you treat the event as a link to an outside domain.

How do I read the Trust Attributes value?

The event holds a decimal sum of flags. Convert it to hexadecimal and look up each bit, for example 0x4 quarantine (SID filtering on an external trust), 0x8 forest transitive, 0x20 within forest and 0x40 treat as external. A value of 72 is 0x48, a forest trust treated as external.

Which new trusts deserve a closer look?

A partner that is not in your trust inventory or has no change record, an outbound or two-way trust to an organization you do not control, an external trust without the quarantine flag or with SID filtering disabled, a forest trust with 0x40, and a realm trust to a non-Windows Kerberos realm.

References