CTD-000133

External trust without SID filtering enabled

Medium
Active Directory
Defense Evasion
v14

Signature Identity

CTD-000133
Threat ID
14
Version
IOE
Indicator Type

Threat Description

In certain scenarios, threat actors who have gained control of a domain controller in a trusted domain can exploit the SID history attribute (sIDHistory) to associate SIDs with new user accounts, thereby granting themselves unauthorized access. SID filter quarantining is enabled by default on all external trusts to mitigate this risk. This security feature ensures that only SIDs from the directly trusted domain or forest are considered valid by removing any SID references that do not pertain to them from inbound access requests.

However, administrators can turn off this setting, and older Active Directory trusts may not enable SID filtering. Threat actors can insert spoofed SIDs into access requests without SID filtering, potentially gaining unauthorized access. While SID filtering significantly enhances security by blocking such attacks, it can also cause operational issues if legitimate access relies on SID history or Universal Groups, potentially leading to denied access.

Enabling SID filter quarantining on a trust relationship restricts the trust to the specific domains on either side, breaking its transitivity. This means only SIDs from the directly trusted domain are valid, strengthening security by ensuring only authorized SIDs are accepted.

MITRE ATT&CK: Attack Tactics

Defense Evasion

D3FEND: Defend Tactics

Credential Hardening

Remediation

  1. On the Start menu, open Active Directory Domains and Trusts by typing domain.msc, and pressing Enter. (Alternatively, navigate to it via Administrative Tools).
  2. In the left pane, right-click the domain for which you want to check the trusts and select Properties.
  3. Select the Trusts tab and note any existing trusts and their types (External or Forest). If no trusts exist, this procedure is not applicable.
  4. Open the Command Prompt as an administrator and run the following command on the trusting domain to check the status of SID filtering:
    netdom trust <TrustedDomain> /domain:<TrustingDomain> /quarantine
  5. Replace <TrustedDomain> with the name of the trusted domain and <TrustingDomain> with the name of the trusting domain.
  6. Review the result and if SID filtering is not enabled, enable it by running:
    netdom trust <TrustedDomain> /domain:<TrustingDomain> /quarantine:yes
  7. If the trust type is Forest, run the following command on the trusting domain to check the status of SID history filtering:
    netdom trust <TrustedDomain> /domain:<TrustingDomain> /enablesidhistory
  8. Click OK  to close the container properties window.

Frequently Asked Questions

What does External trust without SID filtering enabled mean?

When SID filter quarantining is disabled on an external trust relationship, it allows the insertion of spoofed Security Identifiers (SIDs) into access requests. This can lead to unauthorized access in Active Directory.

This issue is rated medium severity because disabling SID filter quarantining on an external trust relationship allows attackers to insert spoofed SIDs, potentially gaining unauthorized access. However, it does not grant administrative control or enable serious compromise.

Attackers can exploit this vulnerability by inserting spoofed SIDs into access requests to gain unauthorized access in Active Directory. This may allow them to escalate privileges or move laterally within the domain, but only if they have already gained some level of access.

Cayosoft Guardian continuously monitors the configuration of external trusts in Active Directory and detects any trusts with SID filter quarantining disabled, providing visibility into potential security risks.

Cayosoft Guardian alerts administrators to enable SID filter quarantining on affected external trusts, ensuring that only valid SIDs are accepted and limiting the potential for attackers to gain unauthorized access.

Stop AD Threats As They Happen

Cayosoft Protector provides continuous monitoring and real-time alerts across your entire Microsoft Identity stack

Classification
Systems
Active Directory
Themes
Infrastructure
Attack Tactics
Defense Evasion
Defend Tactics
Credential Hardening
Indicator Types
IOE
Related Threats
CTD-000139
Kerberos Constrained Delegation: krbtgt Risks
Critical
CTD-000122
Active Directory Schema Update Permission Risks
Critical