1 00:00:00,000 --> 00:00:02,400 All right, we'll get started here. 2 00:00:02,400 --> 00:00:07,600 I hope everybody's here for this talk on the engine room at 1.30 for the Hack to C. 3 00:00:07,640 --> 00:00:09,480 I'm Kyle O'Meara. 4 00:00:09,520 --> 00:00:10,880 I'm David Blasco. 5 00:00:11,220 --> 00:00:15,900 And we'll talk to you about the tear down of a SATCOM terminal that we did. 6 00:00:16,380 --> 00:00:18,460 Here's our CYA slide. 7 00:00:18,640 --> 00:00:29,980 Unfortunately, due to responsible disclosure process, we actually anonymized the vendor for this until a later date, and I'll talk about that on my high horse in a few slides. 8 00:00:31,200 --> 00:00:43,320 So who we are, we both work on the reverse engineering team at the Software Engineering Institute, CERT-CC, so like the original FFRDC that's been coordinating vulnerabilities since 1988. 9 00:00:44,900 --> 00:00:56,400 Some of the skill sets that, you know, some of the things that we do, we do both the malware reverse engineering type stuff, but also we do like all research into devices and things of all sorts. 10 00:00:58,500 --> 00:01:14,060 So really the motivation behind this was that in 2015, IOACTIV did a presentation at Black Hat, you know, where they took a bunch of different satellite terminal firmware, did some, you know, vulnerability fuzzing analysis across all the different types of firmware. 11 00:01:15,400 --> 00:01:28,340 And then in like 2017, you know, we do, you know, how we work, we do partnerships with the government and we, DHS had reached out to us and said, hey, whatever came up of all that stuff, we know that the vulnerabilities were coordinated, but did anything else find, 12 00:01:28,340 --> 00:01:32,060 did they, were things fixed is usually the question and that's usually hard to answer. 13 00:01:32,500 --> 00:01:41,480 But, so one thing we wanted to do was that at that time, IOACTIV didn't actually purchase any SOC comp terminals themselves, like physical devices, they just looked at the firmware themselves. 14 00:01:41,480 --> 00:01:47,040 So we decided to buy one of the ones they spoke about and then dig a little deep into that. 15 00:01:47,440 --> 00:01:58,540 Obviously, I can't tell you what it is yet, but really the methodology was like find vulnerabilities, see if we can get any exploits and gain full control, obviously the typical way around doing stuff. 16 00:01:58,580 --> 00:02:05,200 So we'll talk about really this device analysis that we did and the findings as well as the findings and analysis of the firmware, right? 17 00:02:05,200 --> 00:02:09,520 So we looked at both of the devices, or sorry, both parts of the device. 18 00:02:10,520 --> 00:02:17,440 So this is where I'll get on a rant real quick about what actual responsible disclosure is and a little bit how this actually works. 19 00:02:17,440 --> 00:02:27,060 So back in April and May, I reached out to the vendor, submitted emails and like hit stuff on their contact page because they didn't have a proper way to submit vulnerabilities to them. 20 00:02:27,600 --> 00:02:31,760 So I did my due diligence twice, received no responses. 21 00:02:32,240 --> 00:02:38,800 And ironically, through helping out with Hack to C-Village, I met some of the other people that were helping out and they happened to have a contact. 22 00:02:38,800 --> 00:02:41,700 So I said, yeah, everybody deserves a fourth chance, right? 23 00:02:43,280 --> 00:02:44,980 So I decided to reach out. 24 00:02:44,980 --> 00:02:48,460 So this is like, you know, end of July, a few weeks ago, right? 25 00:02:48,460 --> 00:02:49,660 Not even a month ago. 26 00:02:49,660 --> 00:02:51,720 The person did respond. 27 00:02:52,080 --> 00:02:54,760 I said, hey, here's a list of all the stuff. 28 00:02:54,760 --> 00:02:56,960 We're going to be going public on this date. 29 00:02:57,440 --> 00:02:59,300 I reached out to you back here. 30 00:02:59,300 --> 00:03:02,540 Here's the actual attachment of the email to see that I actually sent you an email. 31 00:03:02,540 --> 00:03:08,840 If you go back in your contact forms database somewhere in the black abyss, you'll probably see that I submitted stuff there. 32 00:03:09,080 --> 00:03:14,600 Well, they got all on a pissy about this not really responsible disclosure. 33 00:03:14,600 --> 00:03:22,060 So what I want to say about that is that responsible disclosure doesn't start when the vendor chooses to respond to you, like that timeline that you make. 34 00:03:22,060 --> 00:03:24,260 So DHS has a 45 day timeline. 35 00:03:24,500 --> 00:03:27,460 We were giving them 90 days plus, right? 36 00:03:27,460 --> 00:03:35,920 So, but who we are and what we do, we decided to anonymize this and we're pushing for a slated of September 10th disclosure date. 37 00:03:35,920 --> 00:03:42,320 So that'll be on the vault notes on the CERT website, but you can also find it on the DHS website too, once it goes public. 38 00:03:42,320 --> 00:03:52,940 So that's really the thing is that as a researcher, when you contact a vendor, that's when your timeline starts for yourself, whatever that is, if that's 30 days, 45 days, because there's not really a guideline to do that. 39 00:03:52,940 --> 00:03:56,340 And if there's problems with doing that, that's why CERT CC exists. 40 00:03:56,340 --> 00:03:59,380 So reach out to us and we'll try to help work that process. 41 00:03:59,380 --> 00:04:05,820 I know DHS is also working with DEF CON and Black Hat as a whole to submit things anonymously and things like that. 42 00:04:06,780 --> 00:04:08,240 All right, off of that high horse. 43 00:04:08,300 --> 00:04:12,360 So look at the device, basically take it out of the box. 44 00:04:12,360 --> 00:04:13,340 What did we find, right? 45 00:04:13,340 --> 00:04:18,620 So what it, you know, it basically it's like an access point that has a SATCOM uplink, right, and downlink. 46 00:04:18,620 --> 00:04:19,780 That's sort of how it works. 47 00:04:19,920 --> 00:04:23,000 So we looked at like how you connect to it wirelessly, right? 48 00:04:23,000 --> 00:04:26,800 There's some port scanning and analysis from that and then looked at the web application itself. 49 00:04:27,600 --> 00:04:34,640 So by default, and this is in like, you can go on the, you know, they have it in their documentation, is that the password is the serial number, which is just eight digits long, right? 50 00:04:34,640 --> 00:04:45,240 So if you create a text file of every possible eight number enumeration, six CPU, you know, machine I have sitting on my desk, not even doing GPU would have cracked the password in four hours, right? 51 00:04:45,240 --> 00:04:46,580 You know, catching the traffic. 52 00:04:46,800 --> 00:04:50,440 The web app itself obviously didn't have HTTPS run in, right? 53 00:04:50,440 --> 00:04:51,940 So you can just see anything as go. 54 00:04:51,960 --> 00:04:53,580 It has no default login password. 55 00:04:53,580 --> 00:04:57,320 So you can like, anybody that connects to the device can log into the admin portal, right? 56 00:04:57,320 --> 00:05:01,440 And then that has like everything it can do, you know, it can port forward things and all that stuff. 57 00:05:01,800 --> 00:05:06,020 The root directory had no restrictions as far as like accessing files from there. 58 00:05:06,020 --> 00:05:08,440 So, you know, think of it from an adversarial standpoint, right? 59 00:05:08,440 --> 00:05:12,860 If you couldn't get access to stuff, but you knew that if you got a file into the web directory. 60 00:05:12,980 --> 00:05:15,480 So I knew what was in the web directory based on like looking at the firmware. 61 00:05:15,480 --> 00:05:23,160 So I would just do like, you know, just a simple, even in, you know, burp suite or just a get request for a file that I couldn't actually see in the web portal and I would be able to download it. 62 00:05:23,160 --> 00:05:29,140 You know, your typical like X frame headers weren't turned on for the protection of click jack and your cross-site scripting, right? 63 00:05:29,140 --> 00:05:33,040 Simple things that could be easily implemented. 64 00:05:33,040 --> 00:05:42,180 And then there has an asterisk server that does like the modem, you know, phone connections using one of the scripts, you know, that's out there for the Nmap scripting engine. 65 00:05:42,180 --> 00:05:45,740 It basically semi DDoSed it when I executed against it. 66 00:05:45,740 --> 00:05:50,740 So it would like intermediately drop and then come back online, intermediate drop and come back online. 67 00:05:50,740 --> 00:05:53,520 Obviously port scanning, you had some typical stuff, right? 68 00:05:53,520 --> 00:05:55,280 Obviously, you don't like to see telnet. 69 00:05:55,280 --> 00:05:57,480 Didn't know out the gate what 5454 is. 70 00:05:57,480 --> 00:05:59,360 We'll talk about that in a second. 71 00:06:00,800 --> 00:06:03,780 You know, your SSH typically, you know, your port 80. 72 00:06:04,300 --> 00:06:12,120 But what's interesting about port 5454 is that you can actually log into it unauthenticated. 73 00:06:12,120 --> 00:06:18,020 And then it basically, you had the ability to query it for about 86 different AT commands. 74 00:06:18,020 --> 00:06:23,620 So AT commands are the Hayes commands, a lot of modem, you know, interface with the modem itself. 75 00:06:23,720 --> 00:06:29,080 What was interesting is that they had two shell possibilities there, right? 76 00:06:29,080 --> 00:06:35,080 That weren't the typical AT commands, looked like they were AT commands initiated by the vendor itself. 77 00:06:35,080 --> 00:06:44,220 And from there, you know, you could get further access, but we didn't know, we tried everything, debugging as possible and fuzzing a bunch of different commands. 78 00:06:44,220 --> 00:06:52,540 And so we weren't able to get further access, but you'd still be able to run all these different AT commands and see what type of modem it is, what software it's running and so forth and so on. 79 00:06:56,140 --> 00:07:05,160 So most of my background before coming to CERT was doing embedded software development engineering for Booz Allen in Central Maryland. 80 00:07:05,660 --> 00:07:08,540 And so I have a lot of background in looking at firmware things. 81 00:07:08,540 --> 00:07:20,200 And one of the things that I like to do when I talked to Kyle about doing this was to just get a sample of the firmware from the vendor and just break into it and kind of see what we can do with it right out of the box. 82 00:07:20,200 --> 00:07:30,160 One of the cool things from this vendor is that you can just go directly to their website and tell them your first name and an email address and you have full access to all of the downloads for the firmware. 83 00:07:30,160 --> 00:07:33,700 So it's super secure, going back from version 1 the whole way to the latest release. 84 00:07:34,240 --> 00:07:42,700 Inside of every download is a manual of upgrade steps and then the firmware file proper. 85 00:07:42,700 --> 00:07:45,340 And this one is called a TIFF file. 86 00:07:45,340 --> 00:07:51,740 I don't know if anyone's ever seen a TIFF file before, but the only person to ever ask Google was this guy back in December. 87 00:07:51,860 --> 00:07:57,660 So someone else out there was interested in it at some point and nobody knew, nobody responded. 88 00:07:57,660 --> 00:08:02,120 And then eventually that post just disappeared and then it fell out of Google cache. 89 00:08:02,120 --> 00:08:04,460 So I thought that was interesting. 90 00:08:05,120 --> 00:08:12,660 It kind of just goes to show you that there's people out there looking into doing this sort of analysis besides us. 91 00:08:13,740 --> 00:08:16,840 Looking at the TIFF itself, I like to use binwalk. 92 00:08:16,840 --> 00:08:20,400 It's like a firmware extraction utility for binaries. 93 00:08:20,400 --> 00:08:32,700 It'll walk through the binary and try to pull out any squash files, zip files, anything that it recognizes as an extractable object from the binary. 94 00:08:32,940 --> 00:08:42,460 And after executing binwalk on this sample, it drops out four different squash directories full of files and goodies for us to take a look at. 95 00:08:42,460 --> 00:08:49,540 Most of the stuff that we're going to be looking at, or that we looked at, was the vendor software applications folder in the root zero folder. 96 00:08:50,180 --> 00:08:52,400 So that's where I started. 97 00:08:54,380 --> 00:09:04,000 Also to help out with the process, back when I originally started doing this analysis and looking at the firmware, I wrote a tool that's out there to help parse you and help you point down the different indicator paths. 98 00:09:04,000 --> 00:09:15,580 I spoke about quickly that yesterday, but if you just look for trauma, basically it's just a Python script that allows you to look for different strings and file types that might lead you down some vulnerable paths of some sort. 99 00:09:15,980 --> 00:09:24,560 Or maybe nothing, but it's still good to know that if this one file has the keyword root in it like 20 times, you're like, why does it have that? 100 00:09:24,560 --> 00:09:25,600 Is it hard-coding stuff? 101 00:09:25,600 --> 00:09:26,580 Did it comment out stuff? 102 00:09:26,580 --> 00:09:28,660 You'd be surprised how much stuff is left behind. 103 00:09:28,660 --> 00:09:36,260 So specifically looking at some of the software on the firmware itself, the version right out of the gate had Whitey running, which is like a web server. 104 00:09:36,420 --> 00:09:44,420 And there alone, it had seven known CVEs, and only one had a public exploit for it, and it basically DOSed the terminal. 105 00:09:44,420 --> 00:09:47,040 So just using Dr. 106 00:09:47,040 --> 00:09:51,940 Google, going to exploit DB, pulling that stuff down and executing it, it worked flawlessly and DOSed the machine. 107 00:09:51,940 --> 00:09:56,860 I actually had to unplug it, countdown 10, plug it back in for it to boot up again. 108 00:09:56,860 --> 00:10:03,320 And then I was running an old version of BusyBox, too, that had six known CVEs, but no public exploits. 109 00:10:03,320 --> 00:10:09,060 But obviously we all know just because there's no exploits that exist to this day doesn't mean that someone can't spend time to find it. 110 00:10:11,060 --> 00:10:25,100 So as Kyle said, running trauma kind of gives you a good look at what the vendor has left behind in the firmware or any of the scripts that are remaining on the terminal or any device that you're looking at. 111 00:10:25,100 --> 00:10:37,760 One of the interesting places for me to look was in the OEM scripts directory, and they left basically all of their development or unit testing scripts inside of this library in root zero. 112 00:10:39,380 --> 00:10:53,920 The most interesting things out of there for me, you can spawn shells and communicate across subnets to different parts of the device, like the Wi-Fi can go talk to the BGAN, things like that. 113 00:10:53,920 --> 00:10:57,280 There's also some development platform stuff. 114 00:10:57,280 --> 00:11:00,840 I'm not really sure what exactly that was, but it probably shouldn't be in there. 115 00:11:01,100 --> 00:11:03,620 And then one here at the bottom is called TIFF. 116 00:11:04,100 --> 00:11:08,600 And just real quick, as I was mentioning, the shell scripts were mostly debug stuff. 117 00:11:08,620 --> 00:11:13,860 You can move across the device with hard-coded passwords and usernames, ports. 118 00:11:15,140 --> 00:11:16,600 That was nice. 119 00:11:17,040 --> 00:11:18,120 And then you can flip the mode. 120 00:11:18,120 --> 00:11:22,620 If you're an adversary, you can just execute the script and just start telling it to go do something else for you. 121 00:11:22,620 --> 00:11:24,140 So that was cool. 122 00:11:24,140 --> 00:11:27,000 And as I mentioned, you can pull back all the firmware from the vendor. 123 00:11:27,000 --> 00:11:32,860 In version 1, we found the proper root password just sitting there in plain text. 124 00:11:32,940 --> 00:11:37,260 After version 2, they finally soldered it. 125 00:11:38,200 --> 00:11:45,120 So it's a little bit more difficult to pop out, but it definitely does match across versions from 1 to N so far. 126 00:11:48,060 --> 00:11:53,680 So yeah, cool, we found some low-level hanging vulnerabilities, but so what? 127 00:11:53,680 --> 00:11:55,960 The idea was to get full control. 128 00:11:56,720 --> 00:12:01,960 Yeah, and as we talked about, the root password kind of stops working at some point. 129 00:12:03,840 --> 00:12:13,780 There is an authentication module that has authentication passed to it based on your login type. 130 00:12:13,780 --> 00:12:28,800 And the shared object, without boring you to super excruciating painful details, basically generates a random number, MD5s it, throws it against a public key, spits it back to you and says, this is your key, now go tell me what the real password is. 131 00:12:28,800 --> 00:12:39,360 So I'm assuming that means that the developers have a two-factor server somewhere else or GUI that they just pop that value in and they can log back in. 132 00:12:39,360 --> 00:12:45,260 So it's basically the only protection from anybody getting into this box as root. 133 00:12:45,660 --> 00:13:09,820 So one of the ideas that I had was, if I don't know this two-factor authentication mechanism or I don't want to just go try some other method to get on this box, like buffer overflow or something, can I just maybe go take that configuration file, erase the part that says authenticate through this PAM shared object and just log in as root normally. 134 00:13:09,880 --> 00:13:12,680 So my idea was to just rebuild the firmware. 135 00:13:12,680 --> 00:13:18,460 I'll make my own vendor firmware and push it to the device because it probably will work. 136 00:13:18,460 --> 00:13:23,080 And inside of that scripts directory that I talked about earlier, we have two Python scripts. 137 00:13:23,080 --> 00:13:26,180 One is the tiff.py, one is the list tiff.py. 138 00:13:26,720 --> 00:13:35,540 One will define every portion of the tiff and one will use that information to unpack the tiff recursively and pop out all the data that you're looking for. 139 00:13:35,840 --> 00:13:42,360 As I mentioned, the classes that are used by this one script are all listed here. 140 00:13:42,360 --> 00:13:46,140 The most important thing is the tiff blob types. 141 00:13:46,240 --> 00:13:57,800 Every section of the tiff is labeled with a header and the list tiff.py knows how to unpack each of these based on the tiff blob type. 142 00:13:57,980 --> 00:14:04,570 Only four of them are used right now, but I'll give you a quick rundown of just starting from the top. 143 00:14:04,570 --> 00:14:17,730 The tiff file has a header, a defined header that starts out with fit tiff and then just CRCs, versions, release numbers, header lengths, body lengths. 144 00:14:17,810 --> 00:14:20,630 There's nothing on here that's obfuscated in any way. 145 00:14:20,630 --> 00:14:24,650 That's just the straight up definition of what that header file looks like. 146 00:14:24,810 --> 00:14:30,630 So that's kind of like the visual breakdown of what it looks like in a hex editor. 147 00:14:32,570 --> 00:14:33,550 Let's see here, what's next. 148 00:14:33,550 --> 00:14:34,830 So we have the content header. 149 00:14:34,830 --> 00:14:38,510 So now after we've defined the top of the file, we can start walking down the blocks. 150 00:14:38,510 --> 00:14:40,250 So now there's a content section. 151 00:14:40,450 --> 00:14:47,670 The content section is defined as having a CRC type, a length for the header, a body length, a body name, and a body CRC. 152 00:14:47,670 --> 00:14:51,930 There's, again, no secret sauce here to doing anything magical with this. 153 00:14:51,930 --> 00:15:00,130 This is another just straightforward, I'm going to match the data up to what exactly the enumeration is or the definition is from the tiff file. 154 00:15:00,130 --> 00:15:04,870 And then we're going to start kind of pulling this apart. 155 00:15:05,390 --> 00:15:10,670 Once you get through the blob, now you can look into the content, and the content will dump straight up. 156 00:15:11,070 --> 00:15:12,590 I'm going to skip ahead, I think. 157 00:15:15,330 --> 00:15:16,690 It's just all data. 158 00:15:16,970 --> 00:15:18,890 Probably not super interesting. 159 00:15:19,210 --> 00:15:20,470 As interesting as that. 160 00:15:21,690 --> 00:15:25,810 So inside of tiff.py, we're just going to recursively walk through it on execution. 161 00:15:25,810 --> 00:15:26,950 It's basically like binwalk. 162 00:15:26,950 --> 00:15:33,390 It's, as I said, just going to chunk up all the data and spit it out into one directory per image format. 163 00:15:33,550 --> 00:15:42,030 And because there's no mainline inside of that script, I kind of have to do a little modification and execute Python on it. 164 00:15:42,030 --> 00:15:49,330 And when it's executed, you have a whole output just telling you exactly what everything is on here. 165 00:15:49,330 --> 00:15:51,950 And then we can use that information a little bit later. 166 00:15:52,170 --> 00:16:01,070 As it's saved off in something called a manifest, we'll go back and read the manifest and then walk back our rebuilding process. 167 00:16:01,610 --> 00:16:16,450 The contents, once we've run the list tiff and run on squash, on all these squash directories, it breaks out a little bit better with names and kind of like a better direction of what you can be looking at. 168 00:16:16,450 --> 00:16:20,990 For example, we have applications native to the vendor space inside of the applications directory. 169 00:16:20,990 --> 00:16:25,870 The image has additional tiff images including recovery binaries. 170 00:16:26,290 --> 00:16:29,670 It has some Xilinx firmware in it that we didn't look at, the user manual. 171 00:16:30,090 --> 00:16:32,850 There's a USB configuration directory. 172 00:16:32,850 --> 00:16:39,770 And then the other important, I guess, kind of neat thing was this zoom file, which I suppose means just properties in Latin. 173 00:16:39,830 --> 00:16:46,130 And it just tells you a little bit more information about the images if you want to do some development on them, I guess, from the vendor. 174 00:16:47,590 --> 00:16:52,130 So knowing all that, I told you that story to tell you this story. 175 00:16:52,130 --> 00:16:54,810 So we have, we can now think like an attacker. 176 00:16:54,810 --> 00:16:58,130 What is the nation state that hacker trying to do in this sort of space? 177 00:16:58,130 --> 00:17:00,770 If it's me, I can sit a mile away on an antenna. 178 00:17:00,770 --> 00:17:09,850 I can crack the password and upload my own firmware because there's no default, there's no credential keeping me out of the administrative portal. 179 00:17:10,050 --> 00:17:12,890 I can write any kind of traffic, interception. 180 00:17:12,890 --> 00:17:18,150 I can probably pull SMS records, call records, do some GPS spoofing, take down your box. 181 00:17:18,350 --> 00:17:23,070 And we can do that all with a custom firmware that we can write knowing what the vendor told us. 182 00:17:23,070 --> 00:17:31,690 And very simply, it's removing that PAMP configuration just as a simple POC. 183 00:17:31,890 --> 00:17:37,990 We're going to re-squash each unsquashed image after we've done our modifications. 184 00:17:38,430 --> 00:17:41,110 We'll repack the TIFF, keeping it all in the same order of contents. 185 00:17:41,110 --> 00:17:43,550 We'll make sure we correct the header lengths, the CRCs. 186 00:17:44,950 --> 00:17:46,970 Make sure we align our bytes properly, too. 187 00:17:46,970 --> 00:17:47,910 That's very important. 188 00:17:48,310 --> 00:17:50,250 And then just load it to the terminal. 189 00:17:50,970 --> 00:17:55,950 Not anything super exciting, but I made a tool to do this that I talked about yesterday at the Buoy workshop over there. 190 00:17:55,950 --> 00:18:00,990 If anybody got to stop by and see that, and if you want to see a little bit more detail about that, we can chat offline. 191 00:18:01,870 --> 00:18:11,830 Just the basic test drive of this is tear down an existing patch and rebuild it and see if what I wrote in my Python after a couple weeks is good and works. 192 00:18:12,410 --> 00:18:14,470 And the easiest way to do that is just MD5 it. 193 00:18:14,470 --> 00:18:18,950 And my MD5s ended up matching, so that's when I went to town and made my own. 194 00:18:19,410 --> 00:18:22,190 My own firmware with a modification that I was talking about earlier. 195 00:18:22,410 --> 00:18:23,190 And it's super simple. 196 00:18:23,190 --> 00:18:26,830 Like I said, you've got to be inside of the administrative portal. 197 00:18:27,070 --> 00:18:29,630 We want to click the buttons. 198 00:18:29,630 --> 00:18:33,450 We can only downgrade one number or upgrade incrementally. 199 00:18:33,590 --> 00:18:38,350 There's no... you can't re-release version 1 on top of version 1. 200 00:18:38,350 --> 00:18:44,170 That's the only error checking that they seem to have or only prevention for this sort of an attack. 201 00:18:45,170 --> 00:18:51,010 So we build it and we loaded it and then the system goes down. 202 00:18:51,110 --> 00:19:02,870 It's not super exciting without videos or pictures, but when we go to load it and log in and we have root with a root password, there's no animation there. 203 00:19:03,150 --> 00:19:04,310 Oh, and then what's that? 204 00:19:05,070 --> 00:19:05,790 Yeah, yeah. 205 00:19:05,790 --> 00:19:09,510 And because the vendor's anonymized, I made sure I put my own logo at the bottom. 206 00:19:09,510 --> 00:19:12,050 You can do this kind of thing. 207 00:19:12,050 --> 00:19:13,930 This is a real life attack. 208 00:19:14,530 --> 00:19:21,430 Vendors, not just from this company, but Satspace in total, need to be aware of this sort of an attack. 209 00:19:21,430 --> 00:19:22,870 And this is a possibility for real things. 210 00:19:22,870 --> 00:19:25,890 Whether they're working on something for mitigation or not, we don't know. 211 00:19:26,830 --> 00:19:29,290 But that's actually my last slide. 212 00:19:29,290 --> 00:19:30,850 I don't know if you want to close up with anything. 213 00:19:30,850 --> 00:19:32,510 Well, that's it. 214 00:19:33,750 --> 00:19:37,190 We'll take any questions or comments, concerns. 215 00:19:47,710 --> 00:19:58,990 Yeah, so the question was, how do you kind of line up what you're looking at inside of the TIFF without having that TIFF-Python thing to pop everything out for you, right? 216 00:19:58,990 --> 00:19:59,990 That's kind of what you're doing. 217 00:19:59,990 --> 00:20:01,690 So I'm having some experience. 218 00:20:01,690 --> 00:20:03,270 We've talked about this before offline. 219 00:20:03,270 --> 00:20:10,410 But having been in that space before where I'm looking at firmware that I'm putting back together, you just have the inclination that there's CRC bytes here. 220 00:20:10,650 --> 00:20:13,670 You look for the length stuck somewhere in a header. 221 00:20:14,830 --> 00:20:16,390 Or you just look for section lengths. 222 00:20:16,390 --> 00:20:23,390 A lot of them have a name in ASCII that was readable in a hex editor. 223 00:20:23,390 --> 00:20:27,530 So you can kind of see where your headers are starting and ending, and then you can kind of work from there. 224 00:20:27,530 --> 00:20:30,930 So that's just kind of my process for doing that without knowing any better. 225 00:20:42,710 --> 00:20:50,370 Yeah, so we did our own CRC recalculator. 226 00:20:50,370 --> 00:20:57,050 The question is, if you make a modification, does it impact what you're trying to put back into the TIFF file? 227 00:20:57,050 --> 00:20:57,790 And the answer is yes. 228 00:20:57,790 --> 00:21:00,110 We had to always make sure that we were MD5-ing everything. 229 00:21:00,110 --> 00:21:04,230 I didn't use anything that the manifest told me as valid truth for a CRC. 230 00:21:04,230 --> 00:21:08,390 I always took my blob and I CRC'd it myself and attached it into the headers. 231 00:21:12,010 --> 00:21:13,550 Yeah, one at a time, yep. 232 00:21:18,410 --> 00:21:28,310 Firmware rewriting, once you kind of figure everything out and have some non-erroring script, it probably only took like two weeks, I think, start to finish. 233 00:21:29,350 --> 00:21:31,410 And that's not even a 100% dedicated task. 234 00:21:31,410 --> 00:21:37,710 We're both on the malware team and supporting malware analysis across DHS and DC3 and AFOSI. 235 00:21:37,830 --> 00:21:41,390 We're just kind of poking this in our own free time. 236 00:21:42,890 --> 00:21:49,270 Is your admin console, is that accessible via Wi-Fi or is it also accessible over the satellite? 237 00:21:49,570 --> 00:21:52,890 So we didn't look at anything from the uplink, downlink yet. 238 00:21:53,190 --> 00:21:55,590 I've been told you should probably look at it. 239 00:21:55,590 --> 00:22:01,530 So that alone tells me that it's probably unencrypted, uplink and downlink from the satellite itself. 240 00:22:01,530 --> 00:22:03,070 But no, we just access it. 241 00:22:03,070 --> 00:22:06,570 You can access the device either by Ethernet. 242 00:22:06,570 --> 00:22:09,630 It has serial, I think it has serial port on it. 243 00:22:09,670 --> 00:22:12,030 There's USB and then there's Wi-Fi. 244 00:22:12,030 --> 00:22:15,370 Your typical way to connect to it is either hardwired in or Wi-Fi to it. 245 00:22:15,370 --> 00:22:22,270 So the reason I ask is, is there actually a Wi-Fi range or is it via mobile? 246 00:22:22,270 --> 00:22:23,230 Is that phone range? 247 00:22:23,230 --> 00:22:30,810 So, yes, but the caveat is that by default there's no port forwarding turned on on the device, right? 248 00:22:30,810 --> 00:22:36,150 So you'd have to like probably either hope that that was already turned on for you to get past it. 249 00:22:36,150 --> 00:22:41,630 But I think if, you know, I guess the real answer is I haven't tested it because we didn't do anything. 250 00:22:41,630 --> 00:22:46,690 We bought a SIM card, right, and do it, but it was like 100 megs and we're like, oh, we'll wait until we're ready and stuff like that. 251 00:22:46,690 --> 00:22:50,370 Plus it's like, you know, we're not RFI guys by day, right? 252 00:22:50,370 --> 00:22:56,150 So we'd have to like figure out how we're going to capture it, you know, with a hack RF1 and using GNU radio and that's a pain in the butt. 253 00:22:56,970 --> 00:23:00,930 But yeah, I would say the one would actually work because it's attacking port 80. 254 00:23:00,930 --> 00:23:02,530 So that would be exposable. 255 00:23:02,710 --> 00:23:04,250 So I think that would be it. 256 00:23:04,250 --> 00:23:11,510 I guess the port forwarding is like we wouldn't be able to like log into port 5454 and things like that and do the AT commands unless that was forwarded out. 257 00:23:11,510 --> 00:23:12,550 But 80 would be open. 258 00:23:12,550 --> 00:23:16,230 So yes, theoretically, it should work from wherever you're sitting. 259 00:23:16,230 --> 00:23:19,230 If you knew where the IP address of that machine was. 260 00:23:23,110 --> 00:23:27,250 Any other questions, comments, concerns? 261 00:23:27,670 --> 00:23:28,310 Oh, cool. 262 00:23:28,550 --> 00:23:29,730 Appreciate it. 263 00:23:42,190 --> 00:23:45,810 It's anything like I mean, they're not like it was only five grand. 264 00:23:45,810 --> 00:23:48,870 I know only five grand, but like so theoretically anybody can buy one, right? 265 00:23:48,870 --> 00:23:50,230 It's used a lot on maritime. 266 00:23:50,230 --> 00:23:52,550 They advertise for like militaries and things like that. 267 00:23:52,550 --> 00:23:54,810 So it's a pretty prevalent one. 268 00:23:54,810 --> 00:23:58,970 Like if you go to the IOActive like 2015 talk, he did it. 269 00:23:58,990 --> 00:24:00,370 It's one of those five, right? 270 00:24:00,370 --> 00:24:03,130 I think he talked about five different vendors or four. 271 00:24:03,130 --> 00:24:04,130 It's one of those four. 272 00:24:04,190 --> 00:24:05,150 So it's a prevalent one. 273 00:24:05,150 --> 00:24:06,490 It's a very prevalent one. 274 00:24:06,510 --> 00:24:11,990 We picked one that was really easy to get and like in the easy to get as like I didn't we can't buy things off eBay. 275 00:24:12,050 --> 00:24:16,150 So our purchasing department is like you buy things off eBay. 276 00:24:16,930 --> 00:24:21,930 So we had to find like some third party vendor that was going to sell it and stuff like that. 277 00:24:23,890 --> 00:24:24,510 Cool. 278 00:24:24,510 --> 00:24:25,310 Thank you.