skip to content

NLA Authentication

NLA runs CredSSP, which carries SPNEGO (Kerberos or NTLM) inside TLS, so a client proves who it is before any session exists. Interviewers ask about delegation: which credentials reach the server.

on this pageshow

explore

questions

6

In RDP, what does Network Level Authentication do before a session exists, and why does authenticating first reduce what an unauthenticated client can reach?

level: juniorimportance: must knowfreq 62%

answer

  1. authenticate first, session second
  2. a protocol carried inside TLS
  3. requested through a negotiation flag
  4. later RDP phases stay unreachable

basics

~20 s

Network 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 s

Network 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

for a junior

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.

for a middle

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.

for a senior

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.

for a principal

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.
open as a page

Why can an administrator connected to a host over RDP with Remote Credential Guard reach a file share from that session, while one connected with Restricted Admin mode cannot?

level: seniorimportance: must knowfreq 40%

basics

~20 s

Neither mode sends a credential to the host. Restricted Admin reaches other resources as the host's own identity, so there is no single sign-on or multi-hop. Remote Credential Guard redirects Kerberos requests to the client, so the user's identity works onward.

open as a page

Inside NLA, in what order do TLS, SPNEGO, the public-key binding and credential delegation run in CredSSP, and what does each step settle?

level: middleimportance: should knowfreq 38%

basics

~20 s

CredSSP builds a TLS channel, runs SPNEGO inside it to authenticate with Kerberos or NTLM, has the client prove the server's TLS public key matches that authentication, and only then delegates the user's credentials to the server.

open as a page

What did the 2018 CredSSP update for CVE-2018-0886 change, and what do the Force Updated Clients, Mitigated and Vulnerable settings mean for a client and a server?

level: middleimportance: should knowfreq 27%

basics

~20 s

The March 2018 update corrected how CredSSP validates requests (CVE-2018-0886) and added the Encryption Oracle Remediation policy. Force Updated Clients blocks insecure fallback and refuses unpatched clients, Mitigated blocks fallback but accepts them, and Vulnerable allows fallback.

open as a page

After the 2018 CredSSP update, patched Windows clients cannot open RDP sessions to servers not yet updated and show an encryption oracle error; what explains it and how do you sequence the fix?

level: seniorimportance: should knowfreq 17%

basics

~20 s

Patched clients refuse the insecure CredSSP version that unpatched servers offer and log event 6041. Patch servers first, then clients, run Mitigated, and enforce Force Updated Clients only once every client supports the newest version.

open as a page

For administrator RDP to tier-0 jump hosts that must hold no reusable credential, which delegation mode do you mandate, how do you enforce and audit it, and what does each choice cost?

level: principalimportance: should knowfreq 13%

basics

~20 s

Mandate a credential-less mode: Restricted Admin when work stays on the jump host, Remote Credential Guard when administrators need onward single sign-on over Kerberos. Enable it on the host, require it by client policy, and audit event 4624.

open as a page