DirectAccess breaks DNSSEC
Summary
In May 2017 Lutz Donnerhacke checks in the lab how Microsoft's remote access technology DirectAccess copes with a DNSSEC-signed zone. Responses arrive via DirectAccess without signatures, and as soon as the client has to validate via group policy, resolution fails. Even a genuine AAAA record that needs no rewriting by DNS64 no longer reaches the client.
What was expected and what was not
In Lutz Donnerhacke's lab the remote client reaches the IPv4 destination via DNS64, as the answer with an IPv6 address for a pure IPv4 server shows. DNS64 generates AAAA records that do not exist in the zone. RFC 6147 describes that an end device which validates itself cannot confirm such synthesised data. The first failure in the test is therefore built into the standard: DNSSEC detects the modification.
The second part is surprising. For test.sec.adatum.com there is a genuine, signed AAAA record that DNS64 would not need to rewrite at all. Nevertheless the DirectAccess resolver returns no answer, and for a non-existent name the client reports "Unsecured DNS packet". So the resolver also suppresses valid signatures.
Current state
Microsoft explicitly recommends Always On VPN instead of DirectAccess for new deployments. The pattern remains instructive: any component that modifies or generates DNS responses, whether DNS64, a captive portal or a filtering proxy, only works with DNSSEC if the client trusts the validating party.
Ideas
- DNS64 generates AAAA records that exist in no signed zone.
- A validating client recognises synthesised responses as insecure.
- On Windows, validation can be enforced per domain via group policy.
- Positive and negative responses must be tested separately.
- In the test, the DirectAccess resolver also suppressed genuine signatures.
Insights
- DNSSEC and rewriting in DNS are mutually exclusive at the end device.
- A lab that includes failure cases finds errors that normal operation hides.
- It must be decided who validates: the resolver or the end device.
Quotes
- Nein, der DirectAccess-Resolver macht DNSSEC kaputt. (Lutz Donnerhacke; "No, the DirectAccess resolver breaks DNSSEC.")
Facts
- The test zone sec.adatum.com was signed with DNSSEC and the trust anchors distributed in the domain.
- Via DirectAccess the answer arrived with the DNS64 address fd68:d6bf:56b6:7777::ac10:a.
- RFC 6147 describes that synthesised AAAA data fails at a validating end device.
- Microsoft recommends Always On VPN instead of DirectAccess for new deployments.
References
- Lutz Donnerhacke: DirectAccess breaks DNSSEC (German)
- DNS64: synthesis of AAAA answers for NAT64.
- Microsoft DirectAccess: the remote access technology examined.
- RFC 6147: DNS64 (2011)
- Microsoft Learn: DirectAccess
Remarks
- The first failure is anticipated by RFC 6147; only the second points to a fault in the DirectAccess resolver.
Recommendations
- Test DNSSEC behind VPN and translation services with existing and non-existent names.
- Decide whether the resolver or the client validates, and document it.
- Do not plan new remote access that relies on DNS64 for signed internal zones.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.