Protected Users, Removing NTLM and Kerberos Armoring
The previous lessons removed specific edges: a weak password here, an unconstrained server there. This one turns off whole mechanisms for the accounts and machines that matter most. Protected Users is a group whose members simply can't use the weak parts of Windows authentication: no NTLM, no RC4 or DES, no delegation, no cached credentials, short-lived TGTs. Restricting NTLM domain-wide removes pass-the-hash, relay and NTLMv2 capture as a class, at the cost of finding everything that still needs it. Kerberos armoring (FAST) protects the one Kerberos exchange that is otherwise exposed to anyone who can reach a DC. All three are rolled out in audit mode first, and all three need inventory before enforcement; this lesson builds the NTLM inventory in pandas.
Protected Users
Membership in Protected Users (RID 525, domain functional level Windows Server 2012 R2 or later for the DC-side protections) changes behaviour on supported clients and on DCs:
| Protection | What it removes |
|---|---|
| no NTLM authentication | pass-the-hash, NTLM relay and NTLMv2 capture for the account |
| no DES or RC4 in Kerberos pre-authentication | overpass-the-hash with an NT hash, RC4 roasting of the account's AS exchange |
| no delegation (constrained or unconstrained) | the account can't be impersonated by delegating services (Delegation) |
| TGT lifetime 4 hours, not renewable beyond that | stolen TGTs expire quickly |
| no cached credentials (no offline sign-in), no CredSSP/WDigest plaintext caching, no NTLM hash kept in LSASS | less to steal from a machine the account signed in to |
Who belongs there: every Tier 0 and Tier 1 human admin account, after testing. Who must not: computer and service accounts (they would fail to authenticate the way their services need), and anyone who must sign in offline on a laptop. Add accounts gradually and watch for failures in the Microsoft-Windows-Authentication/ProtectedUser-Client log on devices and …/ProtectedUserFailures-DomainController on DCs (both are disabled by default: enable them first).
Removing NTLM, step by step
NTLM restrictions are a set of Group Policy security options ("Network security: Restrict NTLM: …") for outgoing traffic from clients, incoming traffic on servers, and NTLM authentication in the domain on DCs, each with an audit setting and exception lists. When audited, Windows logs to Microsoft-Windows-NTLM/Operational: events for outgoing NTLM on clients, incoming NTLM on servers, and NTLM pass-through on DCs (IDs 8001–8004). Microsoft deprecated all NTLM versions in June 2024 and removed NTLMv1 starting with Windows 11 24H2 and Windows Server 2025, so this work also prepares for the future.
The usual causes of remaining NTLM: connections to servers by IP address or by an alias without an SPN, old applications and appliances (printers, NAS, scanners), non-domain machines, local accounts, and services configured for NTLM explicitly. The program builds the inventory from a synthetic audit export (client, server, account, reason) and estimates what an enforced restriction with an exception list would break.
import pandas as pd
ntlm = pd.DataFrame([
# client, server, account, why NTLM was used (from the audit context)
("WS01", "10.10.0.23", "alice", "server addressed by IP"),
("WS02", "10.10.0.23", "bob", "server addressed by IP"),
("WS02", "FS01", "bob", "ok"), # Kerberos fallback once
("SCAN-3F", "FS01", "scan-svc", "device without Kerberos"),
("SCAN-3F", "FS01", "scan-svc", "device without Kerberos"),
("WS01", "files.corp.lab.test", "alice", "alias without SPN"),
("APP01", "SQL01", "svc-app", "application forces NTLM"),
("WS01", "WS01", "labadmin", "local account"),
("KIOSK7", "WEB01", "kiosk", "non-domain machine"),
], columns=["client", "server", "account", "reason"])
print("NTLM authentications by root cause:")
print(ntlm.groupby("reason").size().sort_values(ascending=False).to_string())
fixes = {"server addressed by IP": "use the DNS name (or register an IP SPN) so Kerberos works",
"alias without SPN": "setspn -S cifs/files.corp.lab.test FS01",
"application forces NTLM": "reconfigure the app for Negotiate/Kerberos; vendor ticket",
"device without Kerberos": "replace or isolate; temporary exception",
"non-domain machine": "join it, or move it to a separate service",
"local account": "local logons are not domain NTLM; restrict separately",
"ok": "one-off fallback; watch"}
print("\nplan:")
for reason in ntlm.reason.unique():
print(f" {reason:26} -> {fixes[reason]}")
exceptions = {("SCAN-3F", "FS01")} # documented, time-limited
domain = ntlm[ntlm.reason != "local account"]
blocked = domain[[(c, s) not in exceptions for c, s in zip(domain.client, domain.server)]]
print(f"\nif enforced today: {len(blocked)} of {len(domain)} domain NTLM authentications would fail, "
f"from {blocked.client.nunique()} client(s); fix those first")NTLM authentications by root cause:
reason
device without Kerberos 2
server addressed by IP 2
alias without SPN 1
application forces NTLM 1
local account 1
non-domain machine 1
ok 1
plan:
server addressed by IP -> use the DNS name (or register an IP SPN) so Kerberos works
ok -> one-off fallback; watch
device without Kerberos -> replace or isolate; temporary exception
alias without SPN -> setspn -S cifs/files.corp.lab.test FS01
application forces NTLM -> reconfigure the app for Negotiate/Kerberos; vendor ticket
local account -> local logons are not domain NTLM; restrict separately
non-domain machine -> join it, or move it to a separate service
if enforced today: 6 of 8 domain NTLM authentications would fail, from 4 client(s); fix those first
Most of the inventory is self-inflicted: servers addressed by IP and aliases without SPNs. Fixing names (and SPNs) moves those clients to Kerberos with no user-visible change. The scanner gets a documented exception, scoped to one client and one server, with an end date. Repeat the audit until the "would fail" number reaches zero, then enforce on servers first ("Restrict NTLM: Incoming NTLM traffic: Deny all domain accounts"), then on DCs.
Kerberos armoring (FAST)
The AS exchange is the only Kerberos exchange not protected by an existing session key: an attacker who can observe it gets material for offline guessing, and anyone can send AS-REQs. Flexible Authentication Secure Tunneling (FAST, RFC 6113), which Microsoft calls Kerberos armoring, wraps the user's AS-REQ in a tunnel protected by the computer's TGT. Enabled by two policies ("KDC support for claims, compound authentication and Kerberos armoring" on DCs, and "Kerberos client support for claims, compound authentication and Kerberos armoring" on clients), it protects pre-authentication against offline guessing from captures, enables signed error messages, and is a prerequisite for authentication policies and silos (tiering). In 4768 events, armored requests show pre-authentication type 138 (encrypted challenge).
How failures and gaps are detected
- Protected Users failures in the DC operational logs above; 4768/4771 failures for members with RC4 or DES.
- NTLM still used by protected accounts or Tier 0: 4776 on DCs and 4624 with package NTLM for those accounts are now alerts by themselves, because the configuration should make them impossible.
- Residual NTLM: trend the audit events per week; new sources appear when new systems are installed.
How it is rolled out
- Put a test admin in Protected Users; verify all admin tools work; then move all Tier 0 and Tier 1 human admins in, a team at a time.
- Enable NTLM auditing everywhere, build the inventory, fix names and SPNs, document exceptions.
- Enforce NTLM restrictions on Tier 0 servers and DCs first, then member servers, then clients.
- Enable Kerberos armoring in "supported" mode, then require it where all clients support it.
- Keep measuring: NTLM volume, Protected Users failures, and RC4 tickets.
Pitfalls
- Adding service or computer accounts to Protected Users and breaking services.
- Laptop users in Protected Users who then can't sign in offline.
- Restricting NTLM on DCs first, before the inventory is clean: authentication outages across the domain.
- Exceptions without end dates, which become permanent.
Practice
1. Which of the inventory's reasons can be fixed without touching the client application?
"Server addressed by IP" (change shortcuts, scripts and drive mappings to the DNS name) and "alias without SPN" (register the SPN on the server's account). Both let the existing client use Kerberos.
2. A domain admin in Protected Users can no longer connect to an old appliance's web interface with Windows authentication. What is happening, and what is the right fix?
The appliance only accepts NTLM, which Protected Users members can't use. The right fix is to administer the appliance with a separate, appliance-local admin account (or replace it), not to remove the admin from Protected Users.
3. Add ("WS02", "files.corp.lab.test", "bob", "alias without SPN") to the inventory. How do the counts change?
"alias without SPN" becomes 2, and the enforcement estimate becomes 7 of 9 domain NTLM authentications, still from 4 clients, because WS02 is already among them.
Test yourself
Which protection does Protected Users membership give an account?
- A longer password
- No NTLM, no RC4/DES pre-authentication, no delegation, no cached credentials and 4-hour TGTs
- Domain Admin rights
- Automatic MFA
Which accounts should not be added to Protected Users?
- Tier 0 admins
- Computer and service accounts
- Server admins
- Help-desk admin accounts after testing
What is the most common cause of avoidable NTLM in a domain?
- Kerberos bugs
- Servers addressed by IP address or by aliases without an SPN
- Too many DCs
- SMB signing
What does Kerberos armoring (FAST) protect?
- SMB file transfers
- The AS exchange, by tunnelling it inside the computer's TGT
- DNS queries
- LDAP binds