Skip to content
Misconfiguration Write-up Advanced

Remote Ntlm Relay Attack Relay Through A Proxy

The report describes a technique to perform an NTLM relay attack from a compromised machine inside a target network, using a remote port forward to relay authentication attempts to a victim with SMB signing disabled. An attacker with administrator access on the compromised host could capture and relay NTLM sessions to authenticate as other users, potentially gaining access to the victim machine.

Mr Jokar Follow

Published on systemweakness.com

So SMB Relay Attack or NTLM Hash relaying is a well known attack in Active Directory environment. You set up something that listens for sessions, upon recieving one it doesn’t respond rather relays that connection to the victim.

Mr Jokar, 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 the victim machine has SMB signing disabled, allowing an attacker to relay NTLM authentication sessions without detection.

Impact

An attacker could relay NTLM sessions to authenticate as other users on the victim machine, potentially gaining unauthorized access.

What the attacker needed

Compromised machine with admin access; Victim has SMB signing disabled; Remote port forward capability

How it was found

  1. Identify which victim machines have SMB signing disabled using tools like crackmapexec, nmap, or RunFinger.
  2. On the compromised server, stop and disable services using the SMB port to free it for the attack.
  3. Obtain a Meterpreter session with administrative privileges on the compromised machine.
  4. Start ntlmrelayx on the attacking machine, targeting the victim's SMB service and using the -socks flag to keep sessions open.
  5. Set up a remote port forward from the compromised server's port 445 to the attacking machine's port 445 using Meterpreter's portfwd command.
  6. Wait for incoming connections, then use the SOCKS proxy with tools like proxychains to interact with the victim using the relayed credentials.

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.

This report explains how an attacker who already controls one computer inside a network can trick other computers into authenticating to it, then forward those authentication attempts to a target computer that does not require extra verification (SMB signing). By doing so, the attacker can impersonate a legitimate user and access the target. The technique is an extension of a well-known attack called NTLM relay, adapted to work from a remote compromised machine.

What is Misconfiguration?

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

More by Mr Jokar

View all

4 more disclosed reports, best first.

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.