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.
Published on systemweakness.com
The main reason how this attack can happen is when SMB signing is disabled. by default, it’s disabled.
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
- Turn on network discovery and file sharing on the machines.
- Scan the network to find hosts where SMB signing is not required.
- Put a target address in a text file.
- Disable the SMB and HTTP servers in the responder configuration.
- Run responder together with the relay tool.
- 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.