1 00:00:00,000 --> 00:00:02,440 This talk is about VPN filter. 2 00:00:02,500 --> 00:00:04,060 The malware campaign. 3 00:00:05,140 --> 00:00:18,440 And because this is the ICS village, we're going to focus about half the talk on ICS specific component of this, which had some Modbus capability and try and give everybody a better understanding of exactly what that was. 4 00:00:18,620 --> 00:00:21,920 So this is I'm Patrick DeSantis. 5 00:00:22,060 --> 00:00:23,160 This is Carlos Pacho. 6 00:00:23,160 --> 00:00:30,200 We are two of many researchers at Cisco Telus that spent a long time working on this project. 7 00:00:30,220 --> 00:00:36,200 Many months, many hours, lots of really smart people doing really cool stuff with this. 8 00:00:36,260 --> 00:00:45,500 We're two small pieces of a much larger group that probably did a lot cooler stuff than we did, but you get to talk to us instead. 9 00:00:47,920 --> 00:00:51,900 So some boundaries I'm going to set for the talk. 10 00:00:51,900 --> 00:00:55,880 I will talk about VPN filter and its technical capabilities. 11 00:00:55,880 --> 00:00:57,440 We'll talk about the targets. 12 00:00:57,720 --> 00:01:01,180 And specifically, we'll spend a lot of time talking about the Modbus module. 13 00:01:01,380 --> 00:01:03,280 I will not talk about attribution. 14 00:01:03,460 --> 00:01:05,080 The US government took care of that. 15 00:01:05,160 --> 00:01:10,100 I will not talk about any of our partners or victims associated with this campaign. 16 00:01:11,820 --> 00:01:13,120 So no. 17 00:01:14,380 --> 00:01:28,280 So VPN filter is a multi-year state sponsored, very sophisticated malware campaign targeting primarily edge devices in the small office, home office realm. 18 00:01:28,680 --> 00:01:31,320 It's been going on since at least 2016. 19 00:01:31,320 --> 00:01:35,440 2016 was the oldest sample that we are aware of. 20 00:01:35,500 --> 00:01:37,480 So it's been going since before that. 21 00:01:37,620 --> 00:01:43,800 And at the time we went public in May, we estimated there were about half a million infected devices globally. 22 00:01:44,520 --> 00:01:48,100 You know, that number can go up and down depending on how active the actor is. 23 00:01:48,100 --> 00:01:52,840 So this is a nice conservative estimate, at least half a million, which is still a significant amount. 24 00:01:53,620 --> 00:01:55,940 And it's interesting because it's cross -platform. 25 00:01:56,060 --> 00:02:01,500 This is malware that runs on multiple operating systems , and even multiple architectures. 26 00:02:01,860 --> 00:02:08,700 So we've got, you know , samples that run on MIPS, variant of MIPS, MIPS Electra, x86 , tile, more. 27 00:02:09,760 --> 00:02:17,380 And then within the specific architectures that are targeted , the binaries that were compiled were specific for the devices that we're going to run on. 28 00:02:17,380 --> 00:02:18,680 And there were a lot of devices. 29 00:02:18,680 --> 00:02:36,320 So we're aware of over 75 distinct device models from several vendors that have capabilities compiled specifically for those devices, which is some pretty serious effort on the part of the actor to go through and put that much work into it. 30 00:02:36,460 --> 00:02:40,760 Especially when a lot of these are, you know, sub $50 Soho devices. 31 00:02:40,760 --> 00:02:47,320 Other ones are like the MicroTik or Macrotic, I'm not sure how the correct pronunciation is. 32 00:02:47,320 --> 00:02:50,540 Those are rackmount, like enterprise grade network appliances. 33 00:02:50,540 --> 00:02:52,700 Most of the rest are Soho devices. 34 00:02:52,880 --> 00:02:55,900 Some are basic like home wireless routers. 35 00:02:56,360 --> 00:03:02,700 And then QNAP stuff that we saw was mostly pretty sure was just network attached storage devices. 36 00:03:03,000 --> 00:03:11,280 So during the time that we were working on this, a vast majority of the activity was targeting MicroTik and QNAP devices. 37 00:03:11,640 --> 00:03:13,900 But that was just during the time we were looking at it. 38 00:03:13,900 --> 00:03:17,860 If we had looked six months before, there may have been more or less activity. 39 00:03:18,540 --> 00:03:21,540 And you know, if we're looking six months from now, it may vary also. 40 00:03:21,620 --> 00:03:27,280 So but at the time, we looked mostly MicroTik, mostly QNAP, and lots of devices. 41 00:03:27,440 --> 00:03:47,760 So we needed to get into a position where we could bait the actor into delivering some of their, you know, some of those custom payloads for those other devices to us without tipping off our hand that we were actually working on, learning more about it. 42 00:03:47,760 --> 00:03:59,360 And so we were kind of stuck in a position where we wanted to set up like a honeypot infrastructure, leverage honeypots, but your traditional honeypots are often limited in their capabilities. 43 00:03:59,360 --> 00:04:04,020 We couldn't give any indication that we were in a, you know, in a honeypot. 44 00:04:04,020 --> 00:04:06,920 So virtualized or emulated environment was a no go. 45 00:04:07,340 --> 00:04:13,440 So often your honeypot configurations don't capture full network traffic, we needed full PCAN. 46 00:04:13,440 --> 00:04:17,460 We couldn't deal or we couldn't handle just metadata about the traffic. 47 00:04:17,520 --> 00:04:22,720 We needed to be able to look at everything that the device has received and pull files out of them. 48 00:04:22,720 --> 00:04:26,340 Because if the actor brick the device, we lose all forensic artifacts. 49 00:04:26,340 --> 00:04:28,260 So we needed all network traffic. 50 00:04:30,620 --> 00:04:33,900 So we had to set up our own, our own honeypot infrastructure. 51 00:04:33,900 --> 00:04:35,480 And we did that using real devices. 52 00:04:35,480 --> 00:04:41,940 So there's full interaction, honeypots, real devices, we bought about 40 of them. 53 00:04:42,340 --> 00:04:47,520 So in the diagram, we've got, you know, you get your internet. 54 00:04:47,700 --> 00:04:54,000 And then in this area here is where we break off onto our attack, or our target network. 55 00:04:54,000 --> 00:04:55,940 This is the target zone. 56 00:04:56,040 --> 00:04:57,600 So these are real devices. 57 00:04:57,600 --> 00:05:06,860 And they're on the internet using commercial or residential IP space instead of, you know, Cisco IP, because that would kind of be a dead giveaway. 58 00:05:07,060 --> 00:05:11,080 Or you know, like a virtual machine on AWS. 59 00:05:12,400 --> 00:05:16,700 So we had real devices and they had to be not obvious that it was Cisco. 60 00:05:18,120 --> 00:05:22,020 And the switch here, these devices can talk out and everything can talk in. 61 00:05:22,020 --> 00:05:23,880 So it's like they're on the internet directly. 62 00:05:23,880 --> 00:05:27,460 But they can't talk to each other, unless it goes out and comes back in. 63 00:05:27,460 --> 00:05:29,040 So they don't see each other. 64 00:05:29,240 --> 00:05:41,700 And the switch has a mirror port, spam port, that goes to a network tap, one way network tap, which goes to our analysis workstation, which was very locked down, and is set up to not allow any traffic out. 65 00:05:41,700 --> 00:05:48,660 So we've got three places to block any outbound traffic from our analysis zone here. 66 00:05:49,080 --> 00:05:57,440 It would not be a good thing if the actor associated with this campaign were able to go from here to our internal corporate network. 67 00:05:57,900 --> 00:06:01,640 I wouldn't be here talking about it today if we did. 68 00:06:02,620 --> 00:06:05,040 I may be out there with you handing out my resume. 69 00:06:06,340 --> 00:06:09,640 So we spent a lot of time and effort on this component. 70 00:06:10,180 --> 00:06:12,220 Right here we had full network traffic. 71 00:06:12,220 --> 00:06:17,560 So gigabytes of traffic a day associated with activity on these devices was living here. 72 00:06:17,560 --> 00:06:19,080 And that's where we did our analysis. 73 00:06:21,580 --> 00:06:26,460 So standing up this full interaction honeypot environment has some issues, some challenges. 74 00:06:26,820 --> 00:06:35,260 There's a reason why people use the limited interaction honeypots and it offers a lot more convenience, especially when you're spinning up VMs, you can just replicate them. 75 00:06:35,840 --> 00:06:38,560 You don't have to actually manage the physical devices. 76 00:06:38,680 --> 00:06:41,060 We had 40 devices, 40-ish. 77 00:06:41,480 --> 00:06:43,820 Some of them we bought used, so you can't trust them. 78 00:06:43,820 --> 00:06:52,100 So we had to go through each device, validate that it wasn't already owned, set it up in an intentionally vulnerable configuration, because we wanted them to get owned. 79 00:06:52,520 --> 00:06:59,540 So we had to put firmware on there with known vulnerabilities and publicly available exploits. 80 00:06:59,920 --> 00:07:01,880 We set them up for configurations. 81 00:07:03,540 --> 00:07:14,880 There was a large volume of traffic and none of it was legitimate because these devices weren't doing anything, but... Oh, that didn't show up on your screen. 82 00:07:14,960 --> 00:07:17,000 Flamingo wants you to join their Wi-Fi Larry. 83 00:07:19,000 --> 00:07:25,120 So all traffic going to these devices was malicious, or even if it was benign, it was not legitimate. 84 00:07:25,260 --> 00:07:28,540 So there's an old phrase looking for a needle in a stack of needles. 85 00:07:28,540 --> 00:07:35,140 It applies very, you know, it's very applicable to this because every bit of traffic was not legitimate. 86 00:07:35,140 --> 00:07:37,240 And we don't really know what we're looking for. 87 00:07:37,240 --> 00:07:42,380 So we have to find something bad in gigabytes and gigabytes of bad stuff. 88 00:07:42,600 --> 00:07:44,800 And then there's the security versus usability. 89 00:07:44,800 --> 00:07:49,100 And I think Carlos and I, well, we probably had each other in a headlock a few times. 90 00:07:49,100 --> 00:07:55,860 As I'm advocating for security, as I said, if the actor made their way into our network, bad stuff. 91 00:07:55,920 --> 00:08:08,520 But every time I lock something down or like advocate for something to be locked down more, it's, it's inconvenience and annoyance for the researchers that need to be able to interact with the devices and do analysis on the traffic. 92 00:08:08,520 --> 00:08:20,080 But because of the sophistication of the actor, we had to err on the side of security, much to my team and other people's, well, I owe them some beer, I guess. 93 00:08:20,560 --> 00:08:22,120 And the device limitations. 94 00:08:22,120 --> 00:08:24,360 So you see this is just like in control systems. 95 00:08:24,360 --> 00:08:26,520 These are often embedded systems. 96 00:08:27,220 --> 00:08:32,880 The legitimate management interfaces don't provide a lot of functionality for legitimate users. 97 00:08:33,020 --> 00:08:37,840 So you can't just drop down in the shell and log in as root and do whatever you want in Linux. 98 00:08:38,080 --> 00:08:44,760 You know, you might be in a limited environment, or maybe the only administrative control you have is through a web interface. 99 00:08:45,340 --> 00:08:51,720 So just like an ICS, an attacker who owns the device has more control over it than the legitimate user. 100 00:08:51,720 --> 00:09:00,520 So we found ourself in a position of actually exploiting and owning our own devices just to find out if they had been owned by somebody else, which is interesting. 101 00:09:01,840 --> 00:09:11,960 So that was kind of how we dealt with the risk associated with interacting with and having live targets intentionally infected by a state actor. 102 00:09:12,920 --> 00:09:22,940 Now the mailer itself that we're going to get with, there were several groups that did reversing and analysis of the actual mailer. 103 00:09:23,520 --> 00:09:26,060 But I do have to clarify one thing before we go into that. 104 00:09:26,060 --> 00:09:38,340 And there's since we went public in May, there's kind of been, I don't know how it started, but there was an initial misconception about the relationship between VPN filter and black energy malware. 105 00:09:38,560 --> 00:09:52,480 So black energy has a flaw in the implementation of the RC4 encryption algorithm, where it fails to properly initialize the S-boxes during the permutation stage. 106 00:09:52,480 --> 00:09:54,720 So it's a very , very, very specific flaw. 107 00:09:54,720 --> 00:09:57,320 It's not just like, whoops, we used the wrong library. 108 00:09:57,340 --> 00:10:07,080 The VPN filter has the exact same flaw and the exact same part of the implementation of the S-boxes in the permutation stage of the RC4 encryption algorithm. 109 00:10:07,080 --> 00:10:08,240 So there's overlap there. 110 00:10:08,240 --> 00:10:10,060 And it's a very specific overlap. 111 00:10:10,660 --> 00:10:14,280 VPN filter does not contain a full copy of black energy. 112 00:10:14,280 --> 00:10:21,540 So it's just the overlap that was the only connection that Talos identified and reported. 113 00:10:21,540 --> 00:10:26,020 So if you see anything else out there, it's just this, just RC4. 114 00:10:27,860 --> 00:10:33,280 It's a multistage malware, very sophisticated. 115 00:10:33,280 --> 00:10:42,100 I'm going to probably say that 20 times, but you start with initial exploitation and the malware drops a persistent loader that's specific for the target device that it drops on. 116 00:10:42,100 --> 00:10:48,600 The loader in stage one is the only part of the malware that has persistence that can survive a reboot. 117 00:10:48,600 --> 00:10:50,220 And that depends on the device. 118 00:10:50,620 --> 00:10:58,460 Aside from being persistent, stage one's only job is to find the stage two server, retrieve and install stage two. 119 00:10:59,220 --> 00:11:02,400 It has some really interesting ways of finding the stage two server. 120 00:11:02,740 --> 00:11:11,120 First is it'll look out and grab some images off photo bucket within the exit data and the images specifically in the latitude and longitude. 121 00:11:11,900 --> 00:11:20,000 You run it through a decoding routine, which we, one of our guys reversed, and you can pull out IP addresses out of the latitude and longitude. 122 00:11:20,580 --> 00:11:24,100 It'll then reach out to the IP address and try to get stage two. 123 00:11:24,100 --> 00:11:26,740 If it doesn't work, it tries a couple more images. 124 00:11:26,740 --> 00:11:29,440 If it doesn't work, it eventually goes to a hard coded domain. 125 00:11:30,160 --> 00:11:36,200 If that doesn't work, it does what I think is probably the most interesting part of this stage. 126 00:11:36,200 --> 00:11:42,980 It opens up a raw socket and listens for all traffic on all ports. 127 00:11:43,500 --> 00:11:54,980 And if it receives a TCP SIN with a very, you know, with specific bytes at a specific value, it'll grab another set of bytes and that's the IP address for the stage two server. 128 00:11:55,040 --> 00:12:11,160 So it's basically, it looks out, tries to get stage two, can't get it, it looks out another way, can't get it, falls back into this passive listening mode where the actor can intentionally task it with this, but just by using one TCP SIN to give it the IP address of the current stage two server. 129 00:12:11,700 --> 00:12:26,660 When it gets stage two, stage two is your framework, it's the workhorse, closest equivalent I can give you is like it's the meterpreter component and that it has some baked in functionality and it also has extensible and you can add other modules. 130 00:12:26,660 --> 00:12:31,340 So you can execute shell commands, it's got some collection capability, it's got some exfil capability. 131 00:12:31,340 --> 00:12:37,940 Some of the older stage twos we looked at had a built in kill capability where it would actually brick the devices. 132 00:12:38,420 --> 00:12:40,600 Talk about that in a second too. 133 00:12:40,600 --> 00:12:51,680 And then it's extendable through these stage three modules and plugins, which because it's extensible through modules, the functionality is essentially unlimited. 134 00:12:51,740 --> 00:12:56,680 It's only limited by what the actor actually develops for it. 135 00:12:58,620 --> 00:13:02,840 So Carlos is going to talk about one of those stage three modules. 136 00:13:03,240 --> 00:13:10,020 This is a diagram of what I described, the process of going from exploitation to stage one, to stage two, to stage three. 137 00:13:10,020 --> 00:13:13,660 I can spend an hour up here talking just about this slide. 138 00:13:14,100 --> 00:13:15,340 I can't do that. 139 00:13:15,340 --> 00:13:16,340 I'm not going to do that. 140 00:13:16,340 --> 00:13:17,580 I don't want to do that. 141 00:13:18,540 --> 00:13:24,400 But everybody that worked on this with me, we sat through several hours trying to understand this from many angles. 142 00:13:24,860 --> 00:13:32,020 This image is on the Telos blog, the initial blog post that described when we went public with VPN filter. 143 00:13:32,320 --> 00:13:35,480 It's very interesting, obviously very sophisticated. 144 00:13:36,000 --> 00:13:47,600 When the takedown happened, there was essentially a photo bucket or two in the wall angle had been taken down. 145 00:13:48,100 --> 00:13:52,720 The only thing left was the raw socket. 146 00:13:53,200 --> 00:13:55,040 So the person that had the device was infected. 147 00:13:55,040 --> 00:13:57,440 If you rebooted it, it would try to go to photo bucket. 148 00:13:57,500 --> 00:13:58,480 This stuff wasn't there anymore. 149 00:13:58,480 --> 00:14:00,160 It would try to go to wall, to no wall. 150 00:14:00,160 --> 00:14:00,980 It couldn't. 151 00:14:01,100 --> 00:14:02,840 So it would sit with the raw socket. 152 00:14:03,440 --> 00:14:08,480 So it was still vulnerable, but the actor is going to have to reach out and touch it manually at that point. 153 00:14:11,060 --> 00:14:13,780 So some of the stage three plugins that we've seen. 154 00:14:14,160 --> 00:14:16,180 These are the modules that come after stage two. 155 00:14:16,180 --> 00:14:17,260 These are the extensions. 156 00:14:17,640 --> 00:14:18,800 There's a packet sniffer. 157 00:14:19,000 --> 00:14:21,240 This is the one that Carlos is going to talk about. 158 00:14:21,560 --> 00:14:31,800 There's one that we refer to as Esler, which is interesting because this module allows for modification of traffic as it passes through the compromised device. 159 00:14:31,800 --> 00:14:39,920 So you've got your perimeter device, your edge router, all traffic on port 80 or going to port 80 is getting man in the middle. 160 00:14:40,200 --> 00:14:47,040 And JavaScript can be injected into the traffic that returns to the devices on the inside of the network. 161 00:14:47,140 --> 00:14:54,000 So this module allows the actor to compromise devices on the inside of the security perimeter without actively scanning and exploiting them. 162 00:14:54,000 --> 00:14:58,500 It happens invisibly at the router. 163 00:14:59,280 --> 00:15:04,080 There's a Tor module, which gives stage two the ability to communicate with command and control over Tor. 164 00:15:04,160 --> 00:15:10,840 And then the kill brick component that I mentioned was in stage two. 165 00:15:10,920 --> 00:15:16,080 It meant the older stage twos we found had baked in kill. 166 00:15:16,140 --> 00:15:24,000 The newer ones, it was missing and we had a suspicion that okay, there's probably a stage three that does that and later on we confirmed. 167 00:15:24,280 --> 00:15:34,080 So this this destroy will go through and clear artifacts like indicators of compromise to try and erase any tracks of its presence. 168 00:15:34,080 --> 00:15:36,540 And then it will brick the device. 169 00:15:36,820 --> 00:15:44,840 Usually the brick is by overriding the first I think 5000 was the most when we saw 5000 bytes of flash. 170 00:15:44,980 --> 00:15:53,800 So it's essentially wiping out the boot loader and the device is done unless you can reprogram that flash memory, which you're not doing on any of these devices. 171 00:15:53,940 --> 00:15:57,840 And 99.9% of the population couldn't even do it if the capability was there. 172 00:15:58,340 --> 00:16:00,760 So brick device bad. 173 00:16:01,340 --> 00:16:04,560 I said very specific or very sophisticated. 174 00:16:05,780 --> 00:16:15,900 So why would somebody go through the trouble of actually building something like this, spending several years doing it, deploying it globally, obviously it probably costs millions of dollars over time. 175 00:16:16,180 --> 00:16:19,020 This is a global intelligence infrastructure. 176 00:16:19,900 --> 00:16:24,480 What we used to refer to as computer network operations are now referred to as cyber operations. 177 00:16:24,480 --> 00:16:31,240 This gives a massive distributed global network to conduct those cyber operations from and mask attribution. 178 00:16:31,460 --> 00:16:41,700 So the any attacks or traffic that comes through this network is going to look like it comes from a SOHO device, you know, somewhere in wherever they choose to make it look like it comes from. 179 00:16:41,700 --> 00:16:45,980 It makes it difficult to track people or track the attribute attacks. 180 00:16:47,160 --> 00:16:50,420 It's also a data collection platform, passively. 181 00:16:51,280 --> 00:16:54,940 What Carlos is going to talk about is going to mention some passive collection and active. 182 00:16:54,940 --> 00:17:03,800 These devices have been used to scan for other things, and then sometimes scan for other vulnerable things and then exploit them and add them to the VPN filter network. 183 00:17:04,340 --> 00:17:15,800 The destructive attack is the thing that we were the most worried about when we had to decide whether or not we were going to go public, or when we would eventually go public, but this kind of drove us to go public when we did. 184 00:17:16,340 --> 00:17:24,160 The actor had the ability to effectively knock about half a million networks off the internet all at once. 185 00:17:24,460 --> 00:17:29,960 So not half a million devices by knocking these routers off, you're knocking everything behind the routers off the internet too. 186 00:17:29,960 --> 00:17:33,640 So take a half a million networks off the internet all at once. 187 00:17:33,640 --> 00:17:34,680 It's pretty serious stuff. 188 00:17:34,680 --> 00:17:36,520 And we were pretty worried about that. 189 00:17:36,520 --> 00:17:37,920 Thankfully, it never happened. 190 00:17:38,520 --> 00:17:41,980 Also, you've got the ability to exploit inside the network. 191 00:17:42,900 --> 00:17:49,400 If the actor was on the internal network, and had been kicked out, so they have a point of presence on the edge router. 192 00:17:50,100 --> 00:17:55,320 And unless the incident response team actually went and validated that they were booted off those edge routers, they can come right back in. 193 00:17:55,580 --> 00:17:57,800 And then everything that the botnet can do, this can do too. 194 00:17:57,800 --> 00:17:59,540 So it has a lot of value. 195 00:18:02,540 --> 00:18:04,860 So that's kind of the big picture overview. 196 00:18:05,120 --> 00:18:11,600 The four hour discussion about what VPN filter is distilled down into 15 minutes. 197 00:18:11,820 --> 00:18:15,900 This is the ICS village, we want to talk about stuff that ICS people care about. 198 00:18:15,900 --> 00:18:22,400 Carlos is going to talk about the technical aspects of the VPN filter, Modbus module. 199 00:18:22,720 --> 00:18:23,400 Carlos. 200 00:18:23,400 --> 00:18:24,560 Thanks, Patrick. 201 00:18:26,180 --> 00:18:31,460 Alright, so I'm going to talk about the VPN filter packets and for module. 202 00:18:32,820 --> 00:18:38,160 The packets for module was responsible for inspecting packets and logging certain connections. 203 00:18:38,180 --> 00:18:44,060 Specifically, the packets for module would log connection information about HTTP and certain Modbus connections. 204 00:18:44,700 --> 00:18:50,280 The packets for module was targeting the R 600 VPN router, which is a five port SOHO router. 205 00:18:50,640 --> 00:18:54,260 When we did a quick search on showdown, we found around 5000 of these devices online. 206 00:18:54,260 --> 00:19:03,900 But I think it's safe to assume that there's a lot more than 5000 devices these online, because showdown was just showing us ones that were that had no mantra enabled and were accessible on the internet. 207 00:19:04,520 --> 00:19:09,420 So this is the picture of the device, the Qt Link R 600 VPN router. 208 00:19:10,440 --> 00:19:13,040 The malware was specifically targeting this device. 209 00:19:14,940 --> 00:19:17,860 So the packet sipper is compiled for Lexra. 210 00:19:17,860 --> 00:19:19,560 Has anybody here heard of Lexra? 211 00:19:20,000 --> 00:19:20,960 Cool. 212 00:19:21,020 --> 00:19:21,960 Two people. 213 00:19:22,080 --> 00:19:22,560 Alright. 214 00:19:23,600 --> 00:19:26,940 This project is the first time I've ever worked with or even heard of Lexra. 215 00:19:26,940 --> 00:19:30,020 It's really similar to MIPS, but it's missing some instructions. 216 00:19:30,960 --> 00:19:35,480 Initially, when I started working on this, I thought the device and sample were MIPS. 217 00:19:35,500 --> 00:19:41,320 And this was problematic, because Patrick and I were attempting to get compiled MIPS code running on the R 600, but we kept getting seg faults. 218 00:19:41,640 --> 00:19:45,280 Eventually, one of our co-workers found out it was Lexra and helped us out with that. 219 00:19:45,280 --> 00:19:46,080 So it was good. 220 00:19:48,360 --> 00:19:50,880 So first off, I want to give a huge shout out to Carl Hurd. 221 00:19:50,880 --> 00:19:55,340 He works on our team at Cisco Talos, and he was the first one to reverse the packets for module. 222 00:19:56,060 --> 00:19:59,360 The sample was first uploaded to VirusTotal in 2016. 223 00:19:59,800 --> 00:20:01,800 So this module has been around for quite some time. 224 00:20:02,220 --> 00:20:08,160 I wonder how long the module has been around, because 2016 is just the first time it was uploaded to VirusTotal. 225 00:20:08,820 --> 00:20:10,800 The module is a Linux ELF. 226 00:20:10,800 --> 00:20:12,420 It's stripped and statically compiled. 227 00:20:12,700 --> 00:20:16,080 The fact it was stripped and statically compiled, made reversing a little bit more difficult. 228 00:20:16,120 --> 00:20:20,560 We had no function names, even Lipsy functions, they were unnamed, which was pretty annoying. 229 00:20:22,740 --> 00:20:25,620 So the sample will inspect every packet. 230 00:20:26,700 --> 00:20:28,500 It will initially do some checks. 231 00:20:28,620 --> 00:20:34,940 So it will first check to see if the packet is greater than 150 bytes, if the packet is IPv4, and if the packet is TCP. 232 00:20:34,940 --> 00:20:40,520 If all those conditions are met, then the sample will look for Modbus NHDP. 233 00:20:42,440 --> 00:20:47,500 So in order for the packet sniffer module to run, two arguments need to be provided. 234 00:20:47,660 --> 00:20:50,340 The first argument is the logging directory. 235 00:20:50,340 --> 00:20:52,060 This is where the logs will be stored. 236 00:20:52,140 --> 00:20:54,300 And the second is an IP address. 237 00:20:54,700 --> 00:20:58,280 If these two arguments are not provided, the sample will just exit. 238 00:20:58,360 --> 00:21:03,600 But if the two arguments are provided, we immediately enter the packet's parsing loop. 239 00:21:04,160 --> 00:21:12,720 So in the packet parsing loop, in the beginning we have some IP checks, checking for IPv4, TCP, and the packet size. 240 00:21:13,100 --> 00:21:17,280 And if those checks pass, then we will start looking for Modbus. 241 00:21:17,960 --> 00:21:23,480 And if the loop does not detect Modbus, then it will check for HDP. 242 00:21:26,180 --> 00:21:34,300 So all network traffic passes through this loop, and the loop is specifically looking for Modbus and HDP, and it will discard anything else. 243 00:21:34,600 --> 00:21:41,380 So if something doesn't meet the criteria for Modbus or HDP, the packet will be discarded and the loop will be restarted with the next packet. 244 00:21:45,080 --> 00:21:49,380 So for each packet, the loop is going to check to see if the packet is greater than 150 bytes. 245 00:21:50,080 --> 00:21:52,600 Then the loop is going to make sure the packet is IPv4 and TCP. 246 00:21:53,100 --> 00:21:56,580 And finally, we start the Modbus and HDP checks. 247 00:21:58,400 --> 00:22:02,560 So first off, for those of you that may not know, Modbus is an ICS protocol. 248 00:22:02,700 --> 00:22:12,300 It's commonly used by PLCs, runs on port 502, and the protocol is open so you can grab it from Modbus.org, and it doesn't support encryption. 249 00:22:14,820 --> 00:22:19,600 So once the loop has done the initial IP checks, the loop is going to check for Modbus. 250 00:22:19,640 --> 00:22:24,140 It does this by checking to see the packet's destination port and seeing if it equals 502. 251 00:22:24,220 --> 00:22:32,620 If it does, then the next check is if the packet's destination address is the same IP as the IP provided by the second argument provided to the binary. 252 00:22:32,880 --> 00:22:39,240 If both those checks return true, then the sample considers this packet a Modbus packet and login code gets called. 253 00:22:41,300 --> 00:22:45,700 So the log file is stored in the location provided by the first argument. 254 00:22:46,400 --> 00:22:52,380 The log file will be named rep underscore percent U dot bin, where percent U is the time the log file was written. 255 00:22:53,560 --> 00:23:02,080 The only thing that gets logged for the Modbus portion is the source IP, source port, destination IP, and the destination port. 256 00:23:03,600 --> 00:23:08,440 So this is an example of what the log file might be named and what it might contain. 257 00:23:08,620 --> 00:23:17,580 So rep underscore and a time value dot bin would be the name of the file, and then what's highlighted in orange is what would actually be inside the file. 258 00:23:18,200 --> 00:23:26,360 So we have asterisk Modbus asterisk new line, source IP, colon source port, with a little arrow, to destination IP, destination port. 259 00:23:29,550 --> 00:23:34,410 So I wonder why a sample specifically designed for a SOA router is looking for Modbus . 260 00:23:34,410 --> 00:23:45,670 I don't know if this router will ever be in a position to look at ICS traffic or Modbus traffic, and additionally I wonder what value the Modbus log provides. 261 00:23:45,950 --> 00:23:49,610 The log is a source IP, source port, destination IP, and destination port. 262 00:23:49,850 --> 00:23:56,070 And the destination IP address and the destination port have to be provided to the binary. 263 00:23:56,070 --> 00:23:59,850 So the only thing you get really is the source IP address and the source port. 264 00:24:04,360 --> 00:24:14,000 So, as loop continues, if the loop determines that the packet is not Modbus, then it will start looking for HTTP authorization. 265 00:24:15,380 --> 00:24:25,060 So just a quick recap, in order for the HTTP checks to start, the packet needs to be TCP, IPv4, greater than 150 bytes, and not Modbus. 266 00:24:25,060 --> 00:24:27,260 Then the HTTP checks start. 267 00:24:28,880 --> 00:24:37,060 So, the HTTP checks consist of checking the destination IP address, source port, length of the data, and several strings checks. 268 00:24:38,020 --> 00:24:42,900 The destination IP must be the same as the IP address that was provided to the sample when the sample was initially started. 269 00:24:42,900 --> 00:24:44,800 So it's looking for a very specific IP address. 270 00:24:45,480 --> 00:24:51,960 The source port must be greater than 1024, but it can't be 8080 or 8088. 271 00:24:52,760 --> 00:24:57,960 The length of the data must also be greater than 20 bytes, and then we move on to the strings check. 272 00:24:59,020 --> 00:25:05,940 So, in order for the packet to be logged, the packet must not contain any of the strings in that code block. 273 00:25:10,690 --> 00:25:18,870 And additionally, the packet must contain the string authorization basic, or a username and password combination, but it can't contain both. 274 00:25:18,870 --> 00:25:23,530 If it contains both, the packet will be discarded, and the loop will restart with the next packet. 275 00:25:24,730 --> 00:25:34,830 So, in this code block on the left, I have user names, or user parameters, and on the right, password parameters, so you have to have one from each side in order for the packet to be logged. 276 00:25:37,310 --> 00:25:49,270 If the HTTP logging has been met, the entire packet is logged to rep underscore %u.bin, where %u is the time of logging. 277 00:25:50,030 --> 00:25:59,450 And the log will be stored in the location provided to the sample when you initially ran it. 278 00:26:01,130 --> 00:26:06,190 So, it looks like the HTTP checks are looking for credentials to a specific website. 279 00:26:06,250 --> 00:26:11,770 It's highly targeted, as the destination IP address is already known, and needed for the packet zipper sample. 280 00:26:11,870 --> 00:26:18,130 Additionally, the sample does not send logs off the remote server, but maybe another sample does this, I don't know. 281 00:26:20,690 --> 00:26:27,330 So, in conclusion, the sample is targeting, specifically, the R600 bpen router, which is a SOHO router. 282 00:26:27,490 --> 00:26:32,810 The sample is looking for a specific IP address, and is grabbing modbus.http information. 283 00:26:33,590 --> 00:26:42,630 The sample cannot modify traffic without a significant code rewrite, but we have, as Patrick said, we've observed other samples that are able to modify traffic. 284 00:26:44,110 --> 00:26:47,230 So, thanks for coming to talk, hope you guys enjoyed it. 285 00:26:54,040 --> 00:26:58,680 I just want to reinforce, it's very, very targeted. 286 00:26:58,820 --> 00:27:04,160 Just that model of device, you have to give it the destination IP address. 287 00:27:04,780 --> 00:27:10,640 It's logging just the source IP and source port of modbus traffic, nothing else. 288 00:27:10,660 --> 00:27:15,500 And it's got a bunch of filters in place to discard a lot of the HTTP auth stuff. 289 00:27:15,700 --> 00:27:24,760 And it's storing the whole packet, but the filters in place will ensure that only a few of the packets that contain HTTP authentication stuff actually get saved. 290 00:27:25,860 --> 00:27:31,000 So, the question is, in what environment are you going to find this router? 291 00:27:31,300 --> 00:27:38,160 And what ICS device would be on the target of this? 292 00:27:38,380 --> 00:27:52,660 Where somebody would be on one side of this router and there would be an ICS device on the other, and both modbus traffic and HTTP traffic are passing to the same device, because the IP address is given as an argument when the module is run. 293 00:27:53,120 --> 00:27:57,020 So, that is the question of the day. 294 00:27:58,280 --> 00:28:00,400 Where is this device being used? 295 00:28:00,720 --> 00:28:08,360 And what ICS device receives modbus traffic and gets authentication over HTTP? 296 00:28:09,360 --> 00:28:11,060 We'll take questions. 297 00:28:11,060 --> 00:28:17,160 I was wondering, is it common at all for ICS type environments to use SOHO routers? 298 00:28:17,160 --> 00:28:18,160 Has that been found? 299 00:28:18,160 --> 00:28:26,180 Is that possible that the attackers have a very specific configuration in mind that they're going for somewhere that uses that sort of setup? 300 00:28:26,180 --> 00:28:35,000 So, in this case, this is obviously intended to target either a specific individual or a specific group that does things a certain way. 301 00:28:35,940 --> 00:28:38,400 This specific module isn't going to work on any of the other. 302 00:28:38,400 --> 00:28:42,700 It won't work as a plug-in to stage two on a different device. 303 00:28:42,700 --> 00:28:50,660 It only works on the TP-Link R600 VPN, and you have to give it that destination IP before it will log anything. 304 00:28:50,800 --> 00:28:58,200 So, when the actor dropped this, it's obvious that they were looking for certain stuff and only certain stuff, because it filters out everything else. 305 00:28:58,200 --> 00:29:01,520 Even things that would be valuable, like other HTTP connections. 306 00:29:03,200 --> 00:29:06,420 I mean, it's hard to say, but they might have had something specific in mind. 307 00:29:06,420 --> 00:29:09,380 Yeah, and whether or not this device should be an ICS environment? 308 00:29:09,380 --> 00:29:11,140 No, but whether or not it is? 309 00:29:11,140 --> 00:29:12,020 Yeah. 310 00:29:12,760 --> 00:29:20,740 So, I think some figure, like oil companies and stuff, backhaul their ICS communication back to their condition. 311 00:29:22,200 --> 00:29:25,600 So, you can considerably see that suit on someone's desk. 312 00:29:27,720 --> 00:29:29,180 I don't have a question. 313 00:29:29,180 --> 00:29:29,810 What type of... 314 00:29:32,740 --> 00:29:46,040 I would like to, and this is for you guys, if you can think of any field devices that may be what the actor was looking to receive the information about, if you want to, let me know. 315 00:29:46,040 --> 00:29:46,340 Let me know. 316 00:29:46,480 --> 00:29:52,960 Otherwise... It's not like a module for another industrial hardware type device. 317 00:29:53,400 --> 00:29:54,160 What do you mean? 318 00:29:54,240 --> 00:29:58,820 Well, you know, like, would they use that same core for another industrial hardware device? 319 00:29:58,820 --> 00:29:59,780 For the TV link? 320 00:30:00,160 --> 00:30:01,420 Not to my knowledge. 321 00:30:01,420 --> 00:30:04,940 It's just that, yeah, as far as I know. 322 00:30:05,400 --> 00:30:08,380 And it's that weird, like Carlos said, it's that lecture architecture. 323 00:30:08,720 --> 00:30:17,480 So, as we were writing our own proof of concept code and executing it on the device, we were getting psych faults all day long. 324 00:30:17,680 --> 00:30:21,740 And it turns out we needed a custom tool chain to compile code for this device. 325 00:30:22,000 --> 00:30:27,480 So it's not like it's, you know, the code may be portable, but it's still got to be compiled specifically for this. 326 00:30:27,640 --> 00:30:28,640 I don't know of anything. 327 00:30:28,640 --> 00:30:32,440 And there's strings in the binary that say R600 VPN. 328 00:30:32,700 --> 00:30:37,240 You know, so even if there was something else that , you know... Using that more... Right. 329 00:30:37,400 --> 00:30:38,400 Incorporated with it. 330 00:30:38,400 --> 00:30:38,820 Yeah. 331 00:30:40,420 --> 00:30:43,400 So just to be clear, is the package going through it? 332 00:30:43,680 --> 00:30:51,720 It looks at every packet that travels through it, and then it goes through the checks that Carlos explained to filter out the stuff that it doesn't want. 333 00:30:52,100 --> 00:30:57,040 And if it meets all the checks for Modbus, it just logs stuff that it already knew. 334 00:30:57,040 --> 00:31:03,480 Like it knows the destination IP because it's an argument that was passed to it when the module was executed. 335 00:31:03,660 --> 00:31:06,000 It doesn't log any of the Modbus data. 336 00:31:06,080 --> 00:31:14,900 It just... The IP address that the traffic came from and the port that it came from, and the IP address that it was going to, which we know, and port 502, which we know. 337 00:31:14,900 --> 00:31:19,080 So the only thing the actor learns that's new is source port and source IP. 338 00:31:19,580 --> 00:31:29,420 And then any HTTP traffic that meets all those filters going to the same IP address as the Modbus is going to, it'll log that entire packet. 339 00:31:30,820 --> 00:31:31,700 Yes? 340 00:31:43,840 --> 00:31:55,600 So in this instance, I would imagine they either did it manually, especially since it's so targeted, or there may have been capability at the C2 node that would connect and pull, right? 341 00:31:57,080 --> 00:31:58,280 No. 342 00:31:59,580 --> 00:32:03,340 Stage 2 had the ability to execute shell commands. 343 00:32:03,340 --> 00:32:07,160 So it'd be just like you're logged in to the terminal, you know, as splitting through. 344 00:32:07,660 --> 00:32:15,660 Were you able to do any analysis just where, you know, say there's 5,000 routers, you know, was there any, hey, that's a lot. 345 00:32:16,180 --> 00:32:21,820 Were there any kind of geographic trends you could see in certain countries or in certain areas? 346 00:32:23,020 --> 00:32:26,200 Nothing that stood out at the time, but we have the map and slides. 347 00:32:26,200 --> 00:32:28,740 We can put it up on the, and if you can zoom into it. 348 00:32:29,040 --> 00:32:29,500 Yeah. 349 00:32:30,780 --> 00:32:38,800 Most of the U.S., so almost 900 in the U.S., 600 in Russia, Brazil, Portland, Uruguay. 350 00:32:38,800 --> 00:32:44,740 And this is just specifically the TP-Link R600 VPN with remote management enabled. 351 00:32:46,300 --> 00:32:51,640 My first thought was it was oil and gas. 352 00:32:51,780 --> 00:32:53,400 Oil and gas. 353 00:32:55,640 --> 00:32:57,740 Not a lot of evidence. 354 00:32:57,740 --> 00:32:58,480 Right. 355 00:32:59,920 --> 00:33:00,500 Yes, sir. 356 00:33:00,500 --> 00:33:01,980 Piece into the breadcrumbs together. 357 00:33:02,920 --> 00:33:05,100 Following the breadcrumbs, you all piece into the breadcrumbs. 358 00:33:06,660 --> 00:33:07,660 Yes, sir. 359 00:33:07,760 --> 00:33:10,160 Yeah, the first stage, the raw socket. 360 00:33:13,740 --> 00:33:16,220 Easy way to take over the whole box. 361 00:33:16,220 --> 00:33:24,920 Yeah, so anybody that knows what that SIM packet is can own any device that is in that passive raw socket mode. 362 00:33:25,240 --> 00:33:35,040 So you just have to send a SIM that has the right magic bytes, and then it's going to pull out an IP address, and it's going to reach out, and you're going to have to deliver stage two to it. 363 00:33:35,120 --> 00:33:37,580 But I mean, if you know, so yeah, you could do it. 364 00:33:46,150 --> 00:33:58,450 For this module, because it's set up to just log the data about what goes through, it would be, it would need to be seriously modified to intercept. 365 00:33:59,290 --> 00:34:05,270 So instead of just looking at the packet and allowing it to go through, it's going to have to stop it, change it, pass it through. 366 00:34:05,270 --> 00:34:09,370 This module doesn't have any capability to do that, but that other module does. 367 00:34:09,370 --> 00:34:12,450 So they definitely have the ability to modify traffic. 368 00:34:12,450 --> 00:34:15,730 This module does not, but it's still possible. 369 00:34:18,750 --> 00:34:20,970 How alarming is this behavior? 370 00:34:20,970 --> 00:34:26,570 Has there been any sort of effort to go out and be like, have you seen this router to like potential industrial use cases or anything? 371 00:34:26,570 --> 00:34:28,850 Or is it kind of still pretty passive collection? 372 00:34:28,850 --> 00:34:30,990 Like, maybe... 373 00:34:30,990 --> 00:34:32,810 I'm here asking you guys. 374 00:34:35,350 --> 00:34:51,670 It's intriguing because it's so targeted, but because of the wide range of vendors and devices that were also known to be used, this type of activity could be used on any of those other devices. 375 00:34:51,670 --> 00:34:53,870 They just had to pile for the device and push it out. 376 00:35:03,370 --> 00:35:11,070 So it depends on which stage it's in and what device it is, and there's a whole bunch of weird ways to figure it out. 377 00:35:11,070 --> 00:35:16,850 If it's in that raw socket mode, you can detect it. 378 00:35:17,750 --> 00:35:19,510 CyberX put out a script a few weeks ago. 379 00:35:19,510 --> 00:35:26,950 It's up on GitHub, where it'll send the SYN packet and it'll reach out to an IP that the script gives. 380 00:35:27,670 --> 00:35:38,650 Also, I think on Sys or Mac, if someone corrects me if I'm wrong, Symantec had a tool that would let you know if... I 381 00:35:41,840 --> 00:35:55,960 think it was just a module. 382 00:35:57,520 --> 00:36:04,260 I did my damnedest to get live devices... 383 00:36:04,260 --> 00:36:11,320 If they had live devices, established connection and control, they just never had that module pushed out. 384 00:36:11,320 --> 00:36:17,260 So one of the interesting things about the Stage 3 modules, the device has to be tasked to pull them down. 385 00:36:17,260 --> 00:36:21,780 There's no list of modules in Stage 2 that it knows. 386 00:36:21,780 --> 00:36:23,500 You have to know the name of the module. 387 00:36:23,500 --> 00:36:31,720 The device has to be told, reach out and get this module, and then it will reach out to Command and Control, request the module, retrieve it, and execute it. 388 00:36:31,940 --> 00:36:38,000 So yeah, I'd like to be able to say, like, I just requested all the modules from Command and Control. 389 00:36:38,000 --> 00:36:43,520 I don't know, but without knowing the names of them, they could have had it and just... we never saw it. 390 00:36:44,100 --> 00:36:46,880 They were selective about what they deployed and where they deployed it. 391 00:36:48,120 --> 00:36:49,200 I saw another hand. 392 00:36:49,200 --> 00:36:54,200 So, you said that you got a virus code on 2016? 393 00:36:55,040 --> 00:36:56,740 This module did, yes. 394 00:36:56,980 --> 00:36:59,380 And what was that? 395 00:36:59,380 --> 00:37:01,680 Was that somebody uploading firmware? 396 00:37:03,100 --> 00:37:04,980 I'm wondering what was the circuit? 397 00:37:04,980 --> 00:37:13,600 So this specific binary is ELF executable, so Linux executable, and they uploaded that executable. 398 00:37:13,600 --> 00:37:14,940 I'm wondering how they got it. 399 00:37:14,940 --> 00:37:17,340 Did you ask Iris to upload it? 400 00:37:18,780 --> 00:37:21,320 I mean, should you? 401 00:37:21,620 --> 00:37:22,480 Right. 402 00:37:24,620 --> 00:37:27,140 I'm just wondering how they would have gotten it. 403 00:37:27,140 --> 00:37:28,840 I would love to know. 404 00:37:28,840 --> 00:37:30,560 I would love to know who uploaded it. 405 00:37:30,560 --> 00:37:37,100 So, in order to get it off of the device, you've got to own the device. 406 00:37:37,100 --> 00:37:49,280 Some of the older TP-Link R600s had a backdoor web shell that was known, so somebody could have used that and saw that they were in fact pulled it off and uploaded it. 407 00:37:49,280 --> 00:37:51,040 The actor may have uploaded it. 408 00:37:51,680 --> 00:37:53,920 Some people will trade graphics a little. 409 00:37:54,220 --> 00:37:56,000 Everybody's been known to make mistakes. 410 00:37:56,280 --> 00:37:57,300 So maybe they... 411 00:37:57,300 --> 00:38:04,800 Other than that, it would have either been pulled out of network traffic and uploaded, pulled off the device and uploaded, or uploaded by the actor. 412 00:38:07,180 --> 00:38:09,100 Well, all that seems very unlikely. 413 00:38:11,440 --> 00:38:12,160 I mean... 414 00:38:13,560 --> 00:38:18,280 No, I would love to hear ideas and scenarios for... 415 00:38:18,280 --> 00:38:21,920 And this is just one of countless modules. 416 00:38:22,300 --> 00:38:28,680 So, we know how many we've seen, but theoretically, it's up to the actor. 417 00:38:28,680 --> 00:38:30,540 They can just write it in the file and push it out. 418 00:38:30,840 --> 00:38:32,500 Those are their plugins. 419 00:38:32,920 --> 00:38:36,020 You mentioned there's a possibility this is a control, right? 420 00:38:36,300 --> 00:38:37,340 So that's one thing. 421 00:38:37,340 --> 00:38:45,520 I don't know if you mentioned it or not, but it's in the realm possible that the actor put that in there to distract you. 422 00:38:45,520 --> 00:38:47,460 Like, oh shit, they're looking for Modbus. 423 00:38:47,920 --> 00:38:48,500 You know? 424 00:38:48,920 --> 00:38:49,720 Yeah, exactly. 425 00:38:51,040 --> 00:38:51,760 Right. 426 00:38:53,640 --> 00:38:54,940 Were they really looking at Modbus? 427 00:38:54,940 --> 00:38:56,840 Or did they want us to think they were looking at Modbus? 428 00:38:58,980 --> 00:39:00,180 If you guys know. 429 00:39:00,800 --> 00:39:01,680 I'll buy you a beer. 430 00:39:04,440 --> 00:39:05,200 A sample? 431 00:39:06,100 --> 00:39:06,580 So... 432 00:39:07,200 --> 00:39:07,920 No. 433 00:39:09,800 --> 00:39:14,800 Well, I mean, if you have a paid account with Wirestotal, you have access to all that stuff. 434 00:39:14,800 --> 00:39:17,660 So, anybody in this room could search. 435 00:39:21,850 --> 00:39:29,450 So, Talos is working with several partners, external to Talos, and that's one of those things that I'm not going to get into. 436 00:39:29,790 --> 00:39:36,910 But the blog post that initially disclosed this will tell you as much as we're comfortable releasing. 437 00:39:36,910 --> 00:39:38,950 But we work with people outside of Talos. 438 00:39:47,430 --> 00:39:53,730 I don't remember, do you remember the VPN function in that? 439 00:39:53,730 --> 00:39:54,290 I don't remember. 440 00:39:54,290 --> 00:39:56,130 I'm pretty sure it was just using OpenVPN. 441 00:39:56,130 --> 00:39:59,490 It was BusyBox and OpenSSL and OpenVPN. 442 00:39:59,490 --> 00:40:01,310 We're pretty sure. 443 00:40:01,310 --> 00:40:02,550 I can double check. 444 00:40:03,930 --> 00:40:10,610 But if anybody has any other questions or follow-ups, you can just hit me or Carlos up here or afterwards. 445 00:40:36,510 --> 00:40:46,350 So, if you specify any IP address, it's the destination IP address, and then as the traffic passes through, it'll log the actual credentials going to that IP. 446 00:40:47,590 --> 00:40:49,230 Is that what you're saying you found? 447 00:40:54,730 --> 00:40:57,210 We think there's a couple, yeah. 448 00:40:57,370 --> 00:41:04,350 So, it can take three parameters or arguments, but it only takes two. 449 00:41:04,350 --> 00:41:05,630 So, what's the third? 450 00:41:05,630 --> 00:41:08,950 What was the other? 451 00:41:08,950 --> 00:41:16,750 So, it'll accept, it'll log the traffic, if it has HTTP basic authorization or a username and password combination. 452 00:41:16,750 --> 00:41:20,050 But if both are present, it ignores it. 453 00:41:20,570 --> 00:41:22,090 So, I mean, there were a few things where... 454 00:41:23,350 --> 00:41:33,730 My theory was that they were eliminating as much noise as possible, because if you start logging everything that matches HTTP basic auth and everything that matches Modbus, the device is going to fill up and you're going to have a break. 455 00:41:33,730 --> 00:41:38,730 So, they wanted to filter out everything except what they were specifically looking for. 456 00:41:38,730 --> 00:41:40,650 That's just my theory. 457 00:41:40,870 --> 00:41:43,650 And, yeah, I think there's a couple coding mistakes too. 458 00:41:46,070 --> 00:41:47,410 All right, thank you. 459 00:41:47,410 --> 00:41:48,270 Appreciate it.