Trustify is a command-line tool for creating (and deleting) inbound Active Directory forest trusts with TGT delegation enabled using native Windows LSA APIs.
Trustify.exe [create|delete] ...Trustify.exe create [target] [sid] [dns] [netbios] [password]target: The remote domain where the trust is created (e.g.domain.com)sid: SID of the trusted domain (e.g.S-1-5-21-...)dns: DNS name of the trusted domainnetbios: NetBIOS name of the trusted domainpassword: Trust password (plaintext)
Trustify.exe delete [target] [sid]target: The remote domain where the trust is deletedsid: SID of the trusted domain to delete
Create an inbound forest trust in target.local from the domain attacker.local:
Trustify.exe create target.local S-1-5-21-1556913138-1403956553-584833181 attacker.local ATTACKER Summer2025!Delete the trust created above:
Trustify.exe delete target.local S-1-5-21-1556913138-1403956553-584833181- Windows OS
- Run as a user with sufficient privileges (Membership in Enterprise Admins, Domain Admins in root domain, or Incoming Forest Trust Builders)
- .NET Framework or .NET-compatible runtime for building/running
To compile using Visual Studio:
- Open the
.slnfile in Visual Studio. - Select build configuration (
ReleaseorDebug). - Build the solution.
Or compile with dotnet CLI:
dotnet build Trustify.csproj