[00:00.000 --> 00:06.220] This talk is about VPN filter. The malware campaign. And because [00:06.220 --> 00:08.960] this is the ICS village, we're going to focus about half the [00:08.960 --> 00:13.160] talk on ICS specific component of this, which had some Modbus [00:13.160 --> 00:16.720] capability and try and give everybody a better understanding [00:16.720 --> 00:21.920] of exactly what that was. So this is I'm Patrick DeSantis. [00:22.060 --> 00:26.140] This is Carlos Pacho. We are two of many researchers at Cisco [00:26.140 --> 00:30.740] Telus that spent a long time working on this project. Many [00:30.740 --> 00:34.620] months, many hours, lots of really smart people doing really [00:34.620 --> 00:38.820] cool stuff with this. We're two small pieces of a much larger [00:38.820 --> 00:43.580] group that probably did a lot cooler stuff than we did, but [00:43.580 --> 00:50.380] you get to talk to us instead. So some boundaries I'm going to [00:50.380 --> 00:54.700] set for the talk. I will talk about VPN filter and its [00:54.700 --> 00:58.040] technical capabilities. We'll talk about the targets. And [00:58.040 --> 01:00.280] specifically, we'll spend a lot of time talking about the Modbus [01:00.280 --> 01:03.980] module. I will not talk about attribution. The US government [01:03.980 --> 01:06.460] took care of that. I will not talk about any of our partners [01:06.980 --> 01:15.240] or victims associated with this campaign. So no. So VPN filter [01:15.240 --> 01:20.920] is a multi-year state sponsored, very sophisticated malware [01:20.920 --> 01:25.500] campaign targeting primarily edge devices in the small [01:25.500 --> 01:30.420] office, home office realm. It's been going on since at least [01:30.420 --> 01:35.800] 2016. 2016 was the oldest sample that we are aware of. So it's [01:35.800 --> 01:39.000] been going since before that. And at the time we went public [01:39.560 --> 01:42.340] in May, we estimated there were about half a million infected [01:42.340 --> 01:46.000] devices globally. You know, that number can go up and down [01:46.000 --> 01:49.020] depending on how active the actor is. So this is a nice [01:49.020 --> 01:52.000] conservative estimate, at least half a million, which is still a [01:52.000 --> 01:55.040] significant amount. And it's interesting because it's [01:55.040 --> 01:59.100] cross-platform. This is malware that runs on multiple operating [01:59.100 --> 02:02.940] systems, and even multiple architectures. So we've got, you [02:02.940 --> 02:07.080] know, samples that run on MIPS, variant of MIPS, MIPS Electra, [02:07.080 --> 02:12.460] x86, tile, more. And then within the specific architectures that [02:12.460 --> 02:16.100] are targeted, the binaries that were compiled were specific for [02:16.100 --> 02:18.080] the devices that we're going to run on. And there were a lot of [02:18.080 --> 02:24.500] devices. So we're aware of over 75 distinct device models from [02:24.500 --> 02:27.620] several vendors that have capabilities compiled [02:27.620 --> 02:32.000] specifically for those devices, which is some pretty serious [02:32.000 --> 02:34.960] effort on the part of the actor to go through and put that much [02:34.960 --> 02:38.600] work into it. Especially when a lot of these are, you know, sub [02:38.600 --> 02:44.420] $50 Soho devices. Other ones are like the MicroTik or Macrotic, [02:44.420 --> 02:47.820] I'm not sure how the correct pronunciation is. Those are [02:47.820 --> 02:51.060] rackmount, like enterprise grade network appliances. Most of the [02:51.060 --> 02:54.900] rest are Soho devices. Some are basic like home wireless [02:54.900 --> 03:00.660] routers. And then QNAP stuff that we saw was mostly pretty [03:00.660 --> 03:05.000] sure was just network attached storage devices. So during the [03:05.000 --> 03:07.580] time that we were working on this, a vast majority of the [03:07.580 --> 03:12.180] activity was targeting MicroTik and QNAP devices. But that was [03:12.180 --> 03:14.340] just during the time we were looking at it. If we had looked [03:14.340 --> 03:17.860] six months before, there may have been more or less activity. [03:18.540 --> 03:20.620] And you know, if we're looking six months from now, it may vary [03:20.620 --> 03:24.660] also. So but at the time, we looked mostly MicroTik, mostly [03:24.660 --> 03:29.420] QNAP, and lots of devices. So we needed to get into a position [03:29.420 --> 03:36.920] where we could bait the actor into delivering some of their, [03:37.440 --> 03:41.540] you know, some of those custom payloads for those other devices [03:41.540 --> 03:44.380] to us without tipping off our hand that we were actually [03:45.080 --> 03:49.920] working on, learning more about it. And so we were kind of stuck [03:49.920 --> 03:53.120] in a position where we wanted to set up like a honeypot [03:53.120 --> 03:54.940] infrastructure, leverage honeypots, but your traditional [03:54.940 --> 04:00.280] honeypots are often limited in their capabilities. We couldn't [04:00.880 --> 04:04.020] give any indication that we were in a, you know, in a honeypot. [04:04.020 --> 04:07.680] So virtualized or emulated environment was a no go. So [04:07.680 --> 04:11.240] often your honeypot configurations don't capture [04:11.240 --> 04:14.500] full network traffic, we needed full PCAN. We couldn't deal or [04:14.500 --> 04:18.280] we couldn't handle just metadata about the traffic. We needed to [04:18.280 --> 04:21.580] be able to look at everything that the device has received and [04:21.580 --> 04:24.660] pull files out of them. Because if the actor brick the device, [04:24.660 --> 04:27.340] we lose all forensic artifacts. So we needed all network [04:27.340 --> 04:32.980] traffic. So we had to set up our own, our own honeypot [04:32.980 --> 04:35.740] infrastructure. And we did that using real devices. So there's [04:35.740 --> 04:40.060] full interaction, honeypots, real devices, we bought about [04:40.060 --> 04:46.560] 40 of them. So in the diagram, we've got, you know, you get [04:46.560 --> 04:50.660] your internet. And then in this area here is where we break off [04:51.340 --> 04:55.040] onto our attack, or our target network. This is the target [04:55.040 --> 04:58.640] zone. So these are real devices. And they're on the internet [04:58.640 --> 05:03.620] using commercial or residential IP space instead of, you know, [05:03.620 --> 05:07.460] Cisco IP, because that would kind of be a dead giveaway. Or [05:07.460 --> 05:13.840] you know, like a virtual machine on AWS. So we had real devices [05:13.840 --> 05:18.700] and they had to be not obvious that it was Cisco. And the [05:18.700 --> 05:21.800] switch here, these devices can talk out and everything can talk [05:21.800 --> 05:24.460] in. So it's like they're on the internet directly. But they can't [05:24.460 --> 05:27.760] talk to each other, unless it goes out and comes back in. So [05:27.760 --> 05:30.720] they don't see each other. And the switch has a mirror port, [05:30.720 --> 05:33.840] spam port, that goes to a network tap, one way network [05:33.840 --> 05:37.320] tap, which goes to our analysis workstation, which was very [05:37.320 --> 05:41.920] locked down, and is set up to not allow any traffic out. So [05:41.920 --> 05:47.240] we've got three places to block any outbound traffic from our [05:47.240 --> 05:51.840] analysis zone here. It would not be a good thing if the actor [05:51.840 --> 05:55.940] associated with this campaign were able to go from here to our [05:55.940 --> 06:00.440] internal corporate network. I wouldn't be here talking about [06:00.440 --> 06:04.380] it today if we did. I may be out there with you handing out my [06:04.380 --> 06:08.220] resume. So we spent a lot of time and effort on this [06:08.800 --> 06:12.260] component. Right here we had full network traffic. So [06:12.260 --> 06:15.920] gigabytes of traffic a day associated with activity on [06:15.920 --> 06:18.260] these devices was living here. And that's where we did our [06:18.260 --> 06:24.060] analysis. So standing up this full interaction honeypot [06:24.060 --> 06:27.320] environment has some issues, some challenges. There's a [06:27.320 --> 06:30.280] reason why people use the limited interaction honeypots [06:30.280 --> 06:32.840] and it offers a lot more convenience, especially when [06:32.840 --> 06:36.400] you're spinning up VMs, you can just replicate them. You don't [06:36.400 --> 06:39.360] have to actually manage the physical devices. We had 40 [06:39.360 --> 06:43.460] devices, 40-ish. Some of them we bought used, so you can't trust [06:43.460 --> 06:46.180] them. So we had to go through each device, validate that it [06:46.180 --> 06:49.740] wasn't already owned, set it up in an intentionally vulnerable [06:49.740 --> 06:53.000] configuration, because we wanted them to get owned. So we had to [06:55.400 --> 06:58.280] put firmware on there with known vulnerabilities and publicly [06:58.280 --> 07:04.120] available exploits. We set them up for configurations. There was [07:04.360 --> 07:06.980] a large volume of traffic and none of it was legitimate [07:06.980 --> 07:13.500] because these devices weren't doing anything, but... Oh, that [07:13.500 --> 07:16.020] didn't show up on your screen. Flamingo wants you to join their [07:16.020 --> 07:21.200] Wi-Fi Larry. So all traffic going to these devices was [07:21.900 --> 07:25.120] malicious, or even if it was benign, it was not legitimate. [07:25.260 --> 07:27.840] So there's an old phrase looking for a needle in a stack of [07:27.840 --> 07:31.460] needles. It applies very, you know, it's very applicable to [07:31.460 --> 07:35.680] this because every bit of traffic was not legitimate. And [07:35.680 --> 07:37.760] we don't really know what we're looking for. So we have to find [07:37.760 --> 07:43.080] something bad in gigabytes and gigabytes of bad stuff. And then [07:43.080 --> 07:45.300] there's the security versus usability. And I think Carlos [07:45.300 --> 07:48.500] and I, well, we probably had each other in a headlock a few [07:48.500 --> 07:52.440] times. As I'm advocating for security, as I said, if the [07:52.440 --> 07:57.020] actor made their way into our network, bad stuff. But every [07:57.020 --> 07:59.960] time I lock something down or like advocate for something to [07:59.960 --> 08:03.300] be locked down more, it's, it's inconvenience and annoyance for [08:03.300 --> 08:05.800] the researchers that need to be able to interact with the [08:05.800 --> 08:09.400] devices and do analysis on the traffic. But because of the [08:09.400 --> 08:11.740] sophistication of the actor, we had to err on the side of [08:11.740 --> 08:18.880] security, much to my team and other people's, well, I owe them [08:18.880 --> 08:22.680] some beer, I guess. And the device limitations. So you see [08:22.680 --> 08:25.200] this is just like in control systems. These are often [08:25.200 --> 08:28.640] embedded systems. The legitimate management [08:28.640 --> 08:31.920] interfaces don't provide a lot of functionality for legitimate [08:31.920 --> 08:35.240] users. So you can't just drop down in the shell and log in as [08:35.240 --> 08:38.940] root and do whatever you want in Linux. You know, you might be in [08:39.080 --> 08:43.060] a limited environment, or maybe the only administrative control [08:43.060 --> 08:46.820] you have is through a web interface. So just like an ICS, [08:46.820 --> 08:50.520] an attacker who owns the device has more control over it than [08:50.520 --> 08:53.180] the legitimate user. So we found ourself in a position of [08:53.180 --> 08:57.180] actually exploiting and owning our own devices just to find out [08:57.180 --> 08:59.660] if they had been owned by somebody else, which is [08:59.660 --> 09:05.640] interesting. So that was kind of how we dealt with the risk [09:05.640 --> 09:09.580] associated with interacting with and having live targets [09:09.580 --> 09:13.440] intentionally infected by a state actor. Now the mailer [09:13.440 --> 09:17.920] itself that we're going to get with, there were several groups [09:17.920 --> 09:23.980] that did reversing and analysis of the actual mailer. But I do [09:23.980 --> 09:26.400] have to clarify one thing before we go into that. And there's [09:26.400 --> 09:30.140] since we went public in May, there's kind of been, I don't [09:30.140 --> 09:33.000] know how it started, but there was an initial misconception [09:34.100 --> 09:37.560] about the relationship between VPN filter and black energy [09:37.560 --> 09:44.740] malware. So black energy has a flaw in the implementation of [09:44.740 --> 09:48.060] the RC4 encryption algorithm, where it fails to properly [09:48.060 --> 09:52.980] initialize the S-boxes during the permutation stage. So it's a [09:52.980 --> 09:55.900] very, very, very specific flaw. It's not just like, whoops, we [09:55.900 --> 10:00.420] used the wrong library. The VPN filter has the exact same flaw [10:00.420 --> 10:04.340] and the exact same part of the implementation of the S-boxes [10:04.340 --> 10:07.580] in the permutation stage of the RC4 encryption algorithm. So [10:07.580 --> 10:11.180] there's overlap there. And it's a very specific overlap. VPN [10:11.180 --> 10:15.100] filter does not contain a full copy of black energy. So it's [10:15.100 --> 10:20.020] just the overlap that was the only connection that Talos [10:20.020 --> 10:23.060] identified and reported. So if you see anything else out there, [10:23.800 --> 10:32.200] it's just this, just RC4. It's a multistage malware, very [10:32.200 --> 10:35.060] sophisticated. I'm going to probably say that 20 times, but [10:35.060 --> 10:37.260] you start with initial exploitation and the malware [10:37.260 --> 10:41.000] drops a persistent loader that's specific for the target device [10:41.000 --> 10:45.100] that it drops on. The loader in stage one is the only part of [10:45.100 --> 10:48.660] the malware that has persistence that can survive a reboot. And [10:48.660 --> 10:51.980] that depends on the device. Aside from being persistent, [10:52.500 --> 10:56.700] stage one's only job is to find the stage two server, retrieve [10:56.700 --> 11:00.720] and install stage two. It has some really interesting ways of [11:00.720 --> 11:04.160] finding the stage two server. First is it'll look out and [11:04.160 --> 11:07.900] grab some images off photo bucket within the exit data and [11:07.900 --> 11:12.840] the images specifically in the latitude and longitude. You run [11:12.840 --> 11:16.020] it through a decoding routine, which we, one of our guys [11:16.020 --> 11:19.040] reversed, and you can pull out IP addresses out of the latitude [11:19.040 --> 11:23.400] and longitude. It'll then reach out to the IP address and try to [11:23.400 --> 11:26.160] get stage two. If it doesn't work, it tries a couple more [11:26.160 --> 11:28.660] images. If it doesn't work, it eventually goes to a hard coded [11:28.660 --> 11:33.220] domain. If that doesn't work, it does what I think is probably [11:33.220 --> 11:38.200] the most interesting part of this stage. It opens up a raw [11:38.200 --> 11:43.800] socket and listens for all traffic on all ports. And if it [11:43.800 --> 11:48.100] receives a TCP SIN with a very, you know, with specific bytes at [11:48.200 --> 11:51.680] a specific value, it'll grab another set of bytes and that's [11:51.680 --> 11:55.960] the IP address for the stage two server. So it's basically, it [11:55.960 --> 11:59.120] looks out, tries to get stage two, can't get it, it looks out [11:59.120 --> 12:01.720] another way, can't get it, falls back into this passive [12:01.720 --> 12:05.720] listening mode where the actor can intentionally task it with [12:05.720 --> 12:09.600] this, but just by using one TCP SIN to give it the IP address of [12:09.600 --> 12:13.460] the current stage two server. When it gets stage two, stage [12:13.460 --> 12:19.580] two is your framework, it's the workhorse, closest equivalent I [12:19.580 --> 12:22.080] can give you is like it's the meterpreter component and that [12:22.080 --> 12:24.900] it has some baked in functionality and it also has [12:24.900 --> 12:27.480] extensible and you can add other modules. So you can execute shell [12:27.480 --> 12:29.720] commands, it's got some collection capability, it's got [12:29.720 --> 12:33.440] some exfil capability. Some of the older stage twos we looked [12:33.440 --> 12:36.180] at had a built in kill capability where it would [12:36.180 --> 12:40.760] actually brick the devices. Talk about that in a second too. And [12:40.760 --> 12:44.080] then it's extendable through these stage three modules and [12:44.080 --> 12:49.440] plugins, which because it's extensible through modules, the [12:49.440 --> 12:52.960] functionality is essentially unlimited. It's only limited by [12:53.560 --> 12:59.900] what the actor actually develops for it. So Carlos is going to [12:59.900 --> 13:04.160] talk about one of those stage three modules. This is a [13:04.160 --> 13:06.620] diagram of what I described, the process of going from [13:06.620 --> 13:10.660] exploitation to stage one, to stage two, to stage three. I can [13:10.660 --> 13:14.800] spend an hour up here talking just about this slide. I can't [13:14.800 --> 13:18.840] do that. I'm not going to do that. I don't want to do that. [13:19.700 --> 13:21.320] But everybody that worked on this with me, we sat through [13:21.320 --> 13:23.360] several hours trying to understand this from many [13:23.360 --> 13:28.500] angles. This image is on the Telos blog, the initial blog [13:28.500 --> 13:32.660] post that described when we went public with VPN filter. It's [13:32.660 --> 13:36.460] very interesting, obviously very sophisticated. When the [13:36.460 --> 13:43.420] takedown happened, there was essentially a photo bucket or [13:43.420 --> 13:50.320] two in the wall angle had been taken down. The only thing left [13:50.320 --> 13:54.600] was the raw socket. So the person that had the device was [13:54.600 --> 13:56.820] infected. If you rebooted it, it would try to go to photo [13:56.820 --> 13:59.120] bucket. This stuff wasn't there anymore. It would try to go to [13:59.120 --> 14:02.120] wall, to no wall. It couldn't. So it would sit with the raw [14:02.120 --> 14:05.600] socket. So it was still vulnerable, but the actor is [14:05.600 --> 14:08.480] going to have to reach out and touch it manually at that point. [14:11.060 --> 14:14.520] So some of the stage three plugins that we've seen. These [14:14.520 --> 14:16.480] are the modules that come after stage two. These are the [14:16.480 --> 14:19.580] extensions. There's a packet sniffer. This is the one that [14:19.580 --> 14:23.020] Carlos is going to talk about. There's one that we refer to as [14:23.020 --> 14:27.460] Esler, which is interesting because this module allows for [14:27.460 --> 14:30.820] modification of traffic as it passes through the compromised [14:30.820 --> 14:34.120] device. So you've got your perimeter device, your edge [14:34.120 --> 14:38.800] router, all traffic on port 80 or going to port 80 is getting [14:38.800 --> 14:43.920] man in the middle. And JavaScript can be injected into [14:43.920 --> 14:46.280] the traffic that returns to the devices on the inside of the [14:46.280 --> 14:49.560] network. So this module allows the actor to compromise devices [14:49.560 --> 14:52.220] on the inside of the security perimeter without actively [14:52.220 --> 14:57.700] scanning and exploiting them. It happens invisibly at the [14:57.700 --> 15:01.440] router. There's a Tor module, which gives stage two the [15:01.440 --> 15:04.080] ability to communicate with command and control over Tor. [15:04.160 --> 15:09.600] And then the kill brick component that I mentioned was [15:09.600 --> 15:13.960] in stage two. It meant the older stage twos we found had [15:13.960 --> 15:19.440] baked in kill. The newer ones, it was missing and we had a [15:19.440 --> 15:22.160] suspicion that okay, there's probably a stage three that does [15:22.160 --> 15:27.020] that and later on we confirmed. So this this destroy will go [15:27.020 --> 15:31.980] through and clear artifacts like indicators of compromise to try [15:31.980 --> 15:35.420] and erase any tracks of its presence. And then it will brick [15:35.420 --> 15:41.060] the device. Usually the brick is by overriding the first I think [15:41.060 --> 15:45.300] 5000 was the most when we saw 5000 bytes of flash. So it's [15:45.300 --> 15:48.920] essentially wiping out the boot loader and the device is done [15:48.920 --> 15:52.120] unless you can reprogram that flash memory, which you're not [15:52.120 --> 15:55.560] doing on any of these devices. And 99.9% of the population [15:55.560 --> 15:59.260] couldn't even do it if the capability was there. So brick [15:59.260 --> 16:06.400] device bad. I said very specific or very sophisticated. So why [16:06.400 --> 16:07.820] would somebody go through the trouble of actually building [16:07.820 --> 16:10.860] something like this, spending several years doing it, [16:10.860 --> 16:14.500] deploying it globally, obviously it probably costs millions of [16:14.500 --> 16:17.940] dollars over time. This is a global intelligence [16:17.940 --> 16:21.860] infrastructure. What we used to refer to as computer network [16:21.860 --> 16:25.020] operations are now referred to as cyber operations. This gives [16:25.920 --> 16:28.880] a massive distributed global network to conduct those cyber [16:28.880 --> 16:32.460] operations from and mask attribution. So the any attacks [16:32.460 --> 16:34.660] or traffic that comes through this network is going to look [16:34.660 --> 16:39.420] like it comes from a SOHO device, you know, somewhere in [16:39.420 --> 16:41.780] wherever they choose to make it look like it comes from. It [16:41.780 --> 16:45.000] makes it difficult to track people or track the attribute [16:45.000 --> 16:50.420] attacks. It's also a data collection platform, passively. [16:51.280 --> 16:53.180] What Carlos is going to talk about is going to mention some [16:53.180 --> 16:56.280] passive collection and active. These devices have been used to [16:56.280 --> 16:59.800] scan for other things, and then sometimes scan for other [16:59.800 --> 17:02.340] vulnerable things and then exploit them and add them to the [17:02.340 --> 17:05.800] VPN filter network. The destructive attack is the thing [17:05.800 --> 17:08.240] that we were the most worried about when we had to decide [17:08.240 --> 17:10.900] whether or not we were going to go public, or when we would [17:10.900 --> 17:14.800] eventually go public, but this kind of drove us to go public [17:14.800 --> 17:19.840] when we did. The actor had the ability to effectively knock [17:20.320 --> 17:24.580] about half a million networks off the internet all at once. So [17:24.580 --> 17:27.140] not half a million devices by knocking these routers off, [17:27.140 --> 17:29.000] you're knocking everything behind the routers off the [17:29.000 --> 17:32.500] internet too. So take a half a million networks off the [17:32.500 --> 17:34.860] internet all at once. It's pretty serious stuff. And we [17:34.860 --> 17:37.920] were pretty worried about that. Thankfully, it never happened. [17:38.520 --> 17:43.380] Also, you've got the ability to exploit inside the network. If [17:43.380 --> 17:46.460] the actor was on the internal network, and had been kicked [17:46.460 --> 17:50.240] out, so they have a point of presence on the edge router. And [17:50.240 --> 17:52.180] unless the incident response team actually went and validated [17:52.180 --> 17:54.320] that they were booted off those edge routers, they can come [17:54.320 --> 17:56.840] right back in. And then everything that the botnet can [17:56.840 --> 18:03.260] do, this can do too. So it has a lot of value. So that's kind of [18:03.260 --> 18:07.740] the big picture overview. The four hour discussion about what [18:08.340 --> 18:12.800] VPN filter is distilled down into 15 minutes. This is the ICS [18:12.800 --> 18:15.100] village, we want to talk about stuff that ICS people care [18:15.100 --> 18:19.440] about. Carlos is going to talk about the technical aspects of [18:19.440 --> 18:23.400] the VPN filter, Modbus module. Carlos. [18:23.400 --> 18:29.520] Thanks, Patrick. Alright, so I'm going to talk about the VPN [18:29.520 --> 18:34.640] filter packets and for module. The packets for module was [18:34.640 --> 18:37.160] responsible for inspecting packets and logging certain [18:37.160 --> 18:40.620] connections. Specifically, the packets for module would log [18:40.620 --> 18:43.160] connection information about HTTP and certain Modbus [18:43.160 --> 18:46.960] connections. The packets for module was targeting the R 600 [18:46.960 --> 18:51.260] VPN router, which is a five port SOHO router. When we did a quick [18:51.260 --> 18:53.500] search on showdown, we found around 5000 of these devices [18:53.500 --> 18:56.520] online. But I think it's safe to assume that there's a lot more [18:56.520 --> 18:59.220] than 5000 devices these online, because showdown was just [18:59.220 --> 19:02.320] showing us ones that were that had no mantra enabled and were [19:02.320 --> 19:06.560] accessible on the internet. So this is the picture of the [19:06.560 --> 19:11.080] device, the Qt Link R 600 VPN router. The malware was [19:11.080 --> 19:16.400] specifically targeting this device. So the packet sipper is [19:16.400 --> 19:21.200] compiled for Lexra. Has anybody here heard of Lexra? Cool. Two [19:21.200 --> 19:25.700] people. Alright. This project is the first time I've ever worked [19:25.700 --> 19:28.620] with or even heard of Lexra. It's really similar to MIPS, but [19:28.620 --> 19:32.420] it's missing some instructions. Initially, when I started [19:32.420 --> 19:35.680] working on this, I thought the device and sample were MIPS. And [19:35.680 --> 19:37.400] this was problematic, because Patrick and I were attempting [19:37.400 --> 19:40.200] to get compiled MIPS code running on the R 600, but we [19:40.200 --> 19:42.340] kept getting seg faults. Eventually, one of our [19:42.340 --> 19:44.900] co-workers found out it was Lexra and helped us out with [19:44.900 --> 19:49.760] that. So it was good. So first off, I want to give a huge [19:49.760 --> 19:52.800] shout out to Carl Hurd. He works on our team at Cisco Talos, and [19:52.800 --> 19:56.420] he was the first one to reverse the packets for module. The [19:56.420 --> 20:00.240] sample was first uploaded to VirusTotal in 2016. So this [20:00.240 --> 20:03.360] module has been around for quite some time. I wonder how long the [20:03.360 --> 20:06.500] module has been around, because 2016 is just the first time it [20:06.500 --> 20:10.940] was uploaded to VirusTotal. The module is a Linux ELF. It's [20:10.940 --> 20:13.300] stripped and statically compiled. The fact it was [20:13.300 --> 20:15.140] stripped and statically compiled, made reversing a little [20:15.140 --> 20:17.940] bit more difficult. We had no function names, even Lipsy [20:17.940 --> 20:23.000] functions, they were unnamed, which was pretty annoying. So [20:23.580 --> 20:27.640] the sample will inspect every packet. It will initially do [20:27.640 --> 20:29.860] some checks. So it will first check to see if the packet is [20:29.860 --> 20:33.980] greater than 150 bytes, if the packet is IPv4, and if the [20:33.980 --> 20:37.920] packet is TCP. If all those conditions are met, then the [20:37.920 --> 20:44.120] sample will look for Modbus NHDP. So in order for the packet [20:44.120 --> 20:47.500] sniffer module to run, two arguments need to be provided. [20:47.660 --> 20:50.740] The first argument is the logging directory. This is where [20:50.740 --> 20:54.960] the logs will be stored. And the second is an IP address. If [20:54.960 --> 20:57.560] these two arguments are not provided, the sample will just [20:57.560 --> 21:01.000] exit. But if the two arguments are provided, we immediately [21:01.000 --> 21:07.620] enter the packet's parsing loop. So in the packet parsing loop, [21:07.620 --> 21:11.080] in the beginning we have some IP checks, checking for IPv4, [21:11.080 --> 21:15.340] TCP, and the packet size. And if those checks pass, then we [21:15.340 --> 21:20.680] will start looking for Modbus. And if the loop does not detect [21:20.680 --> 21:27.800] Modbus, then it will check for HDP. So all network traffic [21:27.800 --> 21:31.260] passes through this loop, and the loop is specifically looking [21:31.260 --> 21:35.700] for Modbus and HDP, and it will discard anything else. So if [21:35.700 --> 21:38.420] something doesn't meet the criteria for Modbus or HDP, the [21:38.420 --> 21:40.540] packet will be discarded and the loop will be restarted with [21:40.540 --> 21:47.200] the next packet. So for each packet, the loop is going to [21:47.200 --> 21:50.340] check to see if the packet is greater than 150 bytes. Then [21:50.340 --> 21:53.180] the loop is going to make sure the packet is IPv4 and TCP. And [21:53.180 --> 22:00.000] finally, we start the Modbus and HDP checks. So first off, for [22:00.000 --> 22:02.920] those of you that may not know, Modbus is an ICS protocol. It's [22:02.920 --> 22:08.440] commonly used by PLCs, runs on port 502, and the protocol is [22:08.440 --> 22:11.320] open so you can grab it from Modbus.org, and it doesn't [22:11.320 --> 22:17.120] support encryption. So once the loop has done the initial IP [22:17.120 --> 22:20.180] checks, the loop is going to check for Modbus. It does this [22:20.180 --> 22:22.880] by checking to see the packet's destination port and seeing if [22:22.880 --> 22:27.360] it equals 502. If it does, then the next check is if the [22:27.360 --> 22:30.040] packet's destination address is the same IP as the IP provided [22:30.040 --> 22:33.560] by the second argument provided to the binary. If both those [22:33.560 --> 22:37.120] checks return true, then the sample considers this packet a [22:37.120 --> 22:43.800] Modbus packet and login code gets called. So the log file is [22:43.800 --> 22:46.960] stored in the location provided by the first argument. The log [22:46.960 --> 22:50.080] file will be named rep underscore percent U dot bin, where [22:50.080 --> 22:54.280] percent U is the time the log file was written. The only thing [22:54.280 --> 22:58.660] that gets logged for the Modbus portion is the source IP, source [22:58.660 --> 23:04.620] port, destination IP, and the destination port. So this is an [23:04.620 --> 23:07.440] example of what the log file might be named and what it might [23:07.440 --> 23:11.760] contain. So rep underscore and a time value dot bin would be the [23:11.760 --> 23:15.360] name of the file, and then what's highlighted in orange is [23:15.360 --> 23:19.380] what would actually be inside the file. So we have asterisk [23:19.380 --> 23:22.940] Modbus asterisk new line, source IP, colon source port, with a [23:22.940 --> 23:31.930] little arrow, to destination IP, destination port. So I wonder why [23:31.930 --> 23:33.930] a sample specifically designed for a SOA router is looking for [23:33.930 --> 23:37.190] Modbus. I don't know if this router will ever be in a [23:37.810 --> 23:41.810] position to look at ICS traffic or Modbus traffic, and [23:41.810 --> 23:46.170] additionally I wonder what value the Modbus log provides. The [23:46.170 --> 23:48.650] log is a source IP, source port, destination IP, and [23:48.650 --> 23:52.990] destination port. And the destination IP address and the [23:52.990 --> 23:56.410] destination port have to be provided to the binary. So the [23:56.410 --> 23:59.030] only thing you get really is the source IP address and the [23:59.030 --> 24:08.020] source port. So, as loop continues, if the loop [24:09.420 --> 24:11.760] determines that the packet is not Modbus, then it will start [24:11.760 --> 24:17.300] looking for HTTP authorization. So just a quick recap, in order [24:17.300 --> 24:21.720] for the HTTP checks to start, the packet needs to be TCP, IPv4, [24:21.720 --> 24:26.240] greater than 150 bytes, and not Modbus. Then the HTTP checks [24:26.240 --> 24:31.980] start. So, the HTTP checks consist of checking the [24:31.980 --> 24:35.660] destination IP address, source port, length of the data, and [24:35.660 --> 24:40.200] several strings checks. The destination IP must be the same [24:40.200 --> 24:41.960] as the IP address that was provided to the sample when the [24:41.960 --> 24:43.520] sample was initially started. So it's looking for a very [24:43.520 --> 24:48.400] specific IP address. The source port must be greater than 1024, [24:48.400 --> 24:54.640] but it can't be 8080 or 8088. The length of the data must also [24:54.640 --> 24:57.260] be greater than 20 bytes, and then we move on to the strings [24:57.260 --> 25:02.360] check. So, in order for the packet to be logged, the packet [25:02.360 --> 25:11.150] must not contain any of the strings in that code block. And [25:11.150 --> 25:13.610] additionally, the packet must contain the string [25:13.610 --> 25:17.010] authorization basic, or a username and password [25:17.010 --> 25:19.430] combination, but it can't contain both. If it contains [25:19.430 --> 25:22.030] both, the packet will be discarded, and the loop will [25:22.030 --> 25:25.970] restart with the next packet. So, in this code block on the [25:25.970 --> 25:30.350] left, I have user names, or user parameters, and on the right, [25:30.350 --> 25:32.670] password parameters, so you have to have one from each side in [25:32.670 --> 25:38.350] order for the packet to be logged. If the HTTP logging [25:38.350 --> 25:44.830] has been met, the entire packet is logged to rep underscore [25:44.830 --> 25:52.930] %u.bin, where %u is the time of logging. And the log will be [25:52.930 --> 25:58.530] stored in the location provided to the sample when you initially [25:58.530 --> 26:04.590] ran it. So, it looks like the HTTP checks are looking for [26:04.590 --> 26:07.210] credentials to a specific website. It's highly targeted, [26:07.210 --> 26:09.950] as the destination IP address is already known, and needed for [26:09.950 --> 26:13.010] the packet zipper sample. Additionally, the sample does [26:13.010 --> 26:16.030] not send logs off the remote server, but maybe another sample [26:16.030 --> 26:23.210] does this, I don't know. So, in conclusion, the sample is [26:23.210 --> 26:26.590] targeting, specifically, the R600 bpen router, which is a [26:26.590 --> 26:29.550] SOHO router. The sample is looking for a specific IP [26:29.550 --> 26:34.470] address, and is grabbing modbus.http information. The [26:34.470 --> 26:36.650] sample cannot modify traffic without a significant code [26:36.650 --> 26:39.450] rewrite, but we have, as Patrick said, we've observed other [26:39.450 --> 26:45.770] samples that are able to modify traffic. So, thanks for coming [26:45.770 --> 26:47.230] to talk, hope you guys enjoyed it. [26:54.040 --> 26:59.420] I just want to reinforce, it's very, very targeted. Just that [26:59.420 --> 27:03.240] model of device, you have to give it the destination IP [27:03.240 --> 27:08.800] address. It's logging just the source IP and source port of [27:08.800 --> 27:12.400] modbus traffic, nothing else. And it's got a bunch of filters [27:12.400 --> 27:16.220] in place to discard a lot of the HTTP auth stuff. And it's [27:16.220 --> 27:19.620] storing the whole packet, but the filters in place will ensure [27:19.620 --> 27:23.140] that only a few of the packets that contain HTTP authentication [27:23.140 --> 27:27.860] stuff actually get saved. So, the question is, in what [27:27.860 --> 27:32.880] environment are you going to find this router? And what ICS [27:32.880 --> 27:40.320] device would be on the target of this? Where somebody would be [27:40.320 --> 27:42.700] on one side of this router and there would be an ICS device on [27:42.700 --> 27:46.340] the other, and both modbus traffic and HTTP traffic are [27:46.340 --> 27:49.080] passing to the same device, because the IP address is given [27:49.080 --> 27:56.100] as an argument when the module is run. So, that is the question [27:56.100 --> 28:02.560] of the day. Where is this device being used? And what ICS [28:02.560 --> 28:07.200] device receives modbus traffic and gets authentication over [28:07.200 --> 28:11.060] HTTP? We'll take questions. [28:11.060 --> 28:15.540] I was wondering, is it common at all for ICS type environments [28:15.540 --> 28:19.860] to use SOHO routers? Has that been found? Is that possible that [28:19.860 --> 28:22.420] the attackers have a very specific configuration in mind [28:22.420 --> 28:26.180] that they're going for somewhere that uses that sort of setup? [28:26.180 --> 28:30.440] So, in this case, this is obviously intended to target [28:30.440 --> 28:33.560] either a specific individual or a specific group that does [28:33.560 --> 28:37.340] things a certain way. This specific module isn't going to [28:37.340 --> 28:40.220] work on any of the other. It won't work as a plug-in to [28:40.900 --> 28:44.160] stage two on a different device. It only works on the TP-Link [28:44.160 --> 28:49.420] R600 VPN, and you have to give it that destination IP before [28:49.420 --> 28:53.340] it will log anything. So, when the actor dropped this, it's [28:53.340 --> 28:55.940] obvious that they were looking for certain stuff and only [28:55.940 --> 28:58.440] certain stuff, because it filters out everything else. Even [28:58.440 --> 29:01.520] things that would be valuable, like other HTTP connections. [29:03.200 --> 29:05.380] I mean, it's hard to say, but they might have had something [29:05.380 --> 29:08.120] specific in mind. Yeah, and whether or not this device [29:08.120 --> 29:11.140] should be an ICS environment? No, but whether or not it is? [29:11.140 --> 29:17.280] Yeah. So, I think some figure, like oil companies and stuff, [29:17.280 --> 29:20.060] backhaul their ICS communication back to their [29:20.060 --> 29:24.600] condition. So, you can considerably see that suit on [29:24.600 --> 29:29.810] someone's desk. I don't have a question. What type of... [29:32.740 --> 29:37.200] I would like to, and this is for you guys, if you can think [29:37.200 --> 29:42.220] of any field devices that may be what the actor was looking [29:42.220 --> 29:45.800] to receive the information about, if you want to, let me [29:45.800 --> 29:48.500] know. Let me know. Otherwise... It's not like a module for [29:48.500 --> 29:54.160] another industrial hardware type device. What do you mean? [29:54.240 --> 29:56.500] Well, you know, like, would they use that same core for [29:56.500 --> 30:00.700] another industrial hardware device? For the TV link? Not to [30:00.700 --> 30:05.520] my knowledge. It's just that, yeah, as far as I know. And [30:05.520 --> 30:07.480] it's that weird, like Carlos said, it's that lecture [30:07.480 --> 30:11.080] architecture. So, as we were writing our own proof of [30:11.080 --> 30:16.120] concept code and executing it on the device, we were getting [30:16.120 --> 30:19.180] psych faults all day long. And it turns out we needed a [30:19.180 --> 30:22.680] custom tool chain to compile code for this device. So it's [30:22.680 --> 30:25.320] not like it's, you know, the code may be portable, but it's [30:25.320 --> 30:28.040] still got to be compiled specifically for this. I don't [30:28.040 --> 30:31.160] know of anything. And there's strings in the binary that [30:31.160 --> 30:34.780] say R600 VPN. You know, so even if there was something else [30:34.780 --> 30:38.020] that, you know... Using that more... Right. Incorporated [30:38.020 --> 30:42.820] with it. Yeah. So just to be clear, is the package going [30:42.820 --> 30:47.060] through it? It looks at every packet that travels through it, [30:47.060 --> 30:49.780] and then it goes through the checks that Carlos explained to [30:49.780 --> 30:52.980] filter out the stuff that it doesn't want. And if it meets [30:52.980 --> 30:56.720] all the checks for Modbus, it just logs stuff that it already [30:56.720 --> 30:59.720] knew. Like it knows the destination IP because it's an [30:59.720 --> 31:03.480] argument that was passed to it when the module was executed. [31:03.660 --> 31:07.340] It doesn't log any of the Modbus data. It just... The IP [31:07.340 --> 31:09.940] address that the traffic came from and the port that it came [31:09.940 --> 31:13.080] from, and the IP address that it was going to, which we know, [31:13.080 --> 31:15.840] and port 502, which we know. So the only thing the actor [31:15.840 --> 31:20.140] learns that's new is source port and source IP. And then [31:20.140 --> 31:25.200] any HTTP traffic that meets all those filters going to the [31:25.200 --> 31:28.460] same IP address as the Modbus is going to, it'll log that [31:28.460 --> 31:31.700] entire packet. Yes? [31:43.840 --> 31:46.860] So in this instance, I would imagine they either did it [31:46.860 --> 31:50.320] manually, especially since it's so targeted, or there may have [31:50.320 --> 31:54.680] been capability at the C2 node that would connect and pull, [31:54.680 --> 32:02.860] right? No. Stage 2 had the ability to execute shell [32:02.860 --> 32:04.840] commands. So it'd be just like you're logged in to the [32:04.840 --> 32:07.160] terminal, you know, as splitting through. [32:07.660 --> 32:11.680] Were you able to do any analysis just where, you know, [32:11.680 --> 32:14.900] say there's 5,000 routers, you know, was there any, hey, that's [32:15.040 --> 32:19.500] a lot. Were there any kind of geographic trends you could see [32:19.500 --> 32:23.520] in certain countries or in certain areas? Nothing that [32:23.520 --> 32:26.340] stood out at the time, but we have the map and slides. We can [32:26.340 --> 32:31.280] put it up on the, and if you can zoom into it. Yeah. Most of [32:31.280 --> 32:37.580] the U.S., so almost 900 in the U.S., 600 in Russia, Brazil, [32:37.580 --> 32:41.280] Portland, Uruguay. And this is just specifically the TP-Link [32:41.280 --> 32:47.240] R600 VPN with remote management enabled. My first thought was [32:47.740 --> 32:57.740] it was oil and gas. Oil and gas. Not a lot of evidence. [32:57.740 --> 33:01.980] Right. Yes, sir. Piece into the breadcrumbs together. [33:02.920 --> 33:05.100] Following the breadcrumbs, you all piece into the breadcrumbs. [33:06.660 --> 33:07.660] Yes, sir. [33:07.760 --> 33:10.160] Yeah, the first stage, the raw socket. [33:13.740 --> 33:17.000] Easy way to take over the whole box. Yeah, so anybody that [33:17.000 --> 33:23.020] knows what that SIM packet is can own any device that is in [33:23.020 --> 33:26.580] that passive raw socket mode. So you just have to send a SIM [33:26.580 --> 33:29.960] that has the right magic bytes, and then it's going to pull [33:29.960 --> 33:33.380] out an IP address, and it's going to reach out, and you're [33:33.380 --> 33:35.540] going to have to deliver stage two to it. But I mean, if you [33:35.540 --> 33:37.580] know, so yeah, you could do it. [33:46.150 --> 33:52.510] For this module, because it's set up to just log the data [33:52.510 --> 33:55.650] about what goes through, it would be, it would need to be [33:55.650 --> 34:00.270] seriously modified to intercept. So instead of just looking at [34:00.270 --> 34:02.650] the packet and allowing it to go through, it's going to have [34:02.650 --> 34:06.030] to stop it, change it, pass it through. This module doesn't [34:06.030 --> 34:09.730] have any capability to do that, but that other module does. So [34:09.730 --> 34:12.850] they definitely have the ability to modify traffic. This [34:12.850 --> 34:15.730] module does not, but it's still possible. [34:18.750 --> 34:21.970] How alarming is this behavior? Has there been any sort of [34:21.970 --> 34:24.270] effort to go out and be like, have you seen this router to [34:24.270 --> 34:26.890] like potential industrial use cases or anything? Or is it [34:26.890 --> 34:30.990] kind of still pretty passive collection? Like, maybe... [34:30.990 --> 34:36.930] I'm here asking you guys. It's intriguing because it's so [34:36.930 --> 34:43.030] targeted, but because of the wide range of vendors and [34:43.030 --> 34:49.510] devices that were also known to be used, this type of activity [34:49.510 --> 34:52.070] could be used on any of those other devices. They just had to [34:52.070 --> 35:04.930] pile for the device and push it out. So it depends on which [35:04.930 --> 35:08.610] stage it's in and what device it is, and there's a whole bunch [35:08.610 --> 35:14.030] of weird ways to figure it out. If it's in that raw socket [35:14.030 --> 35:19.050] mode, you can detect it. CyberX put out a script a few [35:19.050 --> 35:21.970] weeks ago. It's up on GitHub, where it'll send the SYN packet [35:22.530 --> 35:28.130] and it'll reach out to an IP that the script gives. Also, I [35:28.130 --> 35:32.490] think on Sys or Mac, if someone corrects me if I'm wrong, [35:32.490 --> 35:53.660] Symantec had a tool that would let you know if... I think it [35:54.600 --> 36:04.260] was just a module. I did my damnedest to get live devices... [36:04.260 --> 36:07.520] If they had live devices, established connection and [36:07.520 --> 36:11.560] control, they just never had that module pushed out. So one [36:11.560 --> 36:14.980] of the interesting things about the Stage 3 modules, the device [36:14.980 --> 36:18.620] has to be tasked to pull them down. There's no list of modules [36:18.620 --> 36:22.980] in Stage 2 that it knows. You have to know the name of the [36:22.980 --> 36:26.360] module. The device has to be told, reach out and get this [36:26.360 --> 36:28.780] module, and then it will reach out to Command and Control, [36:28.780 --> 36:33.680] request the module, retrieve it, and execute it. So yeah, I'd [36:33.680 --> 36:36.680] like to be able to say, like, I just requested all the modules [36:36.680 --> 36:38.920] from Command and Control. I don't know, but without knowing [36:38.920 --> 36:42.760] the names of them, they could have had it and just... we never [36:42.760 --> 36:45.860] saw it. They were selective about what they deployed and [36:45.860 --> 36:49.200] where they deployed it. I saw another hand. [36:49.200 --> 36:54.200] So, you said that you got a virus code on 2016? [36:55.040 --> 36:56.740] This module did, yes. [36:56.980 --> 37:01.680] And what was that? Was that somebody uploading firmware? [37:03.100 --> 37:04.980] I'm wondering what was the circuit? [37:04.980 --> 37:10.820] So this specific binary is ELF executable, so Linux executable, [37:10.820 --> 37:13.600] and they uploaded that executable. [37:13.600 --> 37:14.940] I'm wondering how they got it. [37:14.940 --> 37:17.340] Did you ask Iris to upload it? [37:18.780 --> 37:21.320] I mean, should you? [37:21.620 --> 37:22.480] Right. [37:24.620 --> 37:27.140] I'm just wondering how they would have gotten it. [37:27.140 --> 37:30.560] I would love to know. I would love to know who uploaded it. [37:30.560 --> 37:35.600] So, in order to get it off of the device, you've got to own [37:36.120 --> 37:41.380] the device. Some of the older TP-Link R600s had a backdoor [37:41.380 --> 37:47.380] web shell that was known, so somebody could have used that and saw that [37:47.380 --> 37:49.280] they were in fact pulled it off and uploaded it. [37:49.280 --> 37:51.040] The actor may have uploaded it. [37:51.680 --> 37:53.920] Some people will trade graphics a little. [37:54.220 --> 37:56.000] Everybody's been known to make mistakes. [37:56.280 --> 37:57.300] So maybe they... [37:57.300 --> 38:01.040] Other than that, it would have either been pulled out of network traffic [38:01.040 --> 38:03.380] and uploaded, pulled off the device and uploaded, [38:03.380 --> 38:04.800] or uploaded by the actor. [38:07.180 --> 38:09.100] Well, all that seems very unlikely. [38:11.440 --> 38:12.160] I mean... [38:13.560 --> 38:18.280] No, I would love to hear ideas and scenarios for... [38:18.280 --> 38:21.920] And this is just one of countless modules. [38:22.300 --> 38:26.840] So, we know how many we've seen, but theoretically, [38:27.700 --> 38:30.540] it's up to the actor. They can just write it in the file and push it out. [38:30.840 --> 38:32.500] Those are their plugins. [38:32.920 --> 38:36.020] You mentioned there's a possibility this is a control, right? [38:36.300 --> 38:38.900] So that's one thing. I don't know if you mentioned it or not, [38:38.900 --> 38:43.600] but it's in the realm possible that the actor put that in there [38:43.600 --> 38:45.520] to distract you. [38:45.520 --> 38:47.460] Like, oh shit, they're looking for Modbus. [38:47.920 --> 38:48.500] You know? [38:48.920 --> 38:49.720] Yeah, exactly. [38:51.040 --> 38:51.760] Right. [38:53.640 --> 38:54.940] Were they really looking at Modbus? [38:54.940 --> 38:56.840] Or did they want us to think they were looking at Modbus? [38:58.980 --> 39:00.180] If you guys know. [39:00.800 --> 39:01.680] I'll buy you a beer. [39:04.440 --> 39:05.200] A sample? [39:06.100 --> 39:06.580] So... [39:07.200 --> 39:07.920] No. [39:09.800 --> 39:10.920] Well, I mean, [39:10.920 --> 39:13.280] if you have a paid account with Wirestotal, [39:13.280 --> 39:14.800] you have access to all that stuff. [39:14.800 --> 39:17.660] So, anybody in this room could search. [39:21.850 --> 39:25.570] So, Talos is working with several partners, [39:25.570 --> 39:26.510] external to Talos, [39:26.510 --> 39:29.450] and that's one of those things that I'm not going to get into. [39:29.790 --> 39:32.890] But the blog post that initially disclosed this [39:32.890 --> 39:36.910] will tell you as much as we're comfortable releasing. [39:36.910 --> 39:38.950] But we work with people outside of Talos. [39:47.430 --> 39:53.730] I don't remember, do you remember the VPN function in that? [39:53.730 --> 39:54.290] I don't remember. [39:54.290 --> 39:56.130] I'm pretty sure it was just using OpenVPN. [39:56.130 --> 39:59.490] It was BusyBox and OpenSSL and OpenVPN. [39:59.490 --> 40:01.310] We're pretty sure. [40:01.310 --> 40:02.550] I can double check. [40:03.930 --> 40:07.590] But if anybody has any other questions or follow-ups, [40:07.590 --> 40:10.610] you can just hit me or Carlos up here or afterwards. [40:36.510 --> 40:39.710] So, if you specify any IP address, [40:39.710 --> 40:41.270] it's the destination IP address, [40:41.270 --> 40:42.790] and then as the traffic passes through, [40:42.790 --> 40:46.350] it'll log the actual credentials going to that IP. [40:47.590 --> 40:49.230] Is that what you're saying you found? [40:54.730 --> 40:57.210] We think there's a couple, yeah. [40:57.370 --> 41:03.010] So, it can take three parameters or arguments, [41:03.010 --> 41:04.350] but it only takes two. [41:04.350 --> 41:05.630] So, what's the third? [41:05.630 --> 41:08.950] What was the other? [41:08.950 --> 41:11.430] So, it'll accept, it'll log the traffic, [41:11.430 --> 41:13.770] if it has HTTP basic authorization [41:14.270 --> 41:16.750] or a username and password combination. [41:16.750 --> 41:20.050] But if both are present, it ignores it. [41:20.570 --> 41:22.090] So, I mean, there were a few things where... [41:23.350 --> 41:26.650] My theory was that they were eliminating as much noise as possible, [41:26.650 --> 41:29.430] because if you start logging everything that matches HTTP basic auth [41:29.430 --> 41:31.550] and everything that matches Modbus, [41:31.550 --> 41:33.730] the device is going to fill up and you're going to have a break. [41:33.730 --> 41:36.670] So, they wanted to filter out everything except [41:36.670 --> 41:38.730] what they were specifically looking for. [41:38.730 --> 41:40.650] That's just my theory. [41:40.870 --> 41:43.650] And, yeah, I think there's a couple coding mistakes too. [41:46.070 --> 41:48.270] All right, thank you. Appreciate it.