Re:HTML over DNS: Serving Blog Content over DNS
by 3pt14159 on Thursday August 19, 2021 @06:32AM
(#28232223)
Fun story about this. I know one of the former guys at Xobni back in the day when it was still a thing. They had made an enterprise version that was sold to companies like Apple, Intel, etc. But even though the enterprise software no longer made external API calls, the company still wanted usage metrics so they could monitor feature usage. Knowing how locked down the networks were at companies like this, they exfiltrated the usage data via infrequent DNS requests to their DNS server. Everything was going fine until one day a dozen or so users at Intel stopped reporting. Hours later all of Intel stopped reported. Within the next day other companies started coming offline. Apple first, then some other large tech company and then a whole slew of them.
Turns out when you spy on your users word gets around.
Re:HTML over DNS: Serving Blog Content over DNS
by k4ch0w on Thursday August 19, 2021 @04:38AM
(#28231653)
Packet size is a really good detection for this. DNS packets should only be so big ;)
Re:HTML over DNS: Serving Blog Content over DNS
by richthegeek on Thursday August 19, 2021 @06:33AM
(#28232230)
So I split my packets up into smaller chunks. Now you need to rate limit DNS. But you still need to allow regular DNS traffic somehow, or you break the internet.
Re:HTML over DNS: Serving Blog Content over DNS
by k4ch0w on Thursday August 19, 2021 @03:30PM
(#28238250)
Well, allowlist to a known DNS server and block anything on DNS that isn't allowlisted.
Re:HTML over DNS: Serving Blog Content over DNS
by ignoramous on Thursday August 19, 2021 @09:02PM
(#28241232)
The exfiltrated data isn't for DNS resolvers but is leaked to Nameservers through them.
A similar technique forms the basis of how services like dnsleaktest.com and which.nameserve.rs identify DNS resolvers in-use by a particular client.
Re:HTML over DNS: Serving Blog Content over DNS
by LinuxBender on Thursday August 19, 2021 @08:49AM
(#28233160)
And packet rate. Some corporate firewalls may detect this as abusive and block it leading to questions from the security operations team and the person testing this out.
Re:HTML over DNS: Serving Blog Content over DNS
by Spivak on Thursday August 19, 2021 @10:11AM
(#28234040)
You can even set up a VPN over DNS if you really wanted. https://github.com/yarrick/iodine
Re:HTML over DNS: Serving Blog Content over DNS
by codethief on Thursday August 19, 2021 @10:51AM
(#28234556)
I'm not sure why this should be a corollary now. DNS exfiltration has always been possible, just like the article you linked to says. (I also like to point people to https://twitter.com/rsobers/status/1293539543115862016 in this context because it puts the idea so succinctly.)
Re:HTML over DNS: Serving Blog Content over DNS
by jacobkiers on Thursday August 19, 2021 @03:39AM
(#28231359)
Interesting, I'll read up on that.
[0] https://unit42.paloaltonetworks.com/dns-tunneling-how-dns-ca...
[1] https://github.com/Jigsaw-Code/choir (disclosure: I co-develop hard-forks of two other related Jigsaw-Code projects)
[2] http://dnscookie.com/