DNS security question

DNS security question

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
DNS security question boomboom999 05-19-2006
Posted by on May 19, 2006, 10:38 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi,

Is it considered a good security practice to not allow DCs making
direct DNS requests to Internet?

I have read about different DNS responses attacks that can help an
attacker to take control of the DC via an incorrect DNS response
(buffer overflow etc.).

Would it be more secure to use DNS forwarders?
If yes, where we should place them? Into DMZ?

Thank you


Posted by Steven L Umbach on May 20, 2006, 1:27 am
If you were  Registered and logged in, you could reply and use other advanced thread options
You might also want to post in the DNS newsgroup but I have never heard or
read about anything to suggest that it is a significant security risk.
Having said that it may make sense to have it just forward to your ISP DNS
servers and let them do the iteration and not use root hints ever by
enabling do not use recursion in the forwarders configuration page. The
downside would be if your ISP DNS servers were down you would not have
internet name resolution. If you have at least two DNS servers listed from
your ISP that is pretty unlikely unless they have general problems with
their network Either way make sure your DNS server are configured with the
default configuration to secure cache against pollution. You certainly could
have cache only DNS servers that forward to the ISP DNS servers that your
domain controllers forward to for an extra layer of security but it may be
hard to justify that added expense and complexity for the added security
you might gain depending on the level of security you need. A post in the
DNS newsgroup might give you an idea on how common such is used. --- Steve


> Hi,
>
> Is it considered a good security practice to not allow DCs making
> direct DNS requests to Internet?
>
> I have read about different DNS responses attacks that can help an
> attacker to take control of the DC via an incorrect DNS response
> (buffer overflow etc.).
>
> Would it be more secure to use DNS forwarders?
> If yes, where we should place them? Into DMZ?
>
> Thank you
>



Posted by Roger Abell [MVP] on May 20, 2006, 2:13 am
If you were  Registered and logged in, you could reply and use other advanced thread options
> Hi,
>
> Is it considered a good security practice to not allow DCs making
> direct DNS requests to Internet?
>
> I have read about different DNS responses attacks that can help an
> attacker to take control of the DC via an incorrect DNS response
> (buffer overflow etc.).
>
> Would it be more secure to use DNS forwarders?
> If yes, where we should place them? Into DMZ?
>
> Thank you
>

This is not really a simply question to answer.
On one hand having DCs well protected, not in any way on the edge,
is a general, sane paractice. On the other hand "making requests"
is not something that would expose anything more than would using
a forwarder to make those requests. Now, if by "making requests"
you also were meaning answering queries, then my response is
emphatically that you should not allow queries from outside of your
infrastructure.
If your DC based DNS has a path to the internet for Tcp/Udp 53
and is also configured not to answer on the interface providing that
path then whether it makes request via a forwarder or by working the
DNS servers involved in answering the query is mostly a matter of
offloading work. However, if your infrastructure does not have that
path to the internet isolated on an interface of the DC then you
cannot configure the DNS service to not answer queries on that
interface, which potentially (depending on firewall config and/or
NAT config) could expose your internal zone information.
Finally, IMO much depends on the size of the organization, and
whether it makes sense to host one's own public DNS presence.
If so, that normally means that you have a public DNS server,
configured to not accept recursive queries, placed in the DMZ or
a screened network with Ucp/Tcp 53 accessible to the world. Such
a server would be a good choice for use as forwarder to the internal
DC based DNS services IF it were not configured to reject recursive
queries. If the public DNS presence is relatively static zone of not
that many resource records it can make most sense to offload the
hosting of that to a network provider. For reasons similar to those
already used, the DNS of the network provider also often make a
good choice as forwarders.

Do you have any link or reference for what you mentioned as
> I have read about different DNS responses attacks that can help an
> attacker to take control of the DC via an incorrect DNS response
> (buffer overflow etc.).
since I have not really encountered what this might be speaking of.

In all events, there are only a couple guiding principals.
One is that as a best practice there is no need for, hence no reason
for, the internal AD supporting zone(s) to be visible to the world.
That just presents unneed exposure, which MIGHT mean unneeded,
added risk - it does certainly give a means for external people to map
key aspects of the internal infrastructure while their access is still
only external and it also MAY give them a way to DoS the DNS service
by recursive query saturation.
An outcome from this is that a DC that is not multihomed cannot be
configured to use external DNS servers (whether for direct working
of queries or forwarding) and also keep the internal zones fully
inaccessible (that is, cannot be so configured on the DC itself - such
protection must be defined elsewhere - firewall, nat, proxy).

--
Roger Abell
Microsoft MVP (Windows Server : Security)



Posted by Roger Abell [MVP] on May 20, 2006, 2:48 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Oops.

In reviewing prior post I see I used term "interface" which is how it
is termed in the DNS management UI when in fact what should have
been said was "IP" since these "interfaces" are named by IP.
Thus similarly I used "multihomed" when this should have been
something like "virually multihomed" or "with multiple IPs"
The bottom line is that one needs to be able to use the DNS config
to disallow answering queries on the "interface" used for external
forwarders or outbound queries.
--
Roger

>> Hi,
>>
>> Is it considered a good security practice to not allow DCs making
>> direct DNS requests to Internet?
>>
>> I have read about different DNS responses attacks that can help an
>> attacker to take control of the DC via an incorrect DNS response
>> (buffer overflow etc.).
>>
>> Would it be more secure to use DNS forwarders?
>> If yes, where we should place them? Into DMZ?
>>
>> Thank you
>>
>
> This is not really a simply question to answer.
> On one hand having DCs well protected, not in any way on the edge,
> is a general, sane paractice. On the other hand "making requests"
> is not something that would expose anything more than would using
> a forwarder to make those requests. Now, if by "making requests"
> you also were meaning answering queries, then my response is
> emphatically that you should not allow queries from outside of your
> infrastructure.
> If your DC based DNS has a path to the internet for Tcp/Udp 53
> and is also configured not to answer on the interface providing that
> path then whether it makes request via a forwarder or by working the
> DNS servers involved in answering the query is mostly a matter of
> offloading work. However, if your infrastructure does not have that
> path to the internet isolated on an interface of the DC then you
> cannot configure the DNS service to not answer queries on that
> interface, which potentially (depending on firewall config and/or
> NAT config) could expose your internal zone information.
> Finally, IMO much depends on the size of the organization, and
> whether it makes sense to host one's own public DNS presence.
> If so, that normally means that you have a public DNS server,
> configured to not accept recursive queries, placed in the DMZ or
> a screened network with Ucp/Tcp 53 accessible to the world. Such
> a server would be a good choice for use as forwarder to the internal
> DC based DNS services IF it were not configured to reject recursive
> queries. If the public DNS presence is relatively static zone of not
> that many resource records it can make most sense to offload the
> hosting of that to a network provider. For reasons similar to those
> already used, the DNS of the network provider also often make a
> good choice as forwarders.
>
> Do you have any link or reference for what you mentioned as
>> I have read about different DNS responses attacks that can help an
>> attacker to take control of the DC via an incorrect DNS response
>> (buffer overflow etc.).
> since I have not really encountered what this might be speaking of.
>
> In all events, there are only a couple guiding principals.
> One is that as a best practice there is no need for, hence no reason
> for, the internal AD supporting zone(s) to be visible to the world.
> That just presents unneed exposure, which MIGHT mean unneeded,
> added risk - it does certainly give a means for external people to map
> key aspects of the internal infrastructure while their access is still
> only external and it also MAY give them a way to DoS the DNS service
> by recursive query saturation.
> An outcome from this is that a DC that is not multihomed cannot be
> configured to use external DNS servers (whether for direct working
> of queries or forwarding) and also keep the internal zones fully
> inaccessible (that is, cannot be so configured on the DC itself - such
> protection must be defined elsewhere - firewall, nat, proxy).
>
> --
> Roger Abell
> Microsoft MVP (Windows Server : Security)
>
>



Posted by Karl Levinson on May 20, 2006, 9:53 am
If you were  Registered and logged in, you could reply and use other advanced thread options

> Hi,
>
> Is it considered a good security practice to not allow DCs making
> direct DNS requests to Internet?
>
> I have read about different DNS responses attacks that can help an
> attacker to take control of the DC via an incorrect DNS response
> (buffer overflow etc.).
>
> Would it be more secure to use DNS forwarders?

I would say yes. Besides the issue you bring up, there's also the
possibility of DNS cache poisoning [which is much easier to prevent with a
small number of DNS servers acting as proxy clients, rather than relying on
reconfiguring and patching every DNS client on the network as
vulnerabilities are found].

And maybe most importantly, having central DNS servers allows you to
configure your firewall to allow only those DNS servers to access TCP and
UDP destination ports 53 outbound on the Internet. This might help detect
and prevent compromised hosts trying to "phone home" to an attacker over
TCP/UDP 53, or at least it raises the bar a little. This only works if you
have your own DNS servers. [Having a firewall or a proxy server that can
make DNS requests and using that as your DNS server is probably almost as
good as making a new DNS server for your company.]

> If yes, where we should place them? Into DMZ?

If you have a DMZ, that's not a bad place to put them. If you don't have a
DMZ, it's up to you whether you need to make one for this purpose.




Similar ThreadsPosted
security question July 11, 2005, 2:22 am
Security Question June 25, 2006, 8:01 pm
newbie question on security March 10, 2006, 6:25 am
security question regarding PPTP August 8, 2006, 7:05 pm
Question about Wireless Security September 20, 2006, 1:01 pm
Security token design question July 28, 2005, 3:06 pm
General Network Security question October 19, 2005, 4:19 am
Very basic network security question November 17, 2005, 6:44 pm
Lost password & Security Question March 30, 2007, 1:06 pm
Network Service security question July 31, 2008, 6:41 am

The site map in XML format XML site map

Contact Us | Privacy Policy