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

Event ID 4675: SIDs were filtered

Written by a domain controller when SID filtering removes security identifiers from an account that authenticates across a trust. Where a SID planted in sIDHistory on the other side of the trust becomes visible.

Log source
Windows Security log
Detection value
Supporting
Volume
Low (estimate)
Last updated
Audit subcategory
Audit Logon (Logon/Logoff, Success)
Logged on
Domain controllers only
Event versions
0
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 2 tactics
Fields the rules read
The event ID and the provider only

When it is written

A domain controller writes 4675 when it applies SID filtering to an account that comes from another domain over a trust, and removes one or more SIDs from it. Microsoft's Kerberos authorization data specification describes SID filtering as the analysis of the authorization data (PAC) carried by a cross-realm ticket-granting ticket, and its strictness depends on the trust the ticket came over: within the forest, across a forest trust, over an external trust, or over a quarantined one. A forest or external trust does not let SIDs that belong to the trusting forest come back across it.

The event is written by the domain controllers of the trusting domain, which receive the account's request, and names the account, the trust (direction, attributes, type and the SID of its trusted domain object) and the SIDs that were removed. Microsoft lists it under Audit Logon and gives domain controllers as its only role. Its event page has no example and no field descriptions; the field names here come from the Windows event template.

How to turn it on

Advanced audit policy subcategory Audit Logon, 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 > Logon/Logoff > Audit Logon
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess and FailureMicrosoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed.
Member serversSuccess and FailureMicrosoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed.
WorkstationsSuccess and FailureMicrosoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed.
Check the current setting
auditpol /get /subcategory:"Logon"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Logon" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9215-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 IDTargetUserSidTarget AccountSID of the account whose SIDs were filtered: the account from the other side of the trust.v0
Account NameTargetUserNameTarget AccountName of that account.v0
Account DomainTargetDomainNameTarget AccountDomain of that account, on the other side of the trust.v0
Trust DirectionTdoDirectionTrust InformationDirection of the trust the request came over, as stored on its trusted domain object (trustDirection): 1 inbound, 2 outbound, 3 bidirectional, 0 disabled.v0
Trust AttributesTdoAttributesTrust InformationAttribute flags of that trust (trustAttributes), as a number in which several flags can be combined, for example 0x8 for a forest trust or 0x4 for a quarantined domain.v0
Trust TypeTdoTypeTrust InformationType of that trust (trustType): 1 a Windows domain without Active Directory, 2 an Active Directory domain, 3 an RFC 4120 Kerberos realm, 5 Azure Active Directory.v0
TDO Domain SIDTdoSidTrust InformationSID of the domain on the other side of the trust, as stored on its trusted domain object (TDO Domain SID).v0
Filtered SIDsSidListTrust InformationThe SIDs that were removed (Filtered SIDs). Microsoft documents neither the format of the list nor an example: read each SID and compare its domain part with your own domains and with the TDO Domain SID.v0

Values to know

Filtered SIDs SidList

ValueMeaningSignal
A SID of the trusting domainA SID local to this side of the trustFiltering stops SIDs of the trusting forest from coming back over a forest or external trust. One in the list means somebody tried to claim it from the other side.Attack signal
RID 512, 518 or 519Domain Admins, Schema Admins or Enterprise AdminsA privileged group SID that does not belong to the account's own domain is filtered at forest, external and quarantined boundaries. Investigate the account on the other side and its sIDHistory.Attack signal
A SID of a former domainSID History left over from a migrationSeen at every logon of migrated accounts until SID History is cleaned up. Review once, then exclude by account and SID.Noise

Trust Attributes TdoAttributes

ValueMeaningSignal
0x8 (8)TRUST_ATTRIBUTE_FOREST_TRANSITIVEA forest trust between the root domains of two forests.Worth knowing
0x4 (4)TRUST_ATTRIBUTE_QUARANTINED_DOMAINThe trusted domain is quarantined and subject to SID filtering.Worth knowing
0x40 (64)TRUST_ATTRIBUTE_TREAT_AS_EXTERNALA forest trust filtered like an external trust, which is less strict. Evaluated only on forest trusts.Worth knowing
0x20 (32)TRUST_ATTRIBUTE_WITHIN_FORESTThe trusted domain is in the same forest.Worth knowing
0x400 (1024)TRUST_ATTRIBUTE_PIM_TRUSTWith 0x40, a Privileged Identity Management trust, which lets SIDs of this forest come over the trust.Worth knowing

Trust Direction TdoDirection

ValueMeaningSignal
1InboundThe other domain trusts this one.Worth knowing
2OutboundThis domain trusts the other one.Worth knowing
3BidirectionalBoth domains trust each other.Worth knowing

Trust Type TdoType

ValueMeaningSignal
2TRUST_TYPE_UPLEVELThe other domain runs Active Directory.Worth knowing
1TRUST_TYPE_DOWNLEVELA Windows domain without Active Directory.Worth knowing
3TRUST_TYPE_MITA non-Windows Kerberos realm that follows RFC 4120.Worth knowing
5TRUST_TYPE_AADA trusted domain in Azure Active Directory (now Microsoft Entra ID).Worth knowing

Volume and noise

Rare in a forest without trusts or migrations. Accounts migrated from another domain that still carry their old SIDs in SID History produce it each time they authenticate across a trust that filters those SIDs, until the attribute is cleaned up, so a forest with many trusts and past migrations can see it steadily for the same accounts.

Keeping it manageable

  • Keep every 4675: the rule matches the event ID alone.
  • Baseline the accounts whose filtered SIDs belong to a domain they were migrated from, and exclude them by account and filtered SID once reviewed, not by trust: an exclusion by trust would also hide an injected SID.
  • Alert at once when a filtered SID belongs to the trusting domain itself or has a privileged RID (512 Domain Admins, 518 Schema Admins, 519 Enterprise Admins): such a SID was never the leftover of a migration.
  • Clean up SID History after migrations, so that the events that remain mean something.

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>4675</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>0</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="TargetUserSid">S-1-5-21-2210887431-3341609547-1823405896-1108</Data>
    <Data Name="TargetUserName">bob</Data>
    <Data Name="TargetDomainName">PARTNER</Data>
    <Data Name="TdoDirection">3</Data>
    <Data Name="TdoAttributes">8</Data>
    <Data Name="TdoType">2</Data>
    <Data Name="TdoSid">S-1-5-21-2210887431-3341609547-1823405896</Data>
    <Data Name="SidList">S-1-5-21-1004336348-1177238915-682003330-519</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Does event 4675 mean a SID history attack?

Not by itself. It means SID filtering worked and removed SIDs at the trust. Migrated accounts that still carry SIDs of their old domain produce it at every logon. What points to an attack is the content of the filtered list, a SID of the trusting domain itself or of a privileged group such as Domain Admins or Enterprise Admins, because no migration puts those in an account of another forest.

Where is event 4675 written?

On the domain controllers of the trusting domain, the side that receives the account's request and applies the filter. Microsoft lists domain controllers as its only role and Audit Logon as its subcategory, so turn on success auditing for Audit Logon on the domain controllers of every domain that trusts another one.

Which trusts filter SIDs?

Microsoft's specification describes different filtering per trust boundary. Forest trusts and external trusts do not let SIDs that belong to the trusting forest come over them, and a quarantined trust lets through only the SIDs of the trusted domain. A forest trust marked to be treated as external is filtered like an external trust, and a Privileged Identity Management trust lets SIDs of the trusting forest through by design.

References