1993·enterprise
Legacy

NTLM

Windows challenge-response (3 сообщения). Уязвим к pass-the-hash.

Плюсы
  • +Бесшовно в Windows-сетях
Минусы
  • −Слабая криптография
  • −Pass-the-hash
  • −Microsoft-only
NTLM 3-message handshake
ClientServerGET / (no auth)401 WWW-Authenticate: NTLMType 1: NEGOTIATE (flags)Type 2: CHALLENGE (8 random bytes)encrypt challenge with NT-hashType 3: AUTHENTICATE (response)verify response200 OK
  1. 1.Client → ServerGET / (no auth)
  2. 2.Server → Client401 WWW-Authenticate: NTLM
  3. 3.Client → ServerType 1: NEGOTIATE (flags)
  4. 4.Server → ClientType 2: CHALLENGE (8 random bytes)
  5. 5.Client ↺ Clientencrypt challenge with NT-hash
  6. 6.Client → ServerType 3: AUTHENTICATE (response)
  7. 7.Server ↺ Serververify response
  8. 8.Server → Client200 OK
NTLM 3-message handshake
Network · DevTools
Запусти демо — сюда упадут все запросы.
Выбери запрос слева, чтобы посмотреть детали.