LLMNR, NBT-NS, mDNS spoofing
MITRE ATT&CK™ Sub-technique T1557.001
In some environments (like Windows ones), multicast name resolution protocols are enabled by default, such as LLMNR (Local-Link Multicast Name Resolution), NBT-NS (NetBIOS Name Service) and mDNS (multicast Domain Name System). Those environments can fallback to those protocols when standard domain name resolution protocols fail. Windows systems attempt to resolve names in the following order: DNS, LLMNR and NBT-NS.
Attackers can then answer those multicast or broadcast queries. The victims are then redirected to the attacker asking them to authenticate in order to access whatever they ask for. Their authentication is then relayed.
Responder (Python) and Inveigh (Powershell) are great tools for name poisoning. In addition to name poisoning, they also have the ability to start servers (listeners) that will capture authentications and echo the NTLM hashes to the attacker.
The following command will make Responder analyze the network to see if LLMNR, NBT-NS and mDNS are used, and to inspect BROWSER requests.
responder --interface "eth0" --analyze
responder -I "eth0" -AThe following command will start LLMNR, NBTS and mDNS spoofing. Name resolution queries for the wpad server will be answered just like any other query. Fake authentication servers (HTTP/S, SMB, SQL, FTP, IMAP, POP3, DNS, LDAP, ...) will capture NTLM hashes.
responder --interface "eth0"
responder -I "eth0" -AThe following command will make Inveigh inspect the network to see if LLMNR, NBT-NS and mDNS are used.
Invoke-Inveigh -ConsoleOutput Y -InspectThe following command will start LLMNR, NBTS and mDNS spoofing. Name resolution queries for the wpad server will be answered just like any other query. Fake authentication servers (HTTP/S, SMB, DNS, LDAP, ...) will capture NTLM hashes (even from machine accounts) and set the Challenge to 1122334455667788 (to crack NTLM hashes with crack.sh).
Inveigh also starts a WPAD rogue proxy server by default for WPAD abuse.
Invoke-Inveigh -ConsoleOutput Y -LLMNR Y -NBNS Y -mDNS Y -Challenge 1122334455667788 -MachineAccounts YFlags like -ADIDNS, -ADIDNSForest, -ADIDNSCleanup, -ADIDNSThreshold and more can be set to combine LLMNR, NBT-NS and mDNS spoofing with ADIDNS spoofing.
This wiki page can be really useful to help master Inveigh and its support functions
Clear-Inveighto clear the $inveigh hashtableGet-Inveighto get data from the $inveigh hashtableStop-Inveighto stop all running Inveigh modulesWatch-Inveighto enable real time console output
References
Last updated
Was this helpful?