Trust account & Windows Server 2025 changes

๐Ÿ”’ ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ฒ ๐—•๐—ถ๐˜๐˜€ ๐Ÿ’ก

๐—ข๐—ป๐—ฒ-๐˜„๐—ฎ๐˜† ๐—”๐—— ๐˜๐—ฟ๐˜‚๐˜€๐˜? ๐——๐—ผ๐—ปโ€™๐˜ ๐—ฎ๐˜€๐˜€๐˜‚๐—บ๐—ฒ ๐˜๐—ต๐—ฒ ๐—ฟ๐—ถ๐˜€๐—ธ ๐—ผ๐—ป๐—น๐˜† ๐—ด๐—ผ๐—ฒ๐˜€ ๐—ผ๐—ป๐—ฒ ๐˜„๐—ฎ๐˜†.

This is one of those Active Directory behaviors I think deserves much more attention. With a ๐—ผ๐—ป๐—ฒ-๐˜„๐—ฎ๐˜† forest or external trust, we naturally think about the direction of the trust:

โžก๏ธ Forest A trusts Forest B โ†’ users from B can access permitted resources in A.

But there is another part of the equation – theย ๐˜๐—ฟ๐˜‚๐˜€๐˜ ๐—ฎ๐—ฐ๐—ฐ๐—ผ๐˜‚๐—ป๐˜ย created in the trusted domain. โš ๏ธ If the trusting forest is compromised, an attacker who obtains the trust secrets ๐—ฐ๐—ฎ๐—ป ๐—ฎ๐˜‚๐˜๐—ต๐—ฒ๐—ป๐˜๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ as that trust account against theย trusted forest.

And because that account is still an authenticated identity in the trusted domain, this ๐—ฐ๐—ฎ๐—ป ๐—ฝ๐—ฟ๐—ผ๐˜ƒ๐—ถ๐—ฑ๐—ฒ ๐—ผ๐—ฝ๐—ฝ๐—ผ๐—ฟ๐˜๐˜‚๐—ป๐—ถ๐˜๐—ถ๐—ฒ๐˜€ forย reconnaissance, lateral movement, or further privilege escalation depending on the environment.

๐—ช๐—ถ๐—ป๐—ฑ๐—ผ๐˜„๐˜€ ๐—ฆ๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฟ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฑ ๐—ฐ๐—ต๐—ฎ๐—ป๐—ด๐—ฒ๐—ฑ ๐˜€๐—ผ๐—บ๐—ฒ๐˜๐—ต๐—ถ๐—ป๐—ด ๐—ต๐—ฒ๐—ฟ๐—ฒ. Microsoft introduced two new groups:

๐Ÿ”นย Forest Trust Accountsย with RID 528

๐Ÿ”นย External Trust Accountsย with RID 529

Trust accounts are moved away from the traditionalย Domain Usersย primary group into these dedicated groups. That is a useful hardening change because resources granted toย Domain Usersย are no longer automatically accessible by those trust accounts.

๐—•๐˜‚๐˜ ๐—ฑ๐—ผ๐—ฒ๐˜€ ๐—ถ๐˜ ๐—ณ๐—ถ๐˜… ๐˜๐—ต๐—ฒ ๐—ฟ๐—ฒ๐—ฎ๐—น ๐—ฝ๐—ฟ๐—ผ๐—ฏ๐—น๐—ฒ๐—บ?

โžก๏ธ Unfortunately,ย no.

Jorge de Almeida Pinto recently tested this with Windows Server 2025 DCs and demonstrated that the trust account ๐—ฐ๐—ผ๐˜‚๐—น๐—ฑ ๐˜€๐˜๐—ถ๐—น๐—น ๐—ผ๐—ฏ๐˜๐—ฎ๐—ถ๐—ป a TGT using the trustโ€™s AES keys. Windows Server 2025 moves trust accounts into dedicated groups, but they are still part of ๐—”๐˜‚๐˜๐—ต๐—ฒ๐—ป๐˜๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐—ฑ ๐—จ๐˜€๐—ฒ๐—ฟ๐˜€ after authentication.

โœ… This is exactly why I still treat one-way trusts as a potential path in both directions, not as a simple one-way security boundary.

๐Ÿ”— ๐—™๐˜‚๐—น๐—น ๐—ฐ๐—ฟ๐—ฒ๐—ฑ๐—ถ๐˜ to Jorge de Almeida Pinto for the research and testing. I highly recommend reading the full article.

https://jorgequestforknowledge.wordpress.com/category/active-directory-domain-services-adds/trusts/