Skip to content
Access control Write-up Intermediate

Abusing Ntlm Relay And Pass The Hash For Admin

The report describes how to combine NTLM relaying with Pass-The-Hash to gain administrative access. An attacker on the same network can capture Net-NTLM hashes, relay them to a machine with SMB signing disabled, dump local hashes, and then use those hashes to authenticate as an administrator.

Julian Runnels Follow

Published on infosecwriteups.com

With the rise of PetitPotam recently, I was inspired to do a bit more research into NTLM Relaying as a whole. So I spent a while reading through different techniques and managed to combine two ideas that I had seen often, Responder/NTLMRelayx and Pass-The-Hash on some of my work engagements to significant effect.

Julian Runnels, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the root cause is that SMB signing is disabled on the target, allowing an attacker to relay captured NTLM authentication to it.

Impact

An attacker could gain administrative access to the domain controller and potentially the entire network, unless defences like SMB signing, LLMNR/NBT-NS disabling, or monitoring are in place.

What the attacker needed

Layer 2 access to the local network; Impacket installed on Linux; SMB signing disabled on victim

The fix

The report recommends enabling SMB signing, disabling LLMNR and NBT-NS, and monitoring for related traffic and events.

How it was found

  1. Identify hosts with SMB signing disabled using CrackMapExec.
  2. Start ntlmrelayx.py with SOCKS and a target list.
  3. Configure proxychains to use the SOCKS proxy.
  4. Disable Responder's SMB and HTTP servers and start Responder.
  5. Coerce a victim to authenticate to the attacker (e.g., via a fake share).
  6. Use secretsdump.py through the SOCKS proxy to dump local hashes.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

NTLM is a Windows login protocol. When a computer tries to access a network share, it sends a hashed version of the user's password (a Net-NTLM hash). If an attacker can trick the computer into sending that hash to them, they can relay it to another machine that accepts such authentication, effectively logging in as the user without knowing the password. This report shows how to do that and then steal even more powerful password hashes to take full control.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Julian Runnels

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.