Skip to content
Misconfiguration Write-up Intermediate

Attacking Home Active Directory Smb Relay

The write-up shows how an attacker on a home network can relay captured NTLM authentication from one machine to another when SMB signing is not required, gaining access as the victim user. Because one user is a local administrator on the second machine, the relayed session is used to dump credentials and open an interactive shell.

Ahmed Makawi Follow

Published on systemweakness.com

The main reason how this attack can happen is when SMB signing is disabled. by default, it’s disabled.

Ahmed Makawi, on systemweakness.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 SMB signing was not required on the target hosts, so captured NTLM authentication could be relayed to them and accepted as valid.

Impact

An attacker on the same network could act as another user on a host that does not require SMB signing, dump credentials and run commands there; the domain controller was not affected because it requires signing.

What the attacker needed

Attacker on the same local network; target host does not require SMB signing; victim triggers authentication; victim is local admin on target host

The fix

SMB signing should be required on all devices, with disabling NTLM, account tiering and local admin restriction as further measures.

How it was found

  1. Turn on network discovery and file sharing on the machines.
  2. Scan the network to find hosts where SMB signing is not required.
  3. Put a target address in a text file.
  4. Disable the SMB and HTTP servers in the responder configuration.
  5. Run responder together with the relay tool.
  6. Trigger authentication by searching for a file that does not exist, then use the relayed session to dump hashes or open a shell.

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.

When computers share files on a network they prove who they are using a login handshake called NTLM. If that proof is not tied to the connection it was sent on, an attacker sitting on the same network can pass it on to another computer and be let in as the victim. This write-up shows that happening because the target computer does not require the handshake to be signed.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.