Microsoft Learn
NTLM overviewChallenge-response mechanics, Kerberos as the preferred domain mechanism, and NTLM's current status as deprecated yet supported.
Active Directory attack path · NTLM · Relay · MITRE ATT&CK T1557.001
NTLM relies on a challenge-response exchange: the password itself is never sent to the remote service, which only verifies a response computed from the identity's secret. That property protects the secret, but it does not prevent relay attacks.
If an attacker manages to sit in the path of an authentication, or to trigger that authentication, some configurations allow the exchange to be passed on to another service without ever knowing the victim's password. The receiving service then authenticates an identity that never intended to connect to it.
The risk therefore does not come from NTLM alone. It comes from the combination of an exploitable authentication source, a target insufficiently protected against relay, and the real privileges of the relayed identity.
The real question
Which identities can be made to authenticate, towards which destinations, and which services still accept that authentication without checking the context in which it was produced?
NTLM authenticates an identity without sending its secret to the remote service: the server issues a challenge, the client computes a response from its secret, and that response is validated by the server or by a domain controller. The exchange is a proof of possession, valid for that session and that service.
Two very different scenarios can start from that exchange, and confusing them leads to wrong analysis, misdirected remediation and unsuitable detection. The first goes after the secret; the second uses an authentication while it is happening.
How the exchange works
The attacker collects NTLM authentication material that may later be attacked offline, with success depending entirely on how strong the secret is and how much time is available. This scenario targets the identity's secret, not the live session.
The attacker does not necessarily try to recover the secret: the authentication exchange is passed on in real time to another service, which accepts it and then treats subsequent actions as coming from the relayed identity. The secret stays unknown, yet the identity is used.
Every arrow depends on the real configuration: an authentication trigger only creates a path if some target accepts the relay, and the final impact stays bounded by what the relayed identity can actually do.
Legitimate identity or machine
NTLM authentication triggered or diverted
Attacker in a relay position
NTLM exchange passed to another target
The target accepts the authentication without sufficient relay protection
The attacker acts with the rights of the relayed identity
A further step becomes possible in the attack path
Nothing about this sequence is automatic: successful coercion with no exploitable target leads nowhere, and a weakly protected target is only reachable if an exploitable authentication can be presented to it.
NTLM Relay grants no extra privilege by magic. It lets an attacker use elsewhere the privileges the relayed identity already holds.
A relay requires an authentication to relay. Two very different families of mechanisms can produce one, and they are not fixed the same way: one concerns name resolution on the network, the other concerns Windows interfaces able to trigger an outbound connection.
When a workstation fails to resolve a resource through normal mechanisms, some local resolution protocols may lead it to contact a machine other than the expected one, including a machine controlled by an attacker, which then receives an authentication attempt.
These mechanisms are not vulnerabilities in themselves: they become a problem when they stay enabled without a real need, on segments where an unmanaged machine can answer.
Some Windows interfaces have historically allowed a machine to be pushed into initiating an authentication towards a system chosen by the caller. The most documented cases involve interfaces related to file encryption and to the print spooler service, commonly referenced under the research names PetitPotam and PrinterBug.
Coercion is not yet compromise: it provides an authentication that still has to be relayed to an exploitable target, using an identity whose privileges make the operation worthwhile.
Addressing only the trigger therefore closes one door among several. An organisation that blocks one specific coercion interface, while leaving its critical services able to accept a relayed authentication, keeps the whole class of paths in its environment.
Relay protections are specific to each protocol: they bind the authentication to the session in which it was produced, or require a signature the attacker cannot produce. Assessing an environment therefore means checking, service by service, what is actually required.
SMB signing
An SMB service that does not properly require signing can be a relay target depending on context, especially where legacy servers keep settings more permissive than recent defaults.
LDAP signing
Insufficiently protected binds can enable certain relay scenarios towards the directory, with an impact that depends on the relayed identity's permissions over the targeted objects.
LDAP channel binding
TLS encryption alone does not protect against every relay scenario: channel binding ties the authentication to the TLS session in which it is presented, which breaks reuse of the exchange elsewhere.
Extended Protection for Authentication and HTTPS
AD CS enrollment endpoints accepting NTLM without EPA are the documented ESC8 scenario, with a specific consequence: the target does not merely grant access, it can issue a credential.
When an NTLM authentication can be relayed to an SMB server that does not block the scenario, the attacker acts with the rights granted to the relayed identity on that specific target. There is no generic power over the domain, only the exact scope of that identity on that server.
If the relayed identity holds local administrative privileges on the targeted machine, the impact can extend to remote administration operations and open a further step in the attack path. If it only holds limited rights, the same technique produces a result matching those rights.
This is why mapping accounts with broad local administrative privileges across many machines matters as much, in the analysis, as the protocol configuration itself: it determines what a successful relay makes possible.
Active Directory does not only authenticate. LDAP also allows objects, attributes and authorisation relationships to be read and modified where the identity in use holds the necessary permissions on the objects involved.
In some scenarios, an NTLM relay towards LDAP or LDAPS can therefore be used to change the rights graph rather than to perform an immediately visible action: the consequence is not a one-off access but a persistent relationship written into the directory. Delegations are the clearest example of that category, in particular Resource-Based Constrained Delegation.
Depending on the relayed identity and the ACLs present in the directory, a path may allow the creation or modification of a delegation relationship such as RBCD. That possibility is not an automatic consequence of relaying to LDAP: it depends entirely on the effective permissions of the identity used over the targeted object.
Active Directory Certificate Services can expose enrollment services through IIS, notably Certificate Authority Web Enrollment and the Certificate Enrollment Web Service. These interfaces serve legitimate enrollment needs, yet they are reachable over HTTP and accept Windows authentication.
If those endpoints accept NTLM without suitable relay protections, notably HTTPS and Extended Protection for Authentication, Microsoft considers them exposed to the ESC8 scenario. This target differs from all the others: it does not grant an access, it can issue a credential usable independently afterwards.
The documented sequence
Where the relayed principal is a domain controller
Both scenarios concern Active Directory Certificate Services, but they do not target the same object or the same weakness, and they are therefore not fixed by the same measures.
The problem lies mainly in the properties and permissions of a certificate template: a legitimate identity requests a dangerous certificate itself, using its own authentication.
The problem lies mainly in an enrollment endpoint accepting a relayed authentication without sufficient protections: the attacker uses another principal's identity by relaying its authentication.
Presenting the two scenarios as one vulnerability leads to fixing the wrong object: hardening templates does not protect an exposed endpoint, and protecting an endpoint does not correct an over-permissive template.
NTLM is now deprecated by Microsoft, yet it remains supported in Windows for compatibility reasons, and Kerberos remains the preferred authentication mechanism inside an Active Directory domain. Deprecation therefore means neither absence of the protocol nor absence of a path.
Recent Windows versions have also hardened their defaults, which changes the exposure of a modern estate compared with analyses published a few years ago. That hardening applies to new installations and default configurations, not to the effective state of an information system built up layer by layer.
What changed and what still has to be verified
The operating system version therefore does not prove that a path is closed: a recent estate can still carry documented exceptions, older servers or third-party applications that restore the conditions for relay. Only an audit of the effective configuration, on clients as well as servers, can settle the question.
No single event characterises a relay: each signal, taken alone, describes an operation that may be perfectly normal. Detection therefore means rebuilding a coherent sequence across protocol usage, the authentication observed on the target, network behaviour and the specific service involved.
The credential validation event on the domain controller documents NTLM authentications and shows which accounts still use the protocol, from which machines and how often. It forms the basis of the inventory, not an alert.
On the targeted system, the logon event documents the logon type, the authentication package, the network source and the identity. A successful network NTLM logon can be entirely normal: value comes from correlating it with an unexpected source, target and behaviour.
The network layer carries signals that authentication logs do not, following the detection logic associated with the matching MITRE technique: abnormal responses to legacy resolution mechanisms, traffic from an unauthorised host, unusual SMB authentications between systems with no reason to talk to each other, changes re-enabling certain resolution mechanisms, and service creation following a compromise.
Each targeted service brings its own telemetry. On the directory side, diagnostic events identify clients that do not meet signing or channel binding requirements. On the PKI side, Certification Services events allow a certificate request to be matched with the network context in which it was presented, using IIS logs as well.
A relay path is made of a trigger, a target and an identity. Every link removed reduces the corresponding class of paths, and the progressive approach below avoids the trap of an abrupt shutdown that would break business usage still depending on the protocol.
Before any global disablement, inventory the systems still using NTLM, identify legacy dependencies, separate business usage, technical usage and historical exceptions, then prepare a migration towards Kerberos or more modern mechanisms.
Prefer Kerberos and restrict NTLM once dependencies are known. On the most privileged systems, domain controllers in particular, prioritise outbound NTLM authentication capability, which directly feeds coercion scenarios.
Blind disablement across the whole estate, with no audit phase and no handling of exceptions, causes service breakage without guaranteeing that the paths are closed.
Require SMB signing wherever the configuration does not already do so, verifying the real configuration of clients as well as servers, then take advantage of recent NTLM blocking mechanisms for SMB where the context allows.
Require LDAP signing after identifying incompatible clients, and address channel binding for LDAPS and the authentications concerned, using audit modes before enforcement where the estate requires it.
For AD CS enrollment services, enforce HTTPS, enable Extended Protection for Authentication with the Required mode where compatible, and reduce or remove NTLM on those endpoints where possible.
HTTPS alone does not address ESC8: it is the combination of encryption and Extended Protection for Authentication that binds the authentication to the session presented.
Reduce legacy resolution mechanisms that are no longer needed and monitor outbound authentication from critical systems, without relying solely on blocking one specific coercion tool.
Blocking a known coercion interface only addresses a trigger. Preventing a Tier 0 identity from emitting exploitable NTLM authentication, and preventing critical services from accepting a relayed authentication, breaks an entire class of paths regardless of the tooling used.
A configuration inventory may show that NTLM is still active, that SMB signing is not enforced everywhere, that LDAP signing remains incomplete, that an AD CS endpoint runs without EPA and that a domain controller can initiate authentication towards an insufficiently controlled perimeter. Taken individually, those observations produce a list of findings handled according to team availability.
Linked together, the same observations describe a practicable path towards Tier 0, and the order of fixes stops being arbitrary: some measures close one configuration point, others remove a link shared by many paths. That difference in effect is what the analysis must make visible.
The question the assessment must answer
In this environment, can an authentication obtained under coercion still be presented to a service that accepts it, and how far does it lead?
The assessment therefore looks for
The other pages in this collection. They are not mandatory successive steps: each fits into an attack path according to what the environment allows.
Attack a service account secret offline, where relay does without that secret entirely.
Abuse an over-permissive certificate template using one's own authentication.
Abuse replication rights to obtain domain secrets.
Divert an authentication in progress towards a service that accepts it.
First-tier references used to support this page.
Microsoft Learn
NTLM overviewChallenge-response mechanics, Kerberos as the preferred domain mechanism, and NTLM's current status as deprecated yet supported.
Microsoft Support
KB5005413 — Mitigating NTLM Relay Attacks on Active Directory Certificate Services (AD CS)Microsoft's framing of PetitPotam as an NTLM relay, the role of Extended Protection for Authentication and HTTPS on enrollment services, and NTLM reduction.
Microsoft Defender for Identity
Certificates security posture assessment — AD CS enrollment endpoints (ESC8)Current qualification of IIS enrollment endpoints accepting NTLM without HTTPS or EPA as exposed to NTLM relay.
Microsoft Learn
SMB security hardening and SMB signingSMB signing, recent client and server defaults, and NTLM blocking mechanisms for SMB.
Microsoft Learn
Enable LDAP signing in Windows ServerLDAP signing, channel binding, defaults in recent deployments and diagnostic events useful before enforcement.
Microsoft — Advanced Audit Policy Configuration
Event ID 4776 — The domain controller attempted to validate the credentials for an accountExact meaning of the event and the limits of its interpretation in a relay context.
Microsoft — Advanced Audit Policy Configuration
Event ID 4624 — An account was successfully logged onLogon type, authentication package and network source, used to characterise an NTLM authentication on the target.
Microsoft — Advanced Audit Policy Configuration
Event ID 4886 — Certificate Services received a certificate requestLogging of certificate requests, used here only for the AD CS scenario.
Microsoft — Advanced Audit Policy Configuration
Event ID 4887 — Certificate Services approved a certificate request and issued a certificateCorrelation between the request received and the certificate actually issued in the ESC8 scenario.
ANSSI — CERT-FR
Vulnerability classes in Active Directory environmentsActive Directory control points, authentication coercion and reduction of outbound NTLM authentication on the most privileged systems.
MITRE ATT&CK
T1557.001 — Name Resolution Poisoning and SMB RelayMapping of the scenario to Adversary-in-the-Middle and the DET0462 detection logic associated with the technique.
The pages that extend this one, from the attack path to the assessment approach.
The parent page of the collection and the overview of techniques.
The service: analysis of accounts, delegations, sensitive groups and prioritised remediation.
The possible next step when the identity obtained carries replication capabilities.