News for hackers. Stuff that matters.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by nimbius on Saturday January 16, 2021 @03:14PM (#25805081)
>NSA recommends that an enterprise network’s DNS traffic, encrypted or not, be sent only to the designated enterprise DNS resolver.

its either a slow day at the NSA or federal agencies have become so intellectually bankrupted by the cloud that they consider proclamations of the fundamentals of DNS and networking to be some sort of sage wisdom.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by 0xquad on Saturday January 16, 2021 @05:07PM (#25805972)
They are responding to the very recent emergence of applications (like Firefox) that (optionally) use their own encrypted DNS, thus bypassing the enterprise's ability to apply security policy based on DNS. (Visibility on DNS is also useful to help detect some malware.) I'll allow it.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by vaduz on Saturday January 16, 2021 @06:50PM (#25806681)
It's clearly also spurred by the attempts to further obfuscate the use of DoH via Oblivious DoH [0] - though they don't go into much details on it.

[0] https://news.ycombinator.com/item?id=25344358

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by Daho0n on Sunday January 17, 2021 @06:43AM (#25809969)
>thus bypassing the enterprise's ability

I think you could change it to read " bypassing the NSA's ability" and find the real reason behind this.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by 0xquad on Sunday January 17, 2021 @03:54PM (#25814850)
They aren't recommending you don't use DoH. Just that you don't allow individual apps to bypass your enterprise resolver. In fact I use the same strategy at home (with DoT) to enforce ad and tracker blocking. It's just common sense really.

From the document: >[...] NSA recommends that the enterprise DNS resolver supports encrypted DNS, such as DoH, and that only that resolver be used in order to have the best DNS protections and visibility.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by belorn on Saturday January 16, 2021 @03:41PM (#25805305)
I read that to mean: Do not allow doh to tunnel all your dns traffic out to cloudflare regardless of the promise of encryption. Send it only to the designated enterprise DNS resolver, ie the one under control by the enterprise.

All other DNS resolvers should be disabled and blocked, ie all those public dns resolvers.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by salawat on Saturday January 16, 2021 @04:58PM (#25805902)
In other words "MitM everything".

It gets so tiresome. I used to think the people who called out tyranny everywhere were just nuts, but it never ceases to amaze that everything nowadays keeps going "centralize and control".

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by VWWHFSfQ on Saturday January 16, 2021 @05:42PM (#25806221)
No you're misunderstanding what the recommendation is. If a company runs their own DoH or even regular DNS or AD resolvers, then the company's client computers (the laptops their employees take home) should not be querying any old resolver hard-coded in their web browser (Firefox, CloudFlare) for internal company domain addresses. That's literally all this is saying. It's good corporate IT policy anyway and it's only being reiterated with DoH.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by salawat on Saturday January 16, 2021 @07:59PM (#25807088)
Oh, to be able to buy that anymore. I don't see anyone implementing it that way though. I see it being implemented in a way whereby all DNS activity must go through the corp resolver first, essentially giving full tracking history of 99% of users.

Yes, it already happens with corporate proxies, and yes, I'm sour about that too...

To be clear, I'm not blaming any NetOps here. It's just... Why is it so tempting? The things you can do with that type of data, it almost seems like you have to be superhuman in terms of keeping people away from it. Maybe I"m just too damn enchanted by just delivering packets to enable people... But when you get pushes from agencies suggesting "Hey, add a by definition awesome logging and tapping point" it really ruins my day.

And yes, I run a network too. No. I don't give a darn what my users do with it as long as the servers are up and fine, and the global riffraff stay out. I don't know. Just overly grumpy I guess.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by VWWHFSfQ on Saturday January 16, 2021 @09:28PM (#25807510)
To be honest, I have no idea what point you're trying to make.

Here it is:

* Companies have internal (intranet) network services

* Companies operate their own DNS (DoH) resolvers

* They also have global (internet) employees

* The devices those employees use have hard-coded DNS (DoH) resolvers (Google, CloudFlare)

* Don't let them use the hard-coded DNS (DoH) resolvers

* Make sure their machine uses the company DNS (DoH) resolver.

I know people think that DNS-over-HTTP makes everything private and secure, but it doesn't. Google and CloudFlare still see every single DNS query from everyone.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by deathgrips on Saturday January 16, 2021 @11:22PM (#25808094)
>And yes, I run a network too. No. I don't give a darn what my users do with it as long as the servers are up and fine, and the global riffraff stay out.

You don't care if your users get hacked? Would you mind telling me what company you work for?

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by wmf on Saturday January 16, 2021 @05:06PM (#25805960)
Sending your DNS queries to a resolver that you control is hardly MITM. In this case "you" is a company.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by vaduz on Saturday January 16, 2021 @06:47PM (#25806665)
> Sending your DNS queries to a resolver that you control is hardly MITM.

That's if your users are well-behaved and follow the rules. To stop the users from being badly behaved, NSA recommends blocking connectivity to well-known IP addresses of the public DoH resolvers (e.g. Cloudflare) and TLS inspection to stop connections that try to go to less well known ones, including via ODoH, which means your TLS inspection device must understand the protocol.

To do TLS inspection at that level you need to MitM all HTTPS traffic going everywhere, as you need to read all HTTPS traffic to any possible host, as any of them may be a DoH resolver or relay. Q.E.D.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by nobody9999 on Saturday January 16, 2021 @11:56PM (#25808268)
>To do TLS inspection at that level you need to MitM all HTTPS traffic going everywhere, as you need to read all HTTPS traffic to any possible host, as any of them may be a DoH resolver or relay. Q.E.D.

Yep. And corporate/enterprise environments should (not nearly enough do) do exactly that with devices owned and managed by the enterprise.

Any personal devices or those owned by contractors, clients and other external actors should not be allowed access to internal corporate networks. This is neither a particularly new or controversial idea either. Most large (or even medium-sized) organizations have separate "guest" networks for external resources which aren't secured or monitored.

However, internal networks are (and should be) a very different story.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by vaduz on Sunday January 17, 2021 @07:12AM (#25810095)
> Yep. And corporate/enterprise environments should (not nearly enough do) do exactly that with devices owned and managed by the enterprise.

Sure! But the fact that they should (and many have been) already be doing just that does not change the fact that the technique imposes a third party listening into supposedly two party encrypted exchange. It's allowed, but it is still MitM.

> Any personal devices or those owned by contractors, clients and other external actors should not be allowed access to internal corporate networks. This is neither a particularly new or controversial idea either.

Whilst I agree, recent trend to push for more BYOD where the device is owned by the contrators, employee or an external actor, but still allowed access and controlled by the enterprise does tend to blur the lines quite a bit, especially as most tooling has been lacking decent isolation between "enterprise" and "private" on the same device. MDM tooling tends to want to administer the whole device and apply the stricter "enterprise" policies, with a pinky promise that private life is going to be respected.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by nobody9999 on Sunday January 17, 2021 @08:36AM (#25810519)
>Whilst I agree, recent trend to push for more BYOD where the device is owned by the contrators, employee or an external actor, but still allowed access and controlled by the enterprise does tend to blur the lines quite a bit, especially as most tooling has been lacking decent isolation between "enterprise" and "private" on the same device. MDM tooling tends to want to administer the whole device and apply the stricter "enterprise" policies, with a pinky promise that private life is going to be respected.

Which is why employees should either be given employer-owned devices or use device subsidies (as many companies provide) to pay for a device that's only used for work purposes.

That companies attempt to hijack (and I mean that in both metaphorical and literal senses) personal devices for corporate purposes, aside from the obvious issues, it's also terrible security policy.

That businesses do this is exploitative, unethical and insecure. I suspect such businesses don't really care about the first two, but should care about the third.

As an infosec/infrastructure guy, I'd raise hell over such a policy -- because leaving aside the scumbaggery (I think I just coined a new word. Good for me!), having personal devices connected to internal corporate resources (even with corporate MDM configurations) is literally begging to be compromised, for (hopefully) obvious reasons.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by nobody9999 on Sunday January 17, 2021 @08:41AM (#25810542)
>Sure! But the fact that they should (and many have been) already be doing just that does not change the fact that the technique imposes a third party listening into supposedly two party encrypted exchange. It's allowed, but it is still MitM.

Replying again, as I should have addressed this as well.

I disagree. When using corporate resources, the organization is not only well within their rights to monitor (or at least log) all communications, given the potential for malware, data exfiltration and (to a much lesser extent) employee misconduct, an organization would be remiss for not doing so.

Which is why it's extra important not to allow or (as I addressed in my other comment), require those working onsite to use personal resources on internal networks.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by vaduz on Sunday January 17, 2021 @10:11AM (#25811255)
You are missing the point here. There is no argument here that the corporation should be able to monitor communications going on or out of their systems (though some limits how and for what purpose that monitoring can be done do exist, especially in the EU - it's not unlimited), but that is not what the calling the technique for what it is is about.

Use of MitM by the corporation as part of Data Loss Prevention interferes with any hardening you or your vendors might be making against a MitM attack attempted by anyone else - it breaks if, for instance, the application vendor your enterprise has decided to use (let us call them "Example plc") has pinned their own CA certificate within the applicaton as the only one that is supposed to sign certificates on the Example domains - say, for "content.example.com" - following example that e.g. Google set. Or, worse yet for this example, as specific certificate to be used instead of the specific trust anchor. I've seen both examples in the wild, so it is not an idle discussion.

Not only you need to override that pinning with your own CA in the application for the content to be inspected, to retain the same level of hardening you'd need to implement the same checks the application did in your DLP system, so that it verifies that the system is legit - and that costs money and time and remains fragile over time, so many enterprises simply do not bother doing so, falling back to the well-known list of public CAs instead (that includes my $CurrentCorpo, much to my annoyance). It weakens the whole system, which is already fragile enough thanks to actors like Symantec, WoSign and StartCom - and possibly others.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by deathgrips on Saturday January 16, 2021 @11:24PM (#25808105)
You seem to be implying that a company should not know what kind of web requests are coming from its computers.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by vaduz on Sunday January 17, 2021 @07:04AM (#25810058)
> You seem to be implying that a company should not know what kind of web requests are coming from its computers.

Please point out where I made that claim.

All I am saying is that the way "knowing what kind of web requests" - and DNS request in this case - is achieved is by becoming a third party in supposedly two party encrypted communication. The company certainly has the authority to do so (check your local laws, though, as there are some exceptions) - but it is MitM in function and practice, if not in name. "TLS inspection" and "data loss prevention" are simply common euphemisms for the technique.

It's also not new, MitM proxies and for that matter endpoint introspection (e.g. keyloggers at the user machine) have been in use for decades in the enterprise, and have been making their way into BYOD private machines as well via various MDM tooling.

Using your company DNS server as the grandparent has mentioned is not MitM. Inspecting all traffic by all devices in your company to try to enforce the use of said DNS server requires MitM, though.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by deathgrips on Sunday January 17, 2021 @12:59PM (#25813024)
You keep saying MITM, which is an attack type, as if any kind of traffic inspection is bad. There is no third party in this sort of proxy: the company is communicating with the internet. The fact that a company proxy is inspecting traffic from a company computer does not make the company proxy a third party because both resources belong to the company and should be used for legitimate purposes. Is a reverse proxy doing a MITM attack on a web server if it offloads encryption and authentication for it? No, because both resources are owned by the same party.

TLS inspection and DLP are not euphemisms, they're valid names for a security practice. They're not even the same thing--you couldn't replace both mentions with "MITM" and expect another to know what you're talking about.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by userbinator on Saturday January 16, 2021 @05:35PM (#25806181)
...and in the case of people using DNS-based adblocking and such, "you" is... yourself.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by StreamBright on Saturday January 16, 2021 @05:21PM (#25806066)
What he means is that NSA and related has the ability to MITM HTTPS while another actors do not, probably.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by grayfaced on Saturday January 16, 2021 @05:58PM (#25806329)
In light of SolarWinds hack, I think it's fair to say that DoH is a real threat. Putting that volume of machines under the control of a single "trusted" network provider is very bad idea.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by nobody9999 on Saturday January 16, 2021 @11:50PM (#25808242)
> In other words "MitM everything".

>It gets so tiresome. I used to think the people who called out tyranny everywhere were just nuts, but it never ceases to amaze that everything nowadays keeps going "centralize and control".

The recommendations are for enterprise networks, although they're also reasonable (although not really accessible to the non-technical) for individuals who care about their privacy as well.

An enterprise network isn't (or shouldn't be) some sort of individual free-for-all. In fact, good security practice recommends (although this isn't universally implemented) that all perimeter network traffic, regardless of type, be proxied (or MitM'd, as you put it) to protect from both intrusions and exfiltration of data.

Are you claiming that Enterprise networks should allow external resolvers to be used on internal resources willy-nilly?

In fact, good security practice demands that devices that aren't authenticated (e.g., with 802.1x) shouldn't be granted access to internal resources at all. On the flip side, internal devices shouldn't rely on external infrastructure resources either.

This isn't censorship or some sort of fascistic control mechanism. Rather, it's an appropriate organization response to extant and potential threats to their IT infrastructure and data.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by freeone3000 on Saturday January 16, 2021 @03:20PM (#25805155)
Somebody has to recommend the basic stuff, otherwise it's just rumor. This is a topical addition to a list of DNS recommendations.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by TedDoesntTalk on Saturday January 16, 2021 @03:33PM (#25805235)
Now you can point to that and say “We use the best DNS practices as recommended by the NSA.”
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by rasengan on Saturday January 16, 2021 @04:33PM (#25805709)
Specifically, they are saying that in a home/personal environment, it makes sense to use DoH with a public resolver like cloudflare, but in enterprise, you will not be able to maintain tight control over internal use as browsers role out with DoH by default unless you block those public resolvers and enforce policy to use the enterprise resolver. It doesn't matter unless you care about these tight controls though even in enterprise.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by StreamBright on Saturday January 16, 2021 @05:27PM (#25806109)
It is going to be super hard to block DoH since it is indistinguishable from normal HTTPS traffic. If you MITM the HTTPS connection the browser can detect that and refuse to use the connection. Many companies are in this situation that MITMing HTTPS is not working very well. I think Google enforces HSTS[1]. Not sure how that works with DOH. I also think that we need browsers that do not have any other means of DNS resolution than the good old operating system wide /etc/resolv.conf (or similar). I am not going to fight with Google if I have the right to have my own DNS server or not. They are taking the open internet inch by inch. This is the last drop.

1. https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by XorNot on Saturday January 16, 2021 @05:42PM (#25806225)
At an enterprise level the browser configuration is controlled by the IT department. Your MITM CA certificate is going to be forced into the trusted list everywhere.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by kortilla on Saturday January 16, 2021 @06:06PM (#25806382)
Will that work with websites that pin cert trust anchors?
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by vaduz on Saturday January 16, 2021 @06:29PM (#25806539)
HPKP is dead for all intents and purposes as far as browsers go. What pinning? The CA certificate store that the browser is using is something any enterprise that is interested in control is already extending by adding their own CA cert - and it has been that way for a very long time.

This approach does break some applications that pin specific certificate instead of relying on "any valid CA" model (e.g. Signal desktop) but that is seen as feature, not a bug, when it comes to enterprise.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by phkahler on Saturday January 16, 2021 @06:29PM (#25806541)
>> Your MITM CA certificate is going to be forced into the trusted list everywhere.

Not on my phone.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by pstrateman on Saturday January 16, 2021 @07:04PM (#25806751)
Then your phone doesn't go on the lan.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by phkahler on Saturday January 16, 2021 @07:48PM (#25807027)
OK.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by rasengan on Saturday January 16, 2021 @05:41PM (#25806217)
That's a good point -- I wasn't really thinking about the practicability since it's not something I had much interest in. That said, I guess either blackholing the DNS so it can't initially be resolved, or even figuring out any and all IP addresses it resolves to and blackholing those IPs would be a start.

I agree, however, that it should be possible to run your own _______. That's what the internet was meant to be.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by toast0 on Saturday January 16, 2021 @06:07PM (#25806386)
Well known public DoH resolvers are going to have well known IPs and will be easy to block.

eSNI and the encrypted TLS handshake proposal that was floated recently rely on fetching keys via DNS, so that's not applicable for DoH, and the handshake for a DoH client will probably be easy to distinguish from an HTTPS client.

It will be easy to block, if you want to.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by StreamBright on Saturday January 16, 2021 @06:18PM (#25806475)
What if well known DoH resolves are going to be in the same range as the web traffic? If you could distinguish between DoH and HTTPS easily with iptables or pf, sure. I thought it is not that easy.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by toast0 on Saturday January 16, 2021 @06:45PM (#25806645)
That really depends on how much Cloudflare and Google are willing to risk.

If enough people block the published DoH resolver IPs, they'll see reduced availability on any hostname that is hosted on the same IPs; but if Cloudflare and Google put important content on the same IPs, it makes it harder to block.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by pstrateman on Saturday January 16, 2021 @06:57PM (#25806726)
Enterprise networks should generally be forcing all HTTPS traffic through proxies.

This requires local client certificates to be installed.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by sneak on Saturday January 16, 2021 @07:32PM (#25806922)
This works great when you have all of your computers in an office, like in 1999.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by pstrateman on Saturday January 16, 2021 @09:07PM (#25807393)
This still works if you use a VPN correctly.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by jorblumesea on Saturday January 16, 2021 @04:14PM (#25805565)
Security recommendations aren't supposed to be brilliant insights. They're just best practices.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by 737min on Saturday January 16, 2021 @04:41PM (#25805765)
Exactly right. Many security problems are due to forgoing the simple things in favor of exotic.
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by blondin on Saturday January 16, 2021 @03:44PM (#25805342)
unless i am reading this wrong, they are not saying don't send your requests to Cloudfare, Apple, etc. i am not entirely privy to all this, but aren't they entreprise grade DNS resolvers?
Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by Spooky23 on Saturday January 16, 2021 @03:53PM (#25805404)
They are high quality services, not controlled by the company.

It’s pretty obvious that allowing unloggable DNS traffic in an enterprise is a bad idea. It makes ex filtration trivial.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by salawat on Saturday January 16, 2021 @05:01PM (#25805925)
Exfiltration already is trivial DNS or not. Just admit that you want to be able to eavesdrop on all activity whatsoever.

What, you think that anyone looking to get something out undetected isn't using raw IP's?

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by Spooky23 on Saturday January 16, 2021 @05:16PM (#25806037)
On my network? Absolutely, ability to inspect packets is absolutely essential. On a public network? Different story.

I’ve personally been engaged in incident response and in many scenarios DNS is a control mechanism for malware, or uses it for various purposes. It’s often a key piece of evidence for reconstruction of an incident.

Raw IPs can be used as well, but that doesn’t negate my point.

Re:NSA Recommends How Enterprises Can Securely Adopt Encrypt... by 0xquad on Saturday January 16, 2021 @05:32PM (#25806158)
>Raw IPs can be used as well, but that doesn’t negate my point.

And in fact if you have enterprise-wide visibility on DNS requests, you have the opportunity to detect the use of an IP that was not returned in a request. Making it immediately suspect.