Network ntlm relay

From NoorQureshi/security-skills · View interactive version

Network ntlm relay is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Coerce and relay NTLM authentication for lateral movement and privilege escalation (relay to SMB, LDAP, ADCS). Load in an AD network with a foothold, on "NTLM relay", "responder", "coerce", no/absent SMB signing, or PetitPotam/PrinterBug. Signals: LLMNR/NBT-NS traffic, SMB signing off, MS-RPRN/EFSRP

How to use this skill

Skill file

NTLM coercion & relay

When it applies

You're on an AD network (unauthenticated or with a foothold) and want to move laterally or escalate

without cracking passwords. If SMB signing isn't enforced (or you target LDAP/ADCS), you can relay

a victim's NTLM authentication to a service and act as them.

Why it works

NTLM authentication isn't bound to the channel: if you can make a machine/user authenticate to you

(coercion or poisoning), you forward that authentication to another service. Without signing

(SMB) or channel binding (LDAP/HTTP), the target accepts it, and you get access as the coerced identity —

often a computer account with local admin elsewhere, or a DC to ADCS.

Method

  1. Get victims to authenticate to you:

(MS-EFSRPC), PrinterBug (MS-RPRN), dfscoerce.

  1. Find relay targets: hosts with SMB signing not required (nxc smb <range> --gen-relay-list),

or LDAP/LDAPS on DCs, or the ADCS web enrollment endpoint.

  1. Relay: impacket-ntlmrelayx -tf targets.txt -smb2support (SMB), -t ldaps://DC (LDAP — e.g.

grant RBCD or DCSync), or -t http://CA/certsrv/certfnsh.asp --adcs (ESC8 → cert for a DC → DA,

chain with ad-adcs).

  1. Escalate: relayed to LDAP → set RBCD on a computer you control → impersonate DA on it;

relayed to ADCS → auth as the DC.

Gotchas

Verify success

Access/action as the relayed identity — a session/command on a target host, RBCD set, a cert issued

for a DC, or hashes dumped — demonstrating relay-based movement/escalation.

References

impacket ntlmrelayx; SpecterOps relay research; PetitPotam/Coercer; "Certified Pre-Owned" (ESC8).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.