Notes on DNS Takeover Attacks via IPv6
Overview of DNS Takeover Attacks via IPv6
Introduction to Attacks
- Discusses six attacks focusing on DNS takeover via IPv6.
- Previous common attacks:
- Responder (grabbing and cracking hashes).
- SMB relay (replaying hashes when cracking fails).
- Current focus is on the reliability of IPv6 takeover attacks.
Understanding IPv6 in Network Context
Traditional Network Configuration
- Most machines in a Windows network operate on IPv4.
- Check the network adapter properties:
- Likely using IPv4, but IPv6 may be enabled.
-ipconfigcan be used to confirm current IP version usage.
- DNS for IPv6
- If IPv6 is enabled but not utilized, the network typically lacks a functional DNS for IPv6.
- Potential for DNS messages to go unattended, meaning an attacker can exploit this.
Setting Up the Attack
Attacker's Setup
- Configure an attacker machine to intercept IPv6 traffic.
- Spoofing DNS:
- The attacker claims to be the DNS server.
- Routes all IPv6 queries to the attacker machine.Taking Control of Authentication
- Gain authentication access to the domain controller.
- Authentication can happen via LDAP or SMB protocols.
- For example, rebooting a machine sends a message to the attacker, triggering potential access.
- Access Outcomes
- Opportunity to extract substantial information from the domain controller.
- Can create additional machines using the compromised machine.
Exploiting NTLM Credentials
Credential Relaying
- Attackers capture NTLM credentials, similar to previous attacks (responder, SMB relay).
- Using LDAP relaying with captured NTLM credentials to access the domain controller, regardless of whether the user is an administrator.
- If a domain administrator's credentials are used:
- Possibility to create an unauthorized account on the domain controller.
Tools Required for the Attack
Man in the Middle Six (mitm6)
- Description of the tool:
- Facilitates the DNS takeover utilizing IPv6.
- Integration with NTLM RelayX:
- NTLM RelayX assists in relaying the credentials captured during the attack.
- Combines functionality to create unauthorized accounts on the domain controller.
Steps to Execute the Attack
Download Man in the Middle Six:
- Install the necessary software to start the attack.Setup LDAPs:
- Quickly set up SSL certificates needed for LDAP communication.Demonstration of Attack:
- Show live demonstration involving reboot triggering traffic capture and unauthorized access creation.
Conclusion and Implications
Detection Challenges
- This form of attack remains undetected and is becoming increasingly prominent in networks.Next Steps
- Move to practical demonstration to visualize the attack in action.