pentesting, updated

Map domain and forest trusts

Identify trust relationships between domains and forests that widen the attack surface beyond the current domain.

Goal

Find every domain the current foothold can reach via a trust, and the direction that trust allows authentication to flow.

How to test

nltest /domain_trusts /all_trusts              # from a domain-joined Windows host
Get-ADTrust -Filter *                            # RSAT module, shows direction and type
nxc ldap 10.10.10.5 -u jdoe -p Password1 --trusted-for-delegation

What to look for

A bidirectional or inbound trust from a domain you do not yet control, and especially a trust with SID history enabled (can carry privileged SIDs across the trust boundary).

Notes

A one-way trust only allows authentication in one direction — map the arrow carefully before assuming a trusted domain is reachable from your current foothold.

§ home
~/knubertus/home/
1,1 Top