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

Support authentication with NT hash in NTLM auth flow #140

Open
exploide opened this issue Feb 5, 2025 · 2 comments
Open

Support authentication with NT hash in NTLM auth flow #140

exploide opened this issue Feb 5, 2025 · 2 comments

Comments

@exploide
Copy link

exploide commented Feb 5, 2025

With NTLM authentication, it is technically not necessary to possess the cleartext password. Since the challenge-response scheme is solved with the NT hash of the password instead of its cleartext value, it is sufficient to know the NT hash.

It would be awesome if ldap3 would support connection establishment with a known NT hash instead of a password.

Use cases:

  1. Someone might be hesitant to store a cleartext password somewhere and would like to do it with the hash instead.
  2. In penetration testing, it is common to get access to an NT hash and assessment tools need support for that. For example [feature] add ability to auth via NTHASH g0h4n/RustHound-CE#5
@inejge
Copy link
Owner

inejge commented Feb 5, 2025

NTLM handling in the library is very experimental, and may not even end up in the released code, depending on how extensive the support for other things (like channel bindings) is going to be. NT hashes are hence a very low priority. I'll keep the issue open until I decide what's going to happen to NTLM support as a whole.

@exploide
Copy link
Author

exploide commented Feb 6, 2025

Okay, thanks for the fast response. I think it would also be fine to have basic NTLM auth support first and then gradually improve over time. Maybe people will conduct PRs if they require a missing feature like LDAP signing, channel binding or NT hash support.

But in general, I would consider NTLM auth support an important feature. In many cases the LDAP implementation will be Active Directory and NTLM is often required there.

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