Join our Newsletter — 33% off our NHI Course
Home› Guides› D3-HDDL Hierarchical Domain Denylisting: How It Contains Attacks…
Guide Network Security

D3-HDDL Hierarchical Domain Denylisting: How It Contains Attacks and How to Verify It

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 10 min read
On this page

Blocking one malicious hostname rarely helps, because attackers rotate subdomains under a domain they control far faster than defenders can list them. MITRE D3FEND names the countermeasure Hierarchical Domain Denylisting (D3-HDDL) and defines it as "Blocking the resolution of any subdomain of a specified domain name." It sits under the Isolate tactic as a child of Forward Resolution Domain Denylisting (D3-FRDDL), which blocks Outbound Internet DNS Lookup Traffic. This card covers how hierarchical blocking is expressed in common resolvers, the two ATT&CK techniques D3FEND relates to it, how to prove a block works and where it leaks. It is written for DNS, network and detection engineers who run resolvers or protective DNS services.

Key takeaways

  • Block the zone, not the host. One hierarchical entry covers every current and future subdomain of the listed domain, which is what makes it useful against command and control that rotates hostnames.
  • The apex is a separate decision. In Response Policy Zones a wildcard entry matches subdomains only, so blocking a domain and everything under it takes two entries; other resolvers differ, so test both.
  • D3FEND relates it to two techniques. Application Layer Protocol: DNS (T1071.004) and Dynamic Resolution (T1568), both inferred through DNS lookup traffic.
  • Shared parents are the main risk. Listing a domain that hosts many tenants (a cloud or dynamic DNS provider) blocks legitimate business traffic too.
  • A resolver only blocks queries it sees. Hard-coded resolvers, encrypted DNS to outside providers and direct-to-IP connections bypass it.

D3-HDDL at a glance

AttributeValue
D3FEND IDD3-HDDL (d3f:HierarchicalDomainDenylisting)
TacticIsolate
Parent techniqueForward Resolution Domain Denylisting (D3-FRDDL), under DNS Denylisting
Digital artefactOutbound Internet DNS Lookup Traffic (relation inherited from the parent: blocks)
SynonymHierarchical Domain Blacklisting
D3FEND referencesMicrosoft: Use DNS Policy for Applying Filters on DNS Queries; Verisign patent on embedding threat context into response policy zones
Where it runsInternal recursive resolvers, protective DNS services, DNS firewalls on network security appliances
Main limitationOnly affects queries that reach the controlled resolver; list quality decides both coverage and false positives

How it works

D3FEND describes a denylist "that contains DNS names and corresponding subdomains, including wildcards, that should be blocked for a given lookup." When a client asks the resolver for any name, the resolver walks up the labels of the query name and checks each parent against the list. A match on example.net or *.example.net stops resolution for a1.c2.example.net as well as any name the attacker creates later.

D3FEND lists three considerations: the list has to be kept current, it needs "identified maintenance cycles" so entries do not go stale, and "Other domains that resolve to the domain of interest for blocking (CNAME, etc)" must be handled. The last point matters because an allowed name can point at a blocked one through a CNAME chain.

How common resolvers express a hierarchical block

Resolver or formatHierarchical formApex behaviourBlock response options
Response Policy Zones (RPZ), used by several resolversA wildcard owner name such as *.example.net in the policy zoneThe wildcard matches subdomains only; the RPZ draft says "two policy RRsets must be used, one for the domain itself and another for a wildcard subdomain"CNAME . (NXDOMAIN), CNAME *. (NODATA), CNAME rpz-drop. (no reply), CNAME rpz-passthru. (exemption)
Unboundlocal-zone: "example.net." always_nxdomain (or another local-zone type)A local zone covers the zone name and the names beneath italways_nxdomain, always_nodata, always_refuse, always_null (0.0.0.0 or ::0), always_deny (drop), inform_deny (drop and log); Unbound also supports RPZ
Windows Server DNS (2016 and later)Server-level query resolution policy with -FQDN "EQ,*.example.net"Test whether the apex is matched; add a second criterion if neededThe documented example uses the IGNORE action, which drops the query so the client times out

RPZ itself is described in draft-vixie-dnsop-dns-rpz-00, an expired individual Internet-Draft (June 2018) with no formal IETF standing, but it is implemented widely. Within one policy zone the draft says "an exact name match is better than one involving a wildcard", and among wildcards the trigger with the most labels wins, which lets you exempt a specific subdomain with a passthru rule.

ATT&CK techniques D3FEND relates to D3-HDDL

D3FEND labels these relationships as inferred and experimental, derived from the DNS traffic artefact.

ATT&CK techniqueTacticHow hierarchical blocking helpsWhat it does not stop
T1071.004 Application Layer Protocol: DNSCommand and ControlDNS tunnelling encodes data in subdomains of an attacker zone; blocking the parent stops every encoded query reaching the attacker's authoritative server through your resolverTunnels through an unblocked domain or through an outside resolver
T1568 Dynamic ResolutionCommand and ControlFast-changing hostnames under a known parent stop resolvingDomain Generation Algorithms (T1568.002) that create new registrable domains, which have no common parent to list

For the attacker side, see MITRE ATT&CK T1071 Application Layer Protocol and MITRE ATT&CK T1568 Dynamic Resolution.

Where it is implemented

  • Internal recursive resolvers: RPZ feeds or local zones on the resolvers your clients already use. Full control, but you maintain the lists and the logging.
  • Protective DNS services: managed resolvers with curated threat categories, which apply hierarchical blocks for you. See the Protective DNS Guide and the DNS Security and Protective DNS Buyer's Guide.
  • Network security appliances: DNS security features on firewalls and secure web gateways that inspect or proxy DNS.
  • Endpoint agents: local DNS filtering that follows roaming devices off the corporate network.

Product-specific hardening is in BIND DNS Server Hardening, PowerDNS Security and the Windows Server DNS and DHCP Security Guide.

Implementation steps

  1. Force DNS through controlled resolvers: allow outbound port 53 (UDP and TCP) and DNS over TLS on port 853 only from your resolvers, and use policy to manage which DNS over HTTPS endpoints browsers and operating systems may use. Without this, the denylist is optional for any client. See the Encrypted DNS Enterprise Guide.
  2. Choose list sources: threat intelligence feeds, incident findings and a small internal list for domains your organisation has decided to block. Record the source and date for each entry.
  3. Decide apex and wildcard together: for each entry, decide whether the registrable domain itself is malicious. If it is, block both the apex and *. in RPZ-style systems.
  4. Check for shared parents before you block: never list a parent that hosts many unrelated tenants (cloud storage, content delivery, dynamic DNS or public suffix domains) as a whole; block the specific tenant subdomain instead.
  5. Start in log-only mode: use a logging action (RPZ log option, Unbound inform, or a passthru policy) for a week to see which clients would be affected.
  6. Choose the block response: NXDOMAIN gives fast, clear failures; a redirect to a block page helps the help desk; drop (no reply) causes timeouts and slower failures. Most teams prefer NXDOMAIN or a block page.
  7. Enforce and log: send every block event, with client address and query name, to the SIEM.
  8. Rollback: keep a high-precedence passthru or allow policy that can exempt a name in minutes, and a change record for every list update.

How to verify it works

  • Synthetic queries: maintain a test domain you control on the denylist. Query the apex, a known subdomain and a random new subdomain from a client on each network segment; all three should return the chosen block response.
  • CNAME test: point an allowed test name at a blocked name with a CNAME and confirm the final answer is blocked.
  • Bypass test: from a test client, try querying an outside resolver directly on port 53 and 853, and through DNS over HTTPS. Each attempt should fail or be logged.
  • Log review: confirm block events reach the SIEM with the original client address, not only the address of a forwarding resolver.

Metrics (examples, not standards)

MetricWhy it mattersExample target
Share of client DNS traffic passing through controlled resolversCoverage of the controlClose to 100 per cent of managed devices
Block events by list source per weekShows which feeds earn their placeReviewed monthly
False positive exemptions raised per monthList qualityTrending down
Median age of denylist entriesStaleness, which D3FEND flagsEntries reviewed within a set cycle, for example 90 days
Synthetic test pass rateEnforcement on every segment100 per cent

Query logging design is covered in the DNS Logging and Detection Guide.

Limits, bypasses and failure patterns

  • Blocking a shared platform: a hierarchical entry on a multi-tenant parent takes out every customer of that platform, including your own suppliers.
  • Missing the apex: in RPZ, a wildcard alone leaves the registrable domain itself resolving.
  • Clients that avoid the resolver: malware with a hard-coded resolver, encrypted DNS to an outside provider, or direct connections to IP addresses never touch the denylist.
  • New registrable domains: a DGA or a fresh registration has no listed parent; pair this with reputation and newly registered domain checks.
  • Stale lists: expired malicious domains are re-registered by unrelated owners; entries without a review date block legitimate sites years later.
  • No alerting on hits: a block event on a command and control domain means a device is likely compromised. Treat it as a detection, not just a prevented connection.

Framework mapping

FrameworkReferenceFit
NIST SP 800-53 Rev. 5SC-7 Boundary ProtectionBlocking communication with known bad destinations
NIST SP 800-53 Rev. 5SC-21 Secure Name/Address Resolution Service (Recursive or Caching Resolver); SC-22 Architecture and Provisioning for Name/Address Resolution ServiceThe resolver tier where the control lives
NIST SP 800-53 Rev. 5SI-4 System MonitoringBlock events as detections
NIST CSF 2.0PR.IR-01 Networks and environments are protected from unauthorized logical access and usageEnforcement
NIST CSF 2.0DE.CM-01 Networks and network services are monitored to find potentially adverse eventsMonitoring of block hits
CIS Controls v8.19.2 Use DNS Filtering ServicesDirect
ATT&CK mitigationsM1037 Filter Network TrafficClosest mitigation

This mapping is NHI Mgmt Group's view; D3FEND does not publish it.

Practitioner checklist

  • Force all managed DNS through resolvers you control, including encrypted DNS.
  • Record source, owner and review date for every denylist entry.
  • Block both the apex and its subdomains where the whole domain is malicious.
  • Never list a multi-tenant parent; block the tenant subdomain.
  • Pilot new feeds in log-only mode before enforcing.
  • Keep a high-precedence exemption path for urgent false positives.
  • Alert on block events for command and control categories.
  • Run synthetic apex, subdomain and CNAME tests on every network segment.

Standards and references

Related NHI Mgmt Group resources: Protective DNS Guide · DNS Security Guide · NIST SP 800-81 Rev. 3 Secure DNS Deployment Guide · D3-HDL Homoglyph Denylisting

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.