Skip to content
Info disclosure Write-up Intermediate

Demonstrating Llmnr Poisoning In Active Directory

LLMNR, a fallback name-resolution protocol, lets any host on the local subnet answer requests for names that DNS could not resolve. An attacker on the network can answer such requests, capture the victim's NTLMv2 hash when the victim authenticates, and crack it offline to recover the password.

Kavin Jindal Follow

Published on infosecwriteups.com

LLMNR refers to Link Local Multicast Name Resolution which is a protocol that acts as a fallback for failure in DNS lookups on a network. It allows the device to resolve hostnames to IP addresses when a request is initiated.

Kavin Jindal, 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 network relies on LLMNR, an unauthenticated broadcast name-resolution fallback, so any host on the subnet can answer queries for unresolved names and receive NTLM authentication attempts.

Impact

An attacker with a foothold on the local network could capture NTLMv2 hashes and, if the password is weak enough to crack, obtain credentials for lateral movement in the domain.

What the attacker needed

Attacker already on the local network; victim requests an unresolved hostname; victim authenticates to the fake host; weak enough password to crack

The fix

LLMNR should be disabled through Group Policy so that unresolved names are not broadcast to the whole subnet.

How it was found

  1. Start Responder on the attacker machine to listen for LLMNR and NBT-NS traffic.
  2. From the victim machine, request a resource whose name does not resolve, causing an LLMNR query.
  3. The victim receives an authentication prompt from the attacker's machine.
  4. Responder captures the victim's NTLMv2 hash.
  5. Crack the captured hash offline with Hashcat in NTLMv2 mode against a wordlist.

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 a computer cannot find a name through normal DNS, Windows may shout the question to the whole local network using a protocol called LLMNR. Anyone on that network can answer, so an attacker can pretend to be the machine being looked for. The victim's computer then tries to log in to the fake machine, which hands over a scrambled form of the password (an NTLM hash) that the attacker can try to crack offline.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.