An NTLM decoder parses the Base64 blob in an Authorization: NTLM … or WWW-Authenticate: NTLM … header and shows which of the three handshake messages it is, along with its flags, domain, user name and workstation.
Example
A Type 2 challenge exposes the server's domain and computer names:
Challenge (server → client)
Challenge: 0123456789abcdef
Target info:
NetBIOS domain: EXAMPLE
DNS computer: dc01.example.comA Type 3 message shows the domain, user name and workstation, and whether the response is NTLMv1 or NTLMv2.
The NTLM handshake
NTLM (MS-NLMP) authenticates in three messages, each starting with the signature NTLMSSP\0, which is TlRMTVNTUAAB… in Base64:
- Type 1, Negotiate (client to server): supported features (flags) and sometimes the domain and workstation.
- Type 2, Challenge (server to client): an 8-byte random challenge, the server's flags and target info, which lists the server's NetBIOS and DNS domain and computer names.
- Type 3, Authenticate (client to server): the response to the challenge, plus the domain, user name and workstation in clear text.
The message type is the 4-byte little-endian number right after the signature: 01 00 00 00, 02 00 00 00 or 03 00 00 00.
How to use the NTLM decoder
- Paste the Base64 blob from an
Authorization: NTLM …orWWW-Authenticate: NTLM …header (theNTLM/Negotiateprefix is fine). - The message type is identified, with its flags decoded.
- A Type 2 challenge reveals the server's domain and computer names (target info); a Type 3 message reveals the domain, user name and workstation in clear text.
To see the raw bytes instead:
echo 'TlRMTVNTUAABAAAAB4IIog…' | base64 -d | xxd | headWireshark fully dissects NTLMSSP in HTTP, SMB and LDAP traffic.
At a glance
| Specification | Microsoft MS-NLMP |
| Signature | NTLMSSP\0 (TlRMTVNT in Base64) |
| Messages | Type 1 Negotiate, Type 2 Challenge, Type 3 Authenticate |
| Exposed in clear text | Domain, user name and workstation (Type 3) |
Frequently asked questions
Is NTLM secure?
It's outdated. NTLMv1 is broken. NTLMv2 responses can still be cracked offline or relayed to other servers. Microsoft recommends Kerberos and is phasing NTLM out of Windows.
What does a Type 2 challenge reveal?
The target info block lists the server's NetBIOS name, DNS domain and DNS computer name, plus a timestamp. Penetration testers use this to map internal domains from an exposed endpoint.
Why do I see NTLM instead of Kerberos?
Windows falls back to NTLM when Kerberos can't be used: the client can't reach a domain controller, the server is addressed by IP, or the SPN is missing or duplicated.
Last reviewed · found a mistake? contact@decoder.tools · view as markdown