CredSSP Credential Delegation
CredSSP enables an application to delegate a user's credentials from a client to a target server. Unlike constrained delegation, the protocol transfers reusable credential material so the target can establish a logon session or access resources in the user's context.
This research examined four practical boundaries: whether delegation is controlled by application code or caller privilege; how wildcard destination policy behaves; what the Windows Kerberos path treats as successful server authentication; and how delegated password material is represented on the network and exposed by the Windows server-side API.
Central conclusion:
Most documentation and articles I researched around CredSSP seemed to revolve around Remote Desktop protocol. I set out to answer a few questions about how CredSSP is invoked, who/what is allowed to invoke it and what the behavior looks like from a default credential delegation perspective. At a high level the results revealed that once the policy is set, any process can invoke CredSSP delegation to any remote host permitted by the policy with the only requirement being that the server side process sessions requires a domain issued TGT in the logon cache so that the U2U kerberos exchange that CredSSP uses to delegated credentials can succeed. Furthermore, the policy allows using a single wildcard character for permitted SPN values, it was determined that the policy accepts the single wildcard character as the entire authorized SPN string indicating that any host or service can be delegated to. While Windows server side implementation puts in some protections by encrypting the credentials into a CredTrustedProtection protected credential structure, this is not a necessary requirement of CredSSP just how the Windows server side implementation works. The harness executable in this repository therefore requires ability to attach itself into LSASS process (the current implementation duplicates the LSASS process token and impersonates it for performing the decryption routine) in order to obtain the cleartext password being delegated, but if you were to handle the CredSSP negotiation and protocol implementation yourself this would not be necessary as WireShark capture confirms that the cleartext password is sent over the wire and is protected by TLS on the outside and underneath TLS, the credentials structure is protected by Kerberos mutual authentication mechanisms. Once both those layers are decrypted the cleartext password is present as a hex UTF-16le string.
For Additional details about the testing performed see the CredSSP_Research_draft.pdf document within the repository.