Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asymmetric authentication #24

Open
LDzik opened this issue Oct 31, 2024 · 6 comments
Open

Asymmetric authentication #24

LDzik opened this issue Oct 31, 2024 · 6 comments
Assignees

Comments

@LDzik
Copy link

LDzik commented Oct 31, 2024

Is asymmetric authentication possible with windows credential provider. I'm asking because i couldn't find anything helpful about this topic.

@ryannewington ryannewington self-assigned this Nov 3, 2024
@ryannewington
Copy link
Member

What do you mean by asymmetric authentication?

@LDzik
Copy link
Author

LDzik commented Nov 4, 2024

By asymmetric authentication, I’m referring to an authentication model similar to SSH, where a user is authenticated by a private key. The Credential Provider would verify this key against a public key, enabling a password-less login. Is there a way for the Credential Provider to handle such an authentication using key pairs?

@ryannewington
Copy link
Member

Credential providers only capture user authentication and pass it to LSASS. Inside LSASS an authentication package is what determines if a user is authorised to login or not.

https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-packages

So in your scenario you'd need a credential provider to interact with the user, and a auth package to know what to do with the material signed by the users key.

However that's only going to be good for a local login. Won't allow access to domain resources. AD supports password and x509 certificates (smart cards) only.

@LDzik
Copy link
Author

LDzik commented Nov 4, 2024

so from what i had read, x509 certificates are what im looking for. Does this library support it, as I couldn't find anything in samples or source code, only password type login.

@LDzik
Copy link
Author

LDzik commented Nov 14, 2024

sorry for bothering but are there any updates on this?

@ryannewington
Copy link
Member

@LDzik sorry I missed your reply. This wraps the Windows Credential Provider framework, so any logon capture type would be supported, but I'm afraid I don't have examples for them.

The key to your scenario would be overriding OnGetSerialization() and returning a native structure that contains your smart card creds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants