[00:02.140 --> 00:08.980] Yeah, my name is Thomas and um, my daily work is incident response and forensics. Uh, I [00:08.980 --> 00:17.000] have done some red team. So, in red team engagements, I often use Responder, where there's a [00:17.000 --> 00:25.260] function to set up a rogue proxy server with the WPAD function. So, monitoring the [00:25.260 --> 00:31.380] network to see the traffic, seeing that clients is asking for the WPAD domain, and [00:32.060 --> 00:40.940] in the company, but it is also sometimes asking for WPAD.TLD. So, who is having this [00:40.940 --> 00:47.580] domain? Is it in use? Is it free? Can I buy it? What are they using it for? So, at the time, I [00:48.240 --> 00:54.040] looked at this, I looked up and discovered it was a German guy that had this Danish domain. [00:54.500 --> 01:00.020] Uh, don't know what he was using it for. Two years later, I looked again, discovered there's a [01:00.020 --> 01:08.780] man in Israel having the Danish domain. And in 2020, the Danish register for DK, DK [01:08.780 --> 01:14.680] domains added a function where you can sign up for a waiting list. So, I signed up for a [01:14.680 --> 01:24.140] waiting list and paid small fee every year. So, how it's working, the basic is that a [01:24.140 --> 01:30.000] client goes to, for requesting a webpage, it's going to the DNS server, finding the IP address, [01:30.020 --> 01:37.940] then go to the web server and, and getting the content back. Very basic. If we are adding a [01:37.940 --> 01:45.220] proxy server into the mix, then the proxy server will do all the heavy lifting. So, the [01:45.220 --> 01:50.120] client is asking the proxy server, the proxy server is, is doing the name resolving and [01:50.120 --> 02:00.000] getting the webpage and returning the content to the end client. So, back in 1996, Netscape [02:00.900 --> 02:06.440] decided that there must be an easier function for, when you're adding a machine to a [02:06.440 --> 02:13.240] network, to automatically config the machine. So, they come up with this WP pad [02:13.240 --> 02:21.040] function to automatically ask for the machine where the configuration file is stored. [02:21.040 --> 02:28.440] They sit down a consortium to try to make an FC standard for it, but it never eclipsed as it [02:28.440 --> 02:40.390] expired in 1999. So, it's 25 years anniversary now. According to Wikipedia, the way it works [02:40.970 --> 02:47.550] is that you have the name where the client is part of the domain, it will add WP in the [02:47.550 --> 02:53.910] front and slowly test until it finds a name where it matches and get a response and can [02:53.910 --> 03:00.250] download the configuration file. But, in some implementations, it will go down to [03:00.250 --> 03:06.350] WP pad dot TLD and then download the configuration file from there. And as you can see on the [03:06.350 --> 03:12.610] Wikipedia page here, it says that it, uh, incorrect, uh, solution and it shouldn't be used [03:12.610 --> 03:21.750] that way. So, that's a security issue. So, the way with WP pad is that you have a client, [03:21.750 --> 03:26.950] it's called client dot A dot company dot com, then it will search for WP pad when the [03:26.950 --> 03:34.090] browser is open. It will then remove the client name and then try to add WP pad dot A dot [03:34.090 --> 03:39.550] company dot com and try to resolve that. If that's not working, it removes one name. So, it's [03:39.550 --> 03:46.250] WP pad dot company dot com. And in this example, it's resolving the IP address and then it [03:46.250 --> 03:51.870] goes to a web server trying to download a file called WP pad dot that. And that's the [03:51.870 --> 03:58.070] configuration file for the client. It can also be configured with other solutions like DHCP [03:58.070 --> 04:05.630] bins and so on. So, the that file, it downloads, is actually a small Java script that the [04:05.630 --> 04:13.150] client execute on the client machine with, uh, called find proxy for URL. It's input what [04:13.150 --> 04:19.550] URL it's trying to go to and the name. And then you can modify this script to say that the [04:19.550 --> 04:25.610] client should go direct if it's company name addresses or it should go to a proxy server if it's [04:25.610 --> 04:34.330] all, anything else on the internet. Like this proxy dot company dot TLD dot 880. So, here we [04:34.330 --> 04:40.810] have an example of where it's trying to go to Defcon dot org and it's not matching any of the [04:40.810 --> 04:46.850] if statements and then go to the proxy as the last return statement. There's a website [04:46.850 --> 04:52.370] dedicated for all the functions that can be used in this limited, very limited, uh, uh, [04:52.370 --> 04:58.590] JavaScript language. You cannot use all functions. Um, here you can see the top part of the [04:58.590 --> 05:04.870] functions. There's DNS domains resolved, is it in net and so on. But there's also some other [05:04.870 --> 05:10.630] functions that work, like I have found here, the stable functions, I call them, which I can [05:10.630 --> 05:17.450] get user agent, host name, time zone and so on. In the past I could also from some clients [05:17.450 --> 05:24.050] get screen resolution and color depth and so on from each client. But that's very unstable [05:24.050 --> 05:33.650] and many of the clients that crashes the JavaScript when trying to ask for that. So I [05:33.650 --> 05:40.550] can, uh, VPAT is implemented, is not implemented in a company and someone gets the top level [05:40.550 --> 05:46.150] domain. Then what happens is that the client is asking for the VPAT in the company. It [05:46.150 --> 05:52.930] doesn't get any results. It tries again by removing one name and tries again by removing one [05:52.930 --> 06:02.510] name and ending on VPAT DK. So it goes to an external VPAT web server downloading a [06:02.510 --> 06:08.370] configuration file for the client, how it should use proxy settings and trust that server [06:08.370 --> 06:19.930] even as it's not inside the company. In 1999, when it expired and Microsoft was part of this [06:19.930 --> 06:26.950] consortium, the same month Microsoft was informed that there's a security issue. If someone [06:26.950 --> 06:34.530] buys the top level domain with any TLD, you can basically own a complete country. And [06:35.230 --> 06:43.110] so there has been talks about this before. In 2007 on KiwiCon, there was some guy having an [06:43.110 --> 06:49.170] 80 year anniversary for this issue, looking at the things and had a very good talk. [06:49.170 --> 06:55.230] Unfortunately it's not public anymore. And then at SmoothCon, same year, another guy had [06:55.230 --> 07:03.390] the look into this. And then Microsoft got busy again trying to make a new patch, trying to [07:03.390 --> 07:13.930] fix whatever was found in 2007. So now it's fixed, right? It should be. So for me the [07:13.930 --> 07:20.650] waiting time is over. In 2023, in March, I got a mail from the Danish registrar, the host [07:20.650 --> 07:27.170] master, saying that the VPAT DK domain was now mine and I could register it and assign it to [07:27.290 --> 07:33.050] a server. So I found a cheap web portal and added to a web server there just because I [07:33.550 --> 07:39.850] wanted to see if there was any traffic at all, just monitor the logs and so on. At the same [07:39.850 --> 07:46.050] time I looked at who has owned this domain in the past and I could see that from the talks [07:46.050 --> 07:52.130] in 2007, there was someone in Denmark deciding it was a good idea to have this domain for [07:52.130 --> 07:58.850] some years. But then he sold it and one guy in Belgium got the domain and one in Germany [07:58.850 --> 08:07.490] and then one in Israel and then I got it here last year. So this is the logs from the first [08:07.490 --> 08:13.810] day I assigned the VPAT to a web portal. I was a bit surprised to get more than 80,000 [08:13.810 --> 08:21.510] requests of this VPAT.dat file on the first day basically. The spike in the graph, I think [08:21.510 --> 08:27.010] that's the rollover time from I started, that has to go to 24 hours. That's why it's not [08:27.010 --> 08:32.930] linear. So basically 80,000 requests on the first day without doing anything other than [08:32.930 --> 08:39.690] buying a web portal and adding the domain. So that's not fun because I don't have access to [08:39.690 --> 08:46.250] all the log files. So the way was that I set up a VPS server, installed DNS server on it, [08:46.250 --> 08:51.930] become my own name server on the internet, registered and DNS sec and all the things and [08:51.930 --> 08:56.990] added a web server on top of that. That way I could add the domains I got into this [08:56.990 --> 09:04.490] server and capture all the traffic, all the logs in the way I like to have them. And every [09:04.490 --> 09:10.070] good website should have a web page, right? So I took my best skills and opened notepad and [09:10.070 --> 09:16.030] crafted a web page where I added some crap about you shouldn't use this page and this is for [09:16.030 --> 09:25.800] research and so on. So when the client is downloading this VPAT.dat file, the Javascript [09:25.800 --> 09:32.440] and executing it on the internal client machine, it cannot see the public IP that is coming [09:32.440 --> 09:38.960] out when it's going onto the internet. So the way I fixed that was that I added on my web [09:38.960 --> 09:45.700] server a dynamic web page that builds the Javascript for the client dynamically. So I add [09:45.700 --> 09:50.920] the client's public IP into the script before each client get the script. So they're [09:50.920 --> 09:55.600] getting a dedicated script for each client. So I have the public IP, even the client [09:55.600 --> 10:05.160] doesn't know it by themselves on the internal network. So when a client, one, two, three, want [10:05.160 --> 10:13.200] to go to the net, this is a simplified version of my script. But what it's basically doing, [10:13.200 --> 10:19.860] I'm building a string in the DNS name with the information I take from the client like the [10:19.860 --> 10:28.000] time zone, internal IP, external IP and so on. So I can leak data to my DNS server about the [10:28.000 --> 10:35.960] internal client. So in this example you can see the client is told to go to Defcon.org and [10:35.960 --> 10:43.480] the D is the time zone, I and then internal IP, W is the world IP, public IP, and then it [10:43.480 --> 10:49.560] goes to p.vpat.dk as my server. And of course I use port 80 because I want all the [10:49.560 --> 10:59.420] traffic to be unencrypted. So just come as normal HTTP, unencrypted. So then the client [10:59.420 --> 11:04.840] for every request they make on the machine, all URLs, they will pass it through this web [11:04.840 --> 11:10.540] proxy script. And then it will go to this address that builds automatically or [11:10.540 --> 11:17.620] dynamically for each request they're doing. So I get in my log files a listing of what [11:17.620 --> 11:23.260] traffic they are trying to resolve and then I tell them to all the requests go to this [11:23.260 --> 11:31.320] web server, that is my web server on the same host. And then the client is asking my [11:31.320 --> 11:37.780] server for some webpage and I'm so kind so I return errors for everything because I don't [11:37.780 --> 11:47.600] want to run a proxy server on the internet that is open and be a man in the middle. So I [11:47.600 --> 11:54.080] get to see the inside with HTTP clear text but they think I'm asking on the outside at [11:54.080 --> 12:06.480] HTTPS. So for every request every client is making, I'm returning this error page. And to be [12:06.480 --> 12:11.580] nice to the users, I have included an input form so if they don't like what they're seeing, [12:11.580 --> 12:17.000] they can tell me what the hell is wrong and what I should do better. And there's also a [12:17.000 --> 12:23.220] check box for whitelisting the client so they can input their host name and add the [12:24.100 --> 12:29.800] whitelist check box. But I haven't implemented that function so this is first step on the [12:29.800 --> 12:38.720] form, right? And just a disclaimer, I'm not intercepting any traffic, I'm just looking at log [12:38.720 --> 12:44.100] files and so on from requests that's coming in. I haven't told any clients anywhere to [12:44.100 --> 12:49.560] contact my server. I've only just bought one domain name, set up a web server and all the [12:49.560 --> 12:55.460] clients are coming to my server. So this is an example of information I'm getting from one [12:55.460 --> 13:01.500] client. I can see the client's public IP, what name server it used, what internal IP address [13:01.500 --> 13:06.200] it has, the time zone and then of course from the web server log I can see what they're [13:06.200 --> 13:12.280] asking for and thereby also which user agency they have. What application are they using [13:12.280 --> 13:20.080] and operating system and so on. So this was fun. I can get a lot of traffic into the [13:20.080 --> 13:29.340] server. More than I expected. So why not look for buying some more domains? Sadly the [13:29.340 --> 13:35.940] three domains here, they are protected so you cannot register them. There's a limit on [13:35.940 --> 13:44.120] that. They have already set that up. But I got ID and site and build just for fun. Why not [13:44.120 --> 13:50.420] looking at the list that was press and porn so we can try and see which one of them is the [13:50.420 --> 14:01.980] most popular one. And because we are here, dot Vegas. And then I found that the vpat.eu was [14:01.980 --> 14:07.140] apparently registered but there was someone trying to sell the domain but I'm not buying it [14:07.140 --> 14:14.080] at that price. So I could see that also rented domain. So I asked them can I rent this [14:14.080 --> 14:19.920] domain for one year? And is there any limits or rules for what I can use the domain for? And [14:19.920 --> 14:25.160] they say no, you can, there's no rules. You can rent it for one year. And I paid three and a [14:25.160 --> 14:30.500] half euro per month for renting the domain. And then I politely returned it when I was [14:30.500 --> 14:41.060] done with it. So this is my list of domains for this research. And for one year, from April [14:41.060 --> 14:48.160] to April, I get 1.1 billion DNS requests resolving in 200 gigabyte text log files. This is [14:48.160 --> 14:55.420] for the DNS server alone. And if you look down on the, I don't know how big it is, but there's [14:55.500 --> 15:02.980] a client asking for cnn.com and you can then see the internal IP and public IP and so on of [15:02.980 --> 15:14.700] the clients. So here I have seen on which repat domain, where are the clients coming from [15:14.700 --> 15:21.600] in the world. And for the Danish domain, .dk, there's obviously a lot of traffic from [15:21.600 --> 15:27.840] Denmark, but to my surprise, why is there so much traffic from Russia and Ukraine to the [15:27.840 --> 15:34.380] Danish domain? And then there's a big jump down to Germany. So it's a bit odd. There's so [15:34.380 --> 15:43.720] much traffic for that on the DK domain. And the .vegas domain on the right, yeah, of course [15:43.720 --> 15:49.060] United States would be there, but all the other domains, it's a mixed order of why they have [15:49.060 --> 15:58.360] the .vegas. So when Windows machines today is connected to a network, it will in the lower [15:58.360 --> 16:06.840] right corner have a nice icon indicating it has internet access and is working. But because [16:06.840 --> 16:13.560] I'm a proxy server that doesn't return anything and doesn't work by design, the clients of [16:13.560 --> 16:19.040] course will show that they don't have internet access. So I found that for this list of six [16:19.040 --> 16:26.160] Microsoft domains, if I return the string OK for every request, the client will indicate it [16:26.160 --> 16:32.680] has good internet access. So I just added a rule to the proxy web server function saying if [16:32.680 --> 16:38.540] you see this domain, respond with OK. And all the clients then suddenly indicated they have [16:38.540 --> 16:47.500] good internet access again. So what type of traffic do I see? Here's the types of requests I [16:47.500 --> 16:55.920] see. And again, of course, I see a lot of GET requests, but I also see a lot of POST requests. [16:55.920 --> 17:01.260] So that's clients sending data up to the servers. And then I got all the CONNECT requests, [17:01.260 --> 17:08.480] that's the proxy traffic. There's 1.1 billion requests for asking the proxy server to collect [17:08.480 --> 17:15.300] something. So that's actually clients that has downloaded the proxy pack scripts and executed [17:15.300 --> 17:20.820] it on a machine and then coming and asking for a web page. But also we see on the list, [17:20.820 --> 17:29.760] there's WebDAO, there's Apple, there's Microsoft SSM client, there's Microsoft VPN, and there's [17:29.760 --> 17:37.520] many more I have not included in this. So there's a lot of different traffic in this. And that [17:37.520 --> 17:45.280] is based on the Apache log files. You can see in the lower corner about 470 gigabytes Apache [17:45.300 --> 17:52.980] log files with 1.5 billion requests in them. So it takes some time to grab through them and [17:52.980 --> 18:04.780] find the data. So because I am a proxy server, the client trusts, and I've given them a [18:04.780 --> 18:10.820] configuration script, I've told them to send every data to my server, including local [18:10.820 --> 18:17.620] traffic. So if you look here, you can see an internal client, there's 1.5. It should [18:17.620 --> 18:23.720] actually talk to the same computer on the same network next to it, 1.1. But because I've [18:23.720 --> 18:28.460] given it a script saying, no, you should ask the proxy server, it's sending the traffic up to [18:28.460 --> 18:36.080] me and asking me as a proxy server. Even that they are on the same network. And post [18:36.080 --> 18:42.620] requests, this is client sending data. They are just posting data against a web server. [18:43.400 --> 18:49.600] 37 million requests. As I don't have the data, I only have the logs. I don't know what it [18:49.600 --> 18:55.600] is. But everything clients sends to servers, so they can be confidential data, whatever [18:55.600 --> 19:03.740] documents, files, content, whatever. And again, because I'm controlling everything with my [19:03.740 --> 19:10.260] proxy scripts, so every local traffic I have in the domain, from the clients, it should [19:10.260 --> 19:15.320] never go to the Internet because it's not resolvable on the Internet. That's designed to [19:15.320 --> 19:21.300] be handled, to be used for internal network. So here we see some funny domains like [19:21.300 --> 19:28.020] Citrix and FilePrint and vCenter and, yeah, where the client is coming up to my proxy [19:28.020 --> 19:33.720] server and asking for me to get that traffic. Because it's local, I can of course not get [19:33.720 --> 19:41.170] the traffic, but I can see what they are asking for. And then some years back, there started [19:41.170 --> 19:46.670] to be a new smart function in the browsers because they want to protect the DNS traffic, [19:46.670 --> 19:52.730] saying we want now to send the DNS traffic over HTTPS because then rogue guys, man in the [19:52.730 --> 19:58.390] middle, couldn't happen and they couldn't control it. But because I'm now a man in the [19:58.390 --> 20:05.650] middle proxy server, I'm also controlling the DNS over HTTP and it's basically just, as you [20:05.650 --> 20:11.970] can see here, a client asking for Baidu.com and then it returns a JSON blob. So my proxy [20:11.970 --> 20:18.490] could return whatever I want, a JSON blob directing the client to go to another location or [20:18.490 --> 20:27.260] whatever. So passing through the log files and looking for all the file extensions [20:27.260 --> 20:33.980] that is downloaded. This is some of them. This is the highlighted one. It's a bit scary to [20:33.980 --> 20:39.500] see all the credentials and certificates and there's the executables, there's database [20:39.500 --> 20:45.200] files, there's scripts so I could replace a script if the client is executing the script on [20:45.200 --> 20:54.380] the machine. It's not a good thing for the client. Here's an example of executable files the [20:54.380 --> 20:59.480] clients tried to download. So there's Windows Update, Microsoft Installer, there's [20:59.480 --> 21:05.980] Antivirus Updates, Microsoft SCCM Client, and RealPlayer. And didn't know RealPlayer [21:05.980 --> 21:13.300] still was a thing, but okay. So there's a lot of different requests here and I get a lot of [21:13.300 --> 21:20.160] them. This is just a small sample list. But the list of file names I found with the [21:20.160 --> 21:26.800] extensions is not fully true because I also found that there was some bad guys trapped in my [21:26.800 --> 21:33.120] setup trying to scan other servers so they were trying to enumerate for different files like [21:33.120 --> 21:37.980] PFX files and other files. So you can see here there's a long list where they try to access [21:38.200 --> 21:47.920] a web server asking for different files and hoping that they find something. So credentials [21:48.600 --> 21:56.180] in the URL, there's a lot of them. I get 200,000 URL requests where the username and [21:56.180 --> 22:01.740] password is part of the URL. And I don't know if you can see the size of the screenshot [22:01.740 --> 22:07.860] there, but it's apparently an Indian guy that has a lot of friends. He's using a web [22:07.860 --> 22:14.880] service to send SMS messages to all his friends. He apparently has a lot of friends. There [22:14.880 --> 22:23.720] are many, many log lines here. So they all start with something. I don't know what he's [22:23.720 --> 22:33.860] trying to do. So credentials, here's some of the clear text, non-encrypted credentials. I [22:33.860 --> 22:41.120] just get to the server and some of them are so ridiculous like admin, admin. I cannot [22:41.120 --> 22:46.820] censor that away. You should see it. And there's change me, change me. I think that's a good [22:46.820 --> 22:55.520] idea to change that one. And security party, yeah, we are DEF CON, security is a party. So, [22:55.520 --> 23:04.800] yeah, that's very crappy credentials. And NTLM version 1 shouldn't be used for the last 20 [23:04.800 --> 23:11.840] years as Microsoft has tried to tell us, change to NTLM version 2. So administrator, root, [23:11.840 --> 23:23.200] security accounts and so on with NTLM version 1. And then there's NTLM version 2. I also [23:23.200 --> 23:29.320] got many, many clients sending the credentials and there's some good usernames here, admin, [23:29.320 --> 23:37.100] administrator, doctor, hotel manager, and then laser, that sounds fun to play with. And [23:37.120 --> 23:44.620] SA, that's normally a system administrator account on SQL servers and likes. So many good [23:44.620 --> 23:52.940] credentials if you are malicious. So what is the client talking to this server? When I [23:52.940 --> 23:59.080] started this project my thinking was this is just Microsoft crap. They should patch the [23:59.080 --> 24:03.980] things. But if you look at the list you can see it's basically everything. Every [24:03.980 --> 24:12.400] application, it's VPN clients, it's anti-virus applications, it's, yeah, the list is very [24:12.400 --> 24:19.260] long. This is just some of them. There's Cobalt Strike. And you can see in the lower left [24:19.260 --> 24:24.340] corner there's even some guy having trouble with his internet access. So he's using [24:24.340 --> 24:30.000] Wireshark to debug his network is not working because he's apparently using a proxy that [24:30.000 --> 24:35.600] doesn't return anything. So he's debugging that and I then get his update check from [24:35.600 --> 24:45.560] Wireshark. Yeah. So the list is long. There's ProtonVPN and many clients. In fact I got [24:45.560 --> 24:54.980] 27,000 different user agent strings with Linux, Mac, iPhone, Android, whatever, all [24:54.980 --> 25:02.040] platforms. So now I cannot say which client it is that has the issue and which application [25:02.040 --> 25:15.530] that has the issue because it seems to be everything. Yeah. So when you're running a proxy [25:15.530 --> 25:21.510] server that doesn't return anything and you have clients behind it, some of the clients [25:21.510 --> 25:29.090] was not able to download some updated background screen that CrowdStrike provided to [25:29.090 --> 25:43.320] Windows machines. So I have actually protected 226 machines from CrowdStrike. And what [25:43.320 --> 25:50.560] about detection? The only place I have seen any detection is when clients is behind a [25:50.560 --> 25:56.720] Palo Alto setup. The Palo Alto setup will monitor the URLs the client is asking for and [25:56.720 --> 26:01.760] then try to categorize them and check them for malicious things and so on, like many other [26:01.760 --> 26:07.460] proxy servers is also doing. It's the only one I have seen in the traffic that's interacting [26:07.460 --> 26:12.760] with the traffic. And the way it's doing it is replaying the same request that the user [26:12.760 --> 26:18.540] tried to do, but adding this user agent string, this long string you see here, that's the [26:18.540 --> 26:23.620] complete string. So it's a pretty long user agent string where it says it's Palo Alto [26:23.620 --> 26:28.620] monitoring device and so on. And it's suggesting I can send a mail to them to get [26:28.620 --> 26:35.760] whitelisted. But again, I'm a proxy server and I'm not the destination so it's pretty many [26:35.760 --> 26:41.560] mails I have to send to them to get whitelisted for everything. So I haven't tried that. [26:43.020 --> 26:51.840] And then Cisco apparently has some kind of in point client you can install on computers. [26:51.840 --> 26:57.660] And it's my understanding it is designed to protect the client from rogue DNS servers and [26:57.660 --> 27:08.040] rogue proxy servers. It's not working so well. Because what happened is because I'm returning [27:08.040 --> 27:14.640] error pages to everything and rejecting all traffic, the client and the client machine, [27:14.640 --> 27:20.180] the application seems to get angry and just making brute force against my machine trying to [27:20.180 --> 27:26.500] loop and getting the request again and again and again and trying. So the only way was I [27:26.500 --> 27:31.700] had to make a black hole for the domain so I just discarded everything with open DNS.com [27:31.700 --> 27:38.780] into a null and didn't reply on it and then the Cisco client stopped DDoSing my server. [27:40.320 --> 27:50.280] Yeah. So I have also found what I think is malicious. This is for the domain's engineer, [27:50.280 --> 27:57.640] exchange, exposed software and so on. There's a VPAT script and it seems to be running a [27:57.640 --> 28:04.380] proxy for HTTP and FTP traffic with the fail option so if it doesn't work it will go [28:04.380 --> 28:10.600] direct. But it's also collecting data and sending it over an extra channel with some [28:10.600 --> 28:15.980] communication so this looks like someone is monitoring traffic for this, for domains [28:15.980 --> 28:29.290] here. And this, this one is a bit weird one. It's a, I think it's, it's a guy that really, [28:29.290 --> 28:36.570] that's, or it's, it's just some testing going on because on VPAT.trade there's a proxy [28:36.570 --> 28:42.030] script that's looking with a lot of if statements if there's including some kind of [28:42.030 --> 28:48.390] ad word in the request it will send the request through a proxy server. If there's not a [28:48.390 --> 28:55.190] word then it will go direct. So it seems that someone is trying to collect all the ads. The [28:55.190 --> 29:01.370] reason for this I think can maybe be that he is replacing the ad IDs in the traffic to his [29:01.370 --> 29:07.210] own and by this earning money on capturing the traffic and then getting paid for, because [29:07.210 --> 29:14.210] he's directing all the clients to his ad ID. Maybe. Or it's a test for something. Or he's [29:14.210 --> 29:25.540] just like ads. I don't know. So here's another one. Also a bit weird. And the name, the [29:25.540 --> 29:36.600] CLDs that doesn't MR, cooking, storage, surf, there's no, no continuous line in them. It [29:36.600 --> 29:43.480] claims to be some sort of security project. I haven't been able to find any place where [29:43.480 --> 29:47.960] they are talking about this project and anything. So it's only a claim inside this [29:47.960 --> 29:55.100] configuration file. It's, it's a bit weird in, it's only sending the traffic to a proxy [29:55.100 --> 30:02.320] server for what is not a result of domains. So all the things that failed, it sends to the [30:02.320 --> 30:07.820] proxy server. Anything else, it goes to direct. So it's maybe something that tries to look [30:07.820 --> 30:16.860] for all the odd things that's hidden on the net. I don't know what the function is. Yeah. [30:17.280 --> 30:24.440] So we have a winner. Apparently press is more interesting than porn. I wouldn't have guessed [30:24.440 --> 30:31.340] otherwise. But this is the score for the vpat.dat file, how many times it downloaded. And [30:31.340 --> 30:39.800] they have been running at the same server, same time, for the same. So from the client, from [30:39.800 --> 30:46.520] the forms I get with the users, I got 40 users that clicked, that wanted whitelisting from [30:46.520 --> 30:52.780] this error. Even I haven't implemented any function to whitelist anything and just [30:52.780 --> 30:59.060] returning errors to them. And they insert some computer names. It doesn't look like DNS [30:59.060 --> 31:07.600] names, but it's computer names. So yeah, maybe a day I will add a whitelist function. And [31:07.600 --> 31:15.740] here we have some feedback from the users. Apparently they are not all happy. Some users say [31:15.740 --> 31:20.940] I got this error message when trying to get to my net bank, or I clicked this link in the [31:20.940 --> 31:33.980] mail and got this error, or t-shirt, or whatever. So not all users are happy. So when I saw [31:33.980 --> 31:42.040] that I was getting feedback from the users, thinking why not set up a survey asking the user [31:42.040 --> 31:48.660] how much they like my non-working proxy server that only returned errors to all the clients. [31:48.660 --> 31:59.000] So I added this, three normal steps to ask. And to my surprise, I have a higher leaning on [31:59.000 --> 32:05.540] they really like my service and would recommend it to their friends. So this is for non-working [32:05.540 --> 32:18.030] proxy. But there was only four responses, so. Yeah, and there was no one submitting an [32:18.190 --> 32:26.110] e-mail address. So the hundred dollars are going to Danish Cancer Fund. I added on the web [32:26.110 --> 32:31.770] page, I added a feedback form. Maybe getting some good suggestions and so on to what I can [32:31.770 --> 32:39.770] improve on my non-working proxy. But I only got more than 3,000 spam messages saying that [32:39.770 --> 32:45.770] they will ECAO, optimize my website so more will find it. I don't know if I should sign up [32:45.770 --> 32:56.980] for that. I have many clients already. And zero feedback from anyone. So for the period of [32:56.980 --> 33:04.700] this one year, I managed it by Google. If anyone anywhere was writing about this domain I had [33:04.700 --> 33:10.580] on my list to see if they were talking about it in some forum, talking about disabling [33:10.580 --> 33:17.360] VPAT and so on. I haven't found anyone for one year talking about anything about the [33:17.360 --> 33:22.940] domains. So it has been, to my knowledge, completely silent for one year without any [33:22.940 --> 33:33.500] detection anywhere. So my question is, why can a dude like me even buy this domain? Why [33:33.500 --> 33:40.260] should this crap that is 25 years old not be just disabled? Why do we have this? It's not [33:40.260 --> 33:45.640] modern security model. We just download a pack script with a JavaScript, run it on the [33:45.640 --> 33:50.860] client, and then the client just sends all the traffic to a proxy server. It's not very [33:50.860 --> 33:58.260] secure. So I don't know if I can stand here in 25 years or in a wheelchair talking about the [33:58.260 --> 34:06.540] same thing once again, saying that nothing has changed. I don't know. But it is this 25 [34:06.540 --> 34:16.900] year anniversary. Yeah, I can see I have still some time. So first of all, a big shout out to [34:16.900 --> 34:23.880] my friend Kel Norman for a lot of help with the research and information. And I have some [34:23.880 --> 34:34.140] bonus slides because I have some extra time. So I posted this talk on the schedule page on [34:34.140 --> 34:41.120] DEF CON. And shortly after that time, I was contacted by a guy that's called Teton, saying [34:41.120 --> 34:47.060] that he was for the last half year basically doing the same research into some other domain [34:47.060 --> 34:53.800] names. And we could look and share some data. That could be fun if we had the time. But [34:53.800 --> 35:03.000] also he's had paid up for some domains in the .AD. And from what I've heard, there should be [35:03.000 --> 35:08.600] coming a really, really good talk. I look forward to hear how many active directories [35:08.600 --> 35:21.580] that's coming in the same way. Okay, ten minutes. So after running this for basically two [35:21.580 --> 35:28.760] months, I got contacted in Denmark. Denmark is not a very big place, about 5, 6 million [35:28.760 --> 35:37.160] people. So the security community is not that big. I got contacted from someone saying, [35:37.160 --> 35:45.060] Thomas, you're running some kind of research project for the VPAT? Yeah? Okay. This big [35:45.060 --> 35:50.760] company apparently got a lot of machines trapped in the VPAT.dat file and all the traffic [35:50.760 --> 35:56.680] was going to my server. So they, they just wanted to know. And the way they found it was [35:56.680 --> 36:03.880] because one of the domains I had on my list, it was not fully anonymized. So they could see [36:03.880 --> 36:12.940] the name Thomas and then say, ah, Thomas from Denmark. We tried to call him. That's good [36:12.940 --> 36:26.660] research. Yeah. So if you're looking back on 27,000 different user agent strings on basically [36:26.680 --> 36:33.660] all platforms, I would like to present one slide saying, this is Microsoft crap. Here's the [36:33.660 --> 36:39.100] three settings you want to set on a Microsoft machine and you're protected. But this seems to [36:39.100 --> 36:46.160] be all platforms, all applications that has the issue. Otherwise I wouldn't have got so much [36:46.160 --> 36:53.380] traffic as I've seen in my data. So my best advice is to add into the host file on the [36:53.380 --> 37:01.120] machine, the VPAT domains and saying that it looped back to itself so it will never send any [37:01.120 --> 37:08.300] traffic to the internet. And then you have to look up each OS to see which way you can [37:08.300 --> 37:14.900] disable the function on there. And also add the VPAT to your company domain. So if a client [37:14.900 --> 37:24.660] is asking on that domain, it will not resolve other than 127. A thing also to note here that I [37:24.660 --> 37:30.540] skipped over is that when a client download my VPAT configuration config file, it [37:30.540 --> 37:37.120] caches the file. So when people are working from home, they may be on a network where they [37:37.120 --> 37:43.080] can download the file in a DK domain. They download the file, start using the proxy, get [37:43.080 --> 37:49.040] into the workplace, keep using the proxy because they are caching the file. I have told them to [37:49.040 --> 37:56.540] use this file for 14 days or something. So they will keep using it. Yeah. And it's best to [37:56.540 --> 38:05.640] disable this VPAT function at system level. Otherwise if you only disable the browser, all the [38:05.640 --> 38:10.500] services you have on the machine that are running at system, they are also talking like [38:10.500 --> 38:14.640] antivirus application. They are talking to the internet. That will not inherit the [38:14.640 --> 38:19.600] configuration from the client settings. So it's best to set it on machine level so it's [38:19.600 --> 38:25.120] everything on the machine and disable its function. And as you can see, there's a Windows [38:25.120 --> 38:33.280] service called HTTP Windows Proxy Automatic Discovery Service. It's on all machines. No one [38:33.280 --> 38:39.060] know what it is, but now you know what it is. It can be difficult to disable because it has [38:39.060 --> 38:48.400] dependency to other things. Yeah. So basically read the fucking manual to find out how to [38:48.400 --> 38:55.740] disable it on all applications and OSs because it's not easy for me to make one slide to fix it [38:55.740 --> 39:03.540] at all. Yeah. So this is the slides. Again, thank you to Kel.