In RDP, what does Network Level Authentication do before a session exists, and why does authenticating first reduce what an unauthenticated client can reach?
answer
- authenticate first, session second
- a protocol carried inside TLS
- requested through a negotiation flag
- later RDP phases stay unreachable
basics
~20 sNetwork Level Authentication runs CredSSP inside TLS, so the client proves its identity before the server sets up an RDP session. A client that fails authentication never reaches the MCS connect exchange or any later RDP phase.
solid answer
~40 sNetwork Level Authentication (NLA) is RDP using the CredSSP protocol as its external security protocol: a TLS channel is built first, SPNEGO then authenticates the user and the server inside it, and only after that does the normal RDP connection sequence continue with the MCS Connect Initial PDU. Everything that builds the session, such as channel joins, capability exchange and the virtual channels, therefore happens only for a client that already authenticated. The unauthenticated part of the server that a stranger can reach shrinks to the negotiation, the TLS handshake and the CredSSP exchange. It is not encryption by itself and not a substitute for patching or for keeping the listener off the internet.
go deeper
Recall that NLA authenticates before the session is built, using CredSSP over TLS, and that this keeps unauthenticated clients away from the later RDP phases.
Place the CredSSP handshake in the sequence: after the X.224 negotiation, before the MCS Connect Initial PDU, with authorization checked separately and the negotiation re-confirmed in the core data.
Use the failure signals, HYBRID_REQUIRED_BY_SERVER against an authorization error, to tell a client that cannot do NLA from a user who is not permitted, and explain what the early result PDU changes.
Frame NLA as one layer: it narrows what a stranger reaches, but patching, listener exposure and what is delegated decide the real risk, so a policy must address all three.
## What NLA is Network Level Authentication (NLA) is the name for RDP using the Credential Security Support Provider protocol (CredSSP, specified in MS-CSSP) as its external security protocol. In MS-RDPBCGR the client asks for it with the `PROTOCOL_HYBRID` (`0x00000002`) flag in the RDP Negotiation Request appended to the X.224 Connection Request. `PROTOCOL_HYBRID_EX` (`0x00000008`) is CredSSP together with an early authorization result. CredSSP is TLS with SPNEGO (which selects Kerberos or NTLM) running inside it, and it ends by delegating the user's credentials to the server. The word "network level" means the authentication happens on the network connection, before the remote desktop session is built. ## Where it sits in the connection sequence In the negotiation-based sequence of MS-RDPBCGR the order is: 1. The client appends its requested protocols to the X.224 Connection Request; the server answers in the X.224 Connection Confirm with the protocol it selected. 2. If CredSSP was selected, the TLS handshake and the CredSSP authentication run to completion. 3. Only then do the RDP messages resume, with the MCS Connect Initial PDU (optionally preceded by the Early User Authorization Result PDU). From this point all RDP traffic is protected by the external security protocol. 4. Because the negotiation PDUs travelled in the clear, both sides repeat the requested and selected protocols inside the Client Core Data and Server Core Data, so that tampering with the negotiation is detected. 5. Whether this user may log on remotely at all is a separate authorization check. With plain CredSSP it runs after the credentials have arrived and the MCS channel joins have been exchanged; on failure the server sends a Set Error Info PDU with `ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES` (`0x00000009`) and closes the connection. MS-RDPBCGR also describes a Direct Approach in which client and server are hard-coded to use CredSSP and no protocol negotiation takes place. ## Why authenticating first helps - **A smaller pre-authentication surface.** A client that has not proved an identity can reach the X.224 negotiation, the TLS handshake and the CredSSP exchange. The MCS connect exchange, channel joins, capability exchange and the session's virtual channels all come after authentication. - **One authentication, by the real packages.** The user is verified by Kerberos or NTLM through SPNEGO, not by a logon prompt inside a half-built session. - **The server is checked before secrets move.** The client validates the server's side of the exchange before it sends the user's credentials, which are the last message of CredSSP. - **A clear failure point.** A bad credential ends the connection during the CredSSP handshake; the specification maps invalid credentials to the TLS fatal alert `TLS1_ALERT_ACCESS_DENIED` (49). ## What NLA does not do - It is not the encryption of the session. TLS provides the encrypted channel; the transport layer choices belong to the material on RDP encryption. - "Smaller" is not "zero". Parsing of the negotiation, TLS and CredSSP messages happens before authentication completes, so an NLA-only listener still needs patching and should not be exposed to the internet; exposure is its own subject. - By default CredSSP delegates the user's credentials to the server as its last step. Which credentials arrive, and the modes that withhold them, are covered in the questions on delegation. ## What an operator sees | Situation | What the spec defines | |---|---| | Server requires NLA, client cannot do CredSSP | `RDP_NEG_FAILURE` with failure code `HYBRID_REQUIRED_BY_SERVER` (`0x00000005`) | | Credentials are wrong | CredSSP fails; the TLS fatal alert `TLS1_ALERT_ACCESS_DENIED` (49) is defined for invalid credentials | | Authenticated user may not log on remotely | `ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES` (`0x00000009`), or `AUTHZ_ACCESS_DENIED` (`0x00000005`) in the Early User Authorization Result PDU when `PROTOCOL_HYBRID_EX` was used | ## Reading a failed connection by layer A reviewer can triage a failure by asking which layer refused it: - **Negotiation refused.** The client received a negotiation failure before any user name was examined. The cause is a protocol mismatch, such as a client without CredSSP meeting a server that requires it. - **CredSSP failed.** The TLS or SPNEGO exchange ended in an authentication error. The cause is the credential, the Kerberos or NTLM path, or a CredSSP version disagreement, and no session was created. - **Authorization refused.** Authentication succeeded and the server then refused the user, which is a rights question about who may log on remotely and not a credential question. Keeping the three apart stops a team from resetting passwords to fix a rights problem. ## Takeaway for the estate When a reviewer asks "is NLA on", the useful follow-ups are whether the server requires it (so a client without CredSSP is refused at negotiation instead of falling back), and what the client delegates once the handshake succeeds. NLA moves authentication ahead of the session; it does not decide who is permitted, how the traffic is encrypted, or whether the listener should face the internet.
- What does an RDP client receive when the server requires NLA and the client cannot do CredSSP?The server appends an RDP Negotiation Failure structure to the X.224 Connection Confirm with failure code `HYBRID_REQUIRED_BY_SERVER` (`0x00000005`). It is a negotiation refusal, not a credential error, so it appears before any user name is checked.
- What does PROTOCOL_HYBRID_EX add compared with PROTOCOL_HYBRID?CredSSP is followed by the Early User Authorization Result PDU, sent right after the CredSSP handshake and before the MCS Connect Initial PDU. It carries `AUTHZ_SUCCESS` (0) or `AUTHZ_ACCESS_DENIED` (`0x00000005`), so a user without permission learns it before the session phases begin.
- Does NLA mean the password never reaches the RDP server?No. CredSSP's last step delegates the user's credentials to the server, so a normal NLA connection does hand them over. Restricted Admin mode and Remote Credential Guard are the modes that withhold them.
- NLA is just the encryption of the RDP desktop traffic.
- NLA keeps the password on the client and never sends it.
- With NLA on, a listener is safe to publish to the internet.
- A server requiring NLA falls back to a password prompt in the session.
- NLA decides who is permitted to log on remotely.