Active Directory domain trust object attribute modified
Matches AN1259's core observable directly: a directory-service object modification (Security 5136) whose ObjectClass is trustedDomain and whose changed attribute is one that defines the trust relationship itself — trustPartner (the far-side domain or tenant), trustDirection and trustType (which way authentication flows and what kind of trust it is), trustAttributes (forest-trust and SID-filtering flags), or msDS-TrustForestTrustInfo (the namespace list a forest trust honours). Creating a new trust or repointing an existing one always rewrites at least one of these five, which is what MITRE's ObjectType and AttributeModified knobs name; the attribute list itself is authored here, not supplied by MITRE beyond the two example names it gives. The brief's other two logsources are deliberately not used: Security 4704 (user right assignment) fires whenever any right is granted to any account, not only SeEnableDelegationPrivilege on a trust-related principal, so folding it in as an OR would turn a trust-object rule into a generic privilege-grant rule and lose the technique-specific signal; and AN1259's process-side evidence (netdom.exe, nltest.exe or a PowerShell trust cmdlet) is the tool that makes the change, not the change itself, and a command-line selection for it would duplicate rather than add to the object-level signal 5136 already carries. MITRE's TimeWindow knob — correlating the trust edit with a nearby logon or certificate modification — is a cross-event join lib/sigma cannot express, so this fires on the object modification alone. Prerequisite: 5136 needs the *Audit Directory Service Changes* subcategory enabled on domain controllers and an auditing SACL covering the Configuration partition's trust objects; neither is on in a default install or in the Microsoft and CIS baselines, so an empty result means blind rather than quiet. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0458, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
Sentinel · KQL
Run this as a search.
SecurityEvent| where ((EventID == 5136 and ObjectClass =~ "trustedDomain") and (AttributeLDAPDisplayName =~ "trustPartner" or AttributeLDAPDisplayName =~ "trustDirection" or AttributeLDAPDisplayName =~ "trustType" or AttributeLDAPDisplayName =~ "trustAttributes" or AttributeLDAPDisplayName =~ "msDS-TrustForestTrustInfo"))
Splunk · SPL
Run this as a search.
index=* ((EventID="5136" AND ObjectClass="trustedDomain") AND (AttributeLDAPDisplayName="trustPartner" OR AttributeLDAPDisplayName="trustDirection" OR AttributeLDAPDisplayName="trustType" OR AttributeLDAPDisplayName="trustAttributes" OR AttributeLDAPDisplayName="msDS-TrustForestTrustInfo"))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((event.code == 5136 AND TO_LOWER(ObjectClass) == "trusteddomain") AND (TO_LOWER(AttributeLDAPDisplayName) == "trustpartner" OR TO_LOWER(AttributeLDAPDisplayName) == "trustdirection" OR TO_LOWER(AttributeLDAPDisplayName) == "trusttype" OR TO_LOWER(AttributeLDAPDisplayName) == "trustattributes" OR TO_LOWER(AttributeLDAPDisplayName) == "msds-trustforesttrustinfo"))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <rule id="100000" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="EventID" type="pcre2">(?i)^5136$</field> <field name="ObjectClass" type="pcre2">(?i)^trustedDomain$</field> <field name="AttributeLDAPDisplayName" type="pcre2">(?i)(^trustPartner$|^trustDirection$|^trustType$|^trustAttributes$|^msDS-TrustForestTrustInfo$)</field> <description>Active Directory domain trust object attribute modified</description> <mitre> <id>T1484.002</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.