Back to Skills

ntlm-relay-coercion

NTLM relay and authentication coercion playbook. Use when capturing and relaying NTLM authentication to escalate privileges via SMB, LDAP, HTTP, or MSSQL relay targets, combined with PetitPotam, PrinterBug, and other coercion methods.

1,320stars179forksUpdated 7/9/2026

Security Assessment

Low Risk(75/100)

Detected risks:

Remote Code Execution([SKILL.md] exec ()
Security Score75/100

About ntlm-relay-coercion

A technical playbook documenting NTLM relay and authentication-coercion techniques used in Active Directory penetration testing and red-team assessments. It explains the relay flow, in which a coerced or poisoned victim's NTLM authentication is forwarded through an attacker to a target that accepts it, and contrasts NTLMv1 and NTLMv2 in terms of relayability and crackability.

A relay-target matrix summarizes what each protocol yields and its default protections: SMB (command execution when admin, signing required on domain controllers), LDAP and LDAPS (ACL modification, RBCD, shadow credentials, adding computers, with channel binding on LDAPS), HTTP for ADCS (certificate enrollment, ESC8), MSSQL (queries and xp_cmdshell), and others. Signing checks are shown with crackmapexec and nmap.

Credential capture and poisoning are covered with Responder (LLMNR, NBT-NS, WPAD, mDNS), including how to disable its HTTP and SMB servers so ntlmrelayx handles relaying instead. ntlmrelayx usage spans SMB execution, SAM dumping, and SOCKS sessions; LDAP-based delegate-access (RBCD), shadow credentials, computer creation, and domain dumps; ADCS HTTP relay for certificates; and MSSQL command execution. mitm6 is described as an IPv6/DHCPv6 DNS-takeover primitive that pairs with WPAD to trigger authentication for relay.

Cross-protocol relay is addressed (SMB to LDAP and WebDAV to LDAP), along with the SMB-signing constraints that limit it and how WebDAV's HTTP-based NTLM, via the WebClient service, sidesteps them. A decision tree helps choose capture method and relay target based on whether code execution, domain escalation, or certificate access is the goal, and the playbook cross-references companion material on coercion methods (PetitPotam, PrinterBug, DFSCoerce), ADCS, ACL abuse, Kerberos attacks, and lateral movement. It is presented as reference material for authorized security testing.

FAQ

Which target protocols does the playbook cover for relaying?

SMB (command execution and file access), LDAP and LDAPS (ACL changes, RBCD, shadow credentials), HTTP for ADCS (ESC8 certificate enrollment), and MSSQL (queries and xp_cmdshell), among others.

How is SMB signing checked before relaying?

With tools such as crackmapexec (using --gen-relay-list to list hosts without required signing) and nmap's smb2-security-mode script.

What is Responder used for here?

LLMNR, NBT-NS, WPAD, and mDNS poisoning to capture NTLM authentication; its HTTP and SMB servers can be disabled so ntlmrelayx performs the relay instead.

What does mitm6 do?

It exploits IPv6 auto-configuration via DHCPv6 to become the victim's DNS server, then answers WPAD queries to trigger NTLM authentication that is relayed, typically to LDAP.

Why use WebDAV-based coercion?

WebDAV sends NTLM over HTTP through the WebClient service, which avoids the SMB signing requirements that can block cross-protocol relay to LDAP.

All Files

2 files
SKILL.md8.3 KB
View
COERCION_METHODS.md7.2 KB
View

Install ntlm-relay-coercion

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill