1 00:00:00,000 --> 00:00:07,100 Hey, everyone. My name is Steven Hiltz. I work at Trend Micro. I'm a threat researcher. So this 2 00:00:07,100 --> 00:00:11,000 will be kind of a talk that's a little bit different than what you're normally seeing in 3 00:00:11,000 --> 00:00:16,880 the IoT. I'm going to take a threat angle to some Internet-connected speakers that we looked 4 00:00:16,880 --> 00:00:25,740 at. Those speakers themselves, we started with the Sonos and the Bose. The reason why we 5 00:00:25,740 --> 00:00:31,720 chose the Sonos, I actually ended up buying my wife a Sonos speaker once for her birthday and I 6 00:00:31,720 --> 00:00:37,840 started playing with it. Got her really angry at me pretty quickly because I kept just crashing 7 00:00:37,840 --> 00:00:43,560 it and doing a bunch of other stuff. So work ended up buying me one. So I have two. Actually, 8 00:00:43,580 --> 00:00:49,600 I have five now. Because they're actually really nice and they're really good to have. The 9 00:00:49,600 --> 00:00:55,720 Bose are equally as nice. Same kind of issues but these are the two that we're going to 10 00:00:55,720 --> 00:01:01,640 predominantly talk about. There are other vendors, of course, that are playing in the 11 00:01:01,640 --> 00:01:11,240 spectrum, such as the Apple new one as well. So first thing I did when I bought the device, I 12 00:01:11,240 --> 00:01:17,520 scanned it on my network to see what ports were open. Which is pretty basic things for what I 13 00:01:17,520 --> 00:01:22,680 normally like to do. I like to know what's on my network. I actually have these on an Internet 14 00:01:22,680 --> 00:01:25,700 of shit network that I have. So they don't have a lot of information on them. So I'm going to 15 00:01:25,720 --> 00:01:35,480 talk to my normal stuff. So then the next thing I did, has anyone else ever done anything with 16 00:01:35,480 --> 00:01:42,620 this? So there was an in-map script for Sonos and it pulls a bunch of information such as the 17 00:01:42,620 --> 00:01:49,240 zone name, MAC address, serial number, what version of firmware it is. So then I was like, 18 00:01:49,320 --> 00:01:55,040 how is it pulling this information? And when you look at the script, it goes to the IP address of 19 00:01:55,040 --> 00:02:07,580 the destination. Port 1400. Slash status and then slash ZP or ZL, depending on the model. And 20 00:02:07,580 --> 00:02:13,500 it will pull a bunch of information from this page. So that made me think, okay, what else is out 21 00:02:13,500 --> 00:02:20,640 there? So when we looked at the slash status page, there's all these different pages. Such as 22 00:02:20,640 --> 00:02:25,020 accounts, system settings, preferences, CPU mon, IP configuration, IP address, IP address, IP 23 00:02:25,020 --> 00:02:32,260 config. Net stats, arp tables. All this information just right here. All you have to do is click on 24 00:02:32,260 --> 00:02:37,780 it. It brings up some information. There's actually a hidden debug tool that's pretty neat. 25 00:02:38,320 --> 00:02:46,280 That's under slash tools, HTM. And you can do a ping. So one of the things that was fun to do is 26 00:02:46,280 --> 00:02:51,640 you can find these exposed online. We will get there in a minute. But you type in the internal IP 27 00:02:51,640 --> 00:02:55,000 address range and you can do a broadcast ping and it will pull a bunch of information. So that was 28 00:02:55,000 --> 00:02:57,620 anything that responds to broadcast pings, so more or less 29 00:02:57,620 --> 00:03:01,360 now from the Internet connected speaker in this tool page, I 30 00:03:01,360 --> 00:03:03,920 have now profiled your internal network. I know what else you 31 00:03:03,920 --> 00:03:06,740 have. It prints back, you know, the ARPs and things like that. 32 00:03:07,800 --> 00:03:10,720 You can do tracer out, see how far back they are in the 33 00:03:10,720 --> 00:03:15,400 network, see where things are. You can do an NS lookup. Maybe 34 00:03:15,400 --> 00:03:19,460 they're pointing to an internal DNS server if it's in a, inside 35 00:03:20,100 --> 00:03:23,800 of a company. A lot of these are exposed on university 36 00:03:23,800 --> 00:03:27,500 networks. And you'll see that that's kind of fun. You can 37 00:03:27,500 --> 00:03:31,800 start probing their internal DNS just by using this device. And 38 00:03:31,800 --> 00:03:35,720 then the MDNS announces. So here's an example of doing a 39 00:03:35,720 --> 00:03:39,240 broadcast ping on an internal network as you see. One ping, 40 00:03:39,900 --> 00:03:44,200 lots of responses. Then you can pull over and you look up the 41 00:03:44,200 --> 00:03:46,560 ARP table. Now all these devices are in that ARP table 42 00:03:46,560 --> 00:03:52,200 that was on that main page. So we worked with John Matherly and 43 00:03:52,200 --> 00:03:53,780 Shodan. And we were able to get a lot of data out of the ARP 44 00:03:53,780 --> 00:04:00,700 table to get these imported into Shodan. And this was back 45 00:04:00,700 --> 00:04:04,380 last year. There was roughly 4,000 devices. This bounces 46 00:04:04,380 --> 00:04:08,840 between 4,000 to 5,000 normally depending on when he crawled. 47 00:04:09,220 --> 00:04:12,640 But it's usually right around always in that number. U.S. 48 00:04:12,640 --> 00:04:16,380 being the number one place. And then always followed by Sweden, 49 00:04:16,560 --> 00:04:23,500 Belgium and then the Netherlands. Norway here too. So 50 00:04:23,780 --> 00:04:26,420 I kind of took some of that information and then we wanted 51 00:04:26,420 --> 00:04:29,420 to know which models were the most important or most prevalent 52 00:04:29,420 --> 00:04:33,200 on the Internet. The Sonos Play one which is the ones that are 53 00:04:33,200 --> 00:04:36,340 sitting out here everywhere around the room. If you hadn't 54 00:04:36,340 --> 00:04:40,580 noticed, there's one right here up on this table by Eric. That's 55 00:04:40,580 --> 00:04:43,420 the most predominant one. So this is just a validation that 56 00:04:43,420 --> 00:04:47,160 the one I had was a really good target to start looking at versus 57 00:04:47,520 --> 00:04:50,340 did I choose the wrong one to see if there's any other issues. 58 00:04:52,600 --> 00:04:53,760 What I found was much better. I was able to get a lot of data out 59 00:04:53,780 --> 00:04:58,860 most interesting, this was right after the Playbase came out, like by three weeks, and 60 00:04:58,860 --> 00:05:06,860 there had already been 16 exposed online. So as people are buying these, they're getting a lot 61 00:05:06,860 --> 00:05:13,080 and a lot, and they're just putting them online. How they're getting online is they actually do 62 00:05:13,080 --> 00:05:20,820 UPnP to a little bit. So if your router supports UPnP, it's going to poke a hole for the 63 00:05:20,820 --> 00:05:27,180 port 1400. There's also cases where people want to be able to control their speakers remotely, 64 00:05:27,460 --> 00:05:36,640 and there is an API. We'll discuss that. But again, we wanted to talk about those as well. So 65 00:05:36,640 --> 00:05:42,680 we found a way to profile those online. It's port 8090 is their main config page, and it uses 66 00:05:42,680 --> 00:05:48,480 the Allegro software rom pager version. And the highest we've seen it is roughly around 67 00:05:48,480 --> 00:05:50,800 1,000. So they're not as popular, but they're a little bit more popular than the other 68 00:05:50,800 --> 00:05:55,640 ones available now. It's based on these numbers exposed online. I don't know if it's less 69 00:05:55,640 --> 00:06:01,960 popular of a speaker to buy. I think it is internationally. So we're going to talk about some 70 00:06:01,960 --> 00:06:07,480 of the information leakage that's coming off these devices. And so you can see here, a lot of 71 00:06:07,480 --> 00:06:13,200 stuff is blurred, and some things have changed a little bit. This is one of my own that I made, 72 00:06:13,420 --> 00:06:19,640 but kind of shows you the information, like what type of phones have connected to it. So just in 73 00:06:19,640 --> 00:06:20,780 case, I have an iPhone. And it does have a built-in buffer. So you can see that on the front 74 00:06:20,780 --> 00:06:25,360 phone. And mine is mobile iPhone. But it usually will have the 75 00:06:25,360 --> 00:06:30,040 name there, say if it's Aaron's iPhone. Now I know her name is 76 00:06:30,040 --> 00:06:34,740 Aaron. She has an iPhone. And she connects her Sonos to it. 77 00:06:37,480 --> 00:06:40,400 Other interesting pieces of information about that is 78 00:06:40,400 --> 00:06:44,740 there's the description XML file that you can see. It kind of 79 00:06:44,740 --> 00:06:47,640 gives a description of the actual device. So up at the top 80 00:06:47,640 --> 00:06:51,760 those are the two speakers that I had. And then below that the 81 00:06:51,760 --> 00:06:54,620 media servers or anything that's connected to it. So that also 82 00:06:54,620 --> 00:06:59,280 will include computers, not just mobile devices. So if you 83 00:06:59,280 --> 00:07:02,000 connect a computer to it, it will tell you the little bit 84 00:07:02,000 --> 00:07:06,920 of information about the computer itself. This one is 85 00:07:06,920 --> 00:07:13,740 the accounts page. And of course this one is mine from my 86 00:07:13,740 --> 00:07:17,620 local one. But it has my gmail account. From my local 87 00:07:17,640 --> 00:07:19,520 there. There's a lot of information for, in that case, 88 00:07:19,520 --> 00:07:26,140 that is for Pandora. There's random tokens for Spotify and 89 00:07:26,140 --> 00:07:32,780 for iHeartRadio as well. So you just have to, kind of 90 00:07:32,780 --> 00:07:36,640 interesting information when you look at these. The e-mail 91 00:07:36,640 --> 00:07:41,000 address was going to prove in a couple of slides a pivotal point 92 00:07:41,000 --> 00:07:45,460 of information that I can have and utilize to help profile who 93 00:07:47,640 --> 00:07:51,680 you are. This has since been masked. And we'll talk about the 94 00:07:51,680 --> 00:07:58,480 disclosure pieces. Here's the information leakage on the Bose. 95 00:07:58,840 --> 00:08:03,020 As you can see here, there's some good information. In this 96 00:08:03,020 --> 00:08:08,320 case, it came from SVT.SE. This is actually a journalist's Bose 97 00:08:08,320 --> 00:08:14,480 device that is exposed online. We've since worked with them to 98 00:08:14,480 --> 00:08:17,620 remove it. So. So that's a little bit of information there. 99 00:08:17,640 --> 00:08:22,020 We felt like maybe media people shouldn't have their devices 100 00:08:22,020 --> 00:08:26,520 exposed online. Especially when you can put more information in 101 00:08:26,520 --> 00:08:30,680 and figure out information about the person. One of the things 102 00:08:30,680 --> 00:08:34,080 that I like about the Bose is on this page it will actually tell 103 00:08:34,080 --> 00:08:37,840 you how it's connected. Bose actually does Bluetooth where the 104 00:08:37,840 --> 00:08:41,400 Sonos doesn't. So you can see if a device is connected via 105 00:08:41,400 --> 00:08:45,360 Bluetooth and auxiliary port which again the Sonos doesn't have. You can do that over 106 00:08:45,360 --> 00:08:49,260 Wi-Fi or Ethernet only. So there's several different ways of listening to 107 00:08:49,260 --> 00:08:51,640 a Bose. And you can see how they've connected it. 108 00:08:55,220 --> 00:08:57,300 The next piece of information that I found 109 00:08:57,300 --> 00:09:01,080 really interesting was the scan results page. At first I was like scan 110 00:09:01,080 --> 00:09:05,360 results. I'll come back to that one later. But it 111 00:09:05,360 --> 00:09:08,640 turns out it's running the ATH config scan results 112 00:09:09,180 --> 00:09:12,900 command. So to find the neighboring access points. 113 00:09:13,700 --> 00:09:15,280 So what this does 114 00:09:15,360 --> 00:09:18,620 is pretty interesting. It gives you the BSSID, the SSID 115 00:09:18,620 --> 00:09:21,000 and the signal strength right there. 116 00:09:22,760 --> 00:09:27,400 This is used during their setup process to show you in your 117 00:09:27,400 --> 00:09:31,060 app when you're trying to connect it to what neighboring 118 00:09:31,060 --> 00:09:35,160 access points are. So this shouldn't actually be disabled since I've already 119 00:09:35,160 --> 00:09:39,240 connected it. But with the BSSID we started looking 120 00:09:39,240 --> 00:09:42,460 for information online. So there's this really good 121 00:09:43,220 --> 00:09:45,340 Alexander Malinkoff has a really good 122 00:09:45,360 --> 00:09:49,340 website where he pulls a bunch of information from all the 123 00:09:49,340 --> 00:09:53,320 scan results from all the word driving and puts it into one API 124 00:09:53,320 --> 00:09:57,140 you can use. You're limited based off cloud 125 00:09:57,140 --> 00:10:00,840 flair from doing a bunch. So if you want to go around that, just 126 00:10:01,360 --> 00:10:05,440 find the real IP like I did. And then hard code that in your host 127 00:10:05,440 --> 00:10:09,180 table. And then I populated everything from 128 00:10:09,180 --> 00:10:15,340 Shodan into this and was able to map it. So what you see is 129 00:10:16,480 --> 00:10:18,720 approximate location, latitude, longitude. 130 00:10:19,100 --> 00:10:23,040 The range is their RSSI that they saw. 131 00:10:24,040 --> 00:10:27,280 And that's like in meters. So it's really far away 132 00:10:27,280 --> 00:10:31,240 according to this one example. But as 133 00:10:31,240 --> 00:10:35,300 proof of point we just loaded up inside of Google Earth 134 00:10:35,300 --> 00:10:39,240 and that's where it roughly is. And this is in 135 00:10:39,240 --> 00:10:42,640 Zurich, Switzerland. So we saw one access point 136 00:10:43,600 --> 00:10:45,500 in Zurich, Switzerland nearby. 137 00:10:46,240 --> 00:10:50,480 Of course what I want to do is then make a big Google Earth 138 00:10:50,480 --> 00:10:53,980 image with everyone on it. So first we'll show the US. 139 00:10:54,280 --> 00:10:58,720 As you can see most major cities have lots of pins 140 00:10:58,720 --> 00:11:01,820 near them. And then one offs here and there. 141 00:11:03,920 --> 00:11:06,660 So of course we're here in Las Vegas. So let's go 142 00:11:06,660 --> 00:11:09,880 ahead and look and see if there's anything in Las Vegas. There's actually only one. 143 00:11:10,740 --> 00:11:11,260 Um 144 00:11:13,480 --> 00:11:15,200 Flamingo, Caesars, and 145 00:11:16,480 --> 00:11:20,080 down there is Breath-O-Meter in a parking lot. 146 00:11:21,420 --> 00:11:24,560 So that's a neighboring wireless access point. 147 00:11:24,780 --> 00:11:28,520 We could go over there. I guarantee you we can probably see this access point over there. 148 00:11:28,620 --> 00:11:32,180 Does that help us with finding the actual Sonos device? 149 00:11:32,540 --> 00:11:36,560 No. So we're going to go through an example here that's a little bit more 150 00:11:36,560 --> 00:11:40,680 easy. Earlier in the year I gave a version of this presentation 151 00:11:40,680 --> 00:11:42,260 over Hack in the Box in Amsterdam. 152 00:11:44,280 --> 00:11:48,560 So that's in Europe. Which as you can see Europe looks better 153 00:11:48,560 --> 00:11:52,640 than the US from an exposed stance. But it's not. It's just closer together. There's more 154 00:11:52,640 --> 00:11:56,560 of these in the US. And again these are only the Sonos 155 00:11:56,560 --> 00:12:00,660 devices not the Bose. But we'll walk through that same process. 156 00:12:00,840 --> 00:12:04,080 You can do that with the Bose devices as well. 157 00:12:04,600 --> 00:12:08,440 So if we go into Amsterdam you can start seeing a 158 00:12:08,440 --> 00:12:10,560 cluster around a device. 159 00:12:11,760 --> 00:12:13,740 And of course while I was there 160 00:12:15,160 --> 00:12:18,500 Hack in the Box is held a couple blocks 161 00:12:18,500 --> 00:12:22,400 away. I actually walked to this area. I was able to see these 162 00:12:22,400 --> 00:12:26,520 access points. And you can start figuring out kind of who around 163 00:12:26,520 --> 00:12:29,160 there may have an exposed speaker. 164 00:12:32,600 --> 00:12:34,560 So we're going to do kind of a walk through 165 00:12:34,560 --> 00:12:38,300 of a really really good one I did. And this is we've identified 166 00:12:38,300 --> 00:12:41,180 this person. We notified this person that this was going on. 167 00:12:41,660 --> 00:12:46,220 And they have since removed their speakers. So if you look 168 00:12:46,220 --> 00:12:50,180 in the state of Colorado. Found several devices. Map 169 00:12:50,180 --> 00:12:52,500 those. Here's the plot from that Google Earth. 170 00:12:53,960 --> 00:12:58,280 The person is somewhere in there. One of the best things 171 00:12:58,280 --> 00:13:01,740 is he had his email address shown 172 00:13:02,560 --> 00:13:06,340 via the Pandora account. So you just look up his email 173 00:13:06,340 --> 00:13:09,860 address in Pitbull. And now we have where he is. 174 00:13:10,060 --> 00:13:14,120 Who he is. Name and everything. So then we go 175 00:13:14,120 --> 00:13:18,000 through the family tree now or any other 176 00:13:18,000 --> 00:13:20,960 public records. Here's his current address and last address. 177 00:13:21,700 --> 00:13:26,060 So then if we map the current address in there. There's the red dot 178 00:13:26,060 --> 00:13:28,900 in the middle of all that. See it down there? 179 00:13:29,920 --> 00:13:34,180 The bottom towards the century link. So with 180 00:13:34,180 --> 00:13:38,140 high probability because he saw all these access points 181 00:13:38,140 --> 00:13:41,800 and that's when somebody wardrobe it. We were really close 182 00:13:41,800 --> 00:13:45,520 in that cluster of where that address is. And now we have a person. 183 00:13:45,840 --> 00:13:49,280 We have a name. And what's the next thing I want to know? 184 00:13:49,480 --> 00:13:51,680 What does he like? He likes hair metal. 185 00:13:55,560 --> 00:13:57,620 So from this we were able to 186 00:13:57,620 --> 00:14:00,660 pull what's currently playing via the API. 187 00:14:00,660 --> 00:14:04,480 At any point in time just query it and it will tell you 188 00:14:04,480 --> 00:14:08,560 what's being played. So what this does is you can 189 00:14:08,560 --> 00:14:12,560 start scripting this. To start pulling this and figuring out what the person likes. 190 00:14:13,820 --> 00:14:16,480 The other thing from a potential attack 191 00:14:16,480 --> 00:14:19,420 stance is so we can 192 00:14:20,160 --> 00:14:23,540 know more about the person that we can craft an email 193 00:14:24,620 --> 00:14:28,180 about what their likes are. We have their email address. 194 00:14:28,180 --> 00:14:31,940 We know they own a Sonos speaker so we can target an email that's from 195 00:14:31,940 --> 00:14:36,220 one of their favorite bands for more likelihood to get a click. 196 00:14:37,960 --> 00:14:39,580 So we'll go through that same process 197 00:14:40,100 --> 00:14:43,600 with a Bose. So this is the port 8080. 198 00:14:43,820 --> 00:14:47,880 Not the 8090 which is a different that we showed earlier. But if you go to 199 00:14:47,880 --> 00:14:50,700 8080 it shows you. They only show you the 200 00:14:52,400 --> 00:14:55,880 SSID not the BSSID. Luckily Wiggle 201 00:14:55,880 --> 00:14:58,340 lets you search based off of SSID too. 202 00:15:00,420 --> 00:15:03,880 And you can actually search based off of SSID and Alexander 203 00:15:03,880 --> 00:15:07,860 Malinkoff's how they're just doing it in a different approach 204 00:15:07,860 --> 00:15:09,980 to show you that there's multiple ways to do this. 205 00:15:11,360 --> 00:15:15,860 And so that one's there. And here's an example of pulling the same 206 00:15:15,860 --> 00:15:19,500 information from the Bose API versus the 207 00:15:20,380 --> 00:15:23,760 Sonos API. In this case they like the eagle's 208 00:15:23,760 --> 00:15:25,160 lion eyes in this one case. 209 00:15:25,960 --> 00:15:29,500 So that got me thinking. Has anyone ever done this before? 210 00:15:29,860 --> 00:15:31,840 Has there been anything like this before? 211 00:15:33,840 --> 00:15:37,300 So then I was reading on one of the Sonos 212 00:15:37,880 --> 00:15:41,880 user group forums. Somebody was complaining that there was 213 00:15:41,880 --> 00:15:45,080 these loud sounds of ghosts and creaking doors 214 00:15:45,920 --> 00:15:49,560 throughout the night at random intervals playing in their house. 215 00:15:51,160 --> 00:15:53,180 And I was like that's strange. 216 00:15:54,480 --> 00:15:55,360 There's actually 217 00:15:55,880 --> 00:15:58,920 a GitHub page. The thing's called ghostly. 218 00:16:00,700 --> 00:16:03,240 And you can just point it to an IP address. 219 00:16:03,600 --> 00:16:06,880 It hosts songs locally and spins up a web server. 220 00:16:07,800 --> 00:16:11,920 And then plays at random intervals a ghostly 221 00:16:11,920 --> 00:16:15,800 sound, creaking doors. And this is at random volumes as well on 222 00:16:15,800 --> 00:16:18,920 the Sonos speaker. So it can be really quiet 223 00:16:19,460 --> 00:16:22,360 at 3 a.m. or it can be at full volume at 3 a.m. 224 00:16:24,120 --> 00:16:26,060 So I was like so hang on. 225 00:16:26,600 --> 00:16:29,980 I can play a song I'm hosting 226 00:16:31,580 --> 00:16:34,500 on a Sonos speaker. All I have to do 227 00:16:34,500 --> 00:16:38,340 is spin up a web server and point it to and say 228 00:16:38,340 --> 00:16:42,300 to the Sonos speaker play this song on this web server. Because that's all this is 229 00:16:42,300 --> 00:16:46,340 doing. It just in the script controls the timing 230 00:16:46,340 --> 00:16:50,200 randomly. Alright that's interesting. So I did that. 231 00:16:51,780 --> 00:16:53,880 So I wrote a real quick 232 00:16:53,880 --> 00:16:58,040 version using an Alexa command. Because what I was 233 00:16:58,040 --> 00:17:01,720 going to try was does Alexa accept volume 234 00:17:01,720 --> 00:17:06,020 you know like computer generated sound clips. So I 235 00:17:06,020 --> 00:17:09,540 just used the say command in the Mac or speak, you speak 236 00:17:10,050 --> 00:17:13,280 on Linux or whatever you want to do this with. There's online utilities. 237 00:17:14,380 --> 00:17:18,020 So can I get Alexa to do something from a Sonos speaker? 238 00:17:18,880 --> 00:17:20,040 And you guys are probably 239 00:17:20,200 --> 00:17:23,360 imagining. There is a demo here. I don't know if there will be sound. 240 00:17:33,720 --> 00:17:37,660 I guess there's not sound that I can use 241 00:17:38,200 --> 00:17:41,640 nearby is there? Does anyone know? Okay. 242 00:17:41,960 --> 00:17:46,100 Anyway what I'm doing here is playing on the Sonos 243 00:17:46,100 --> 00:17:49,680 a sound that I recorded that said Alexa what time is it? 244 00:17:50,200 --> 00:17:52,480 Alexa then as you saw there lights up. 245 00:17:54,720 --> 00:17:58,040 Play it again so you can see it. At least visual cues. 246 00:17:58,240 --> 00:18:01,440 And if you want to see these demos I have a YouTube video. I'll link. 247 00:18:03,340 --> 00:18:05,700 So there it is. It responds. It's 3 15 248 00:18:05,700 --> 00:18:10,300 p.m. So that's interesting. 249 00:18:12,060 --> 00:18:14,080 So Bose allows you to do the same 250 00:18:14,080 --> 00:18:17,780 thing. It's playing a URL via the Python libraries 251 00:18:17,780 --> 00:18:21,600 sound touch which these Bose devices were sound touches. 252 00:18:22,360 --> 00:18:25,340 You can point it to an MP3. Same thing. 253 00:18:26,100 --> 00:18:28,020 So it doesn't have to be just a Sonos. 254 00:18:29,960 --> 00:18:33,520 So then I was looking at the API and I found this field here 255 00:18:33,520 --> 00:18:36,920 for next. In this case it's highlighted. 256 00:18:38,200 --> 00:18:41,760 So the commands are in clear text. Literally just 257 00:18:41,760 --> 00:18:46,000 says next. So there's play, stop, play, pause, stop, 258 00:18:46,000 --> 00:18:49,040 next. And you can also adjust the volume via the API. 259 00:18:49,960 --> 00:18:53,860 But one of the fields I also looked at was the field 260 00:18:53,860 --> 00:18:56,780 called RunCon. Is it? Yeah. 261 00:18:58,660 --> 00:19:00,560 And so I wrote this quick script. 262 00:19:01,940 --> 00:19:05,980 More or less just copied and pasted because of course there's 263 00:19:05,980 --> 00:19:10,060 no unique identifiers or anything like that for session IDs so it replays work. 264 00:19:10,640 --> 00:19:11,500 Because why not? 265 00:19:14,720 --> 00:19:15,700 Fuzzed a little bit 266 00:19:15,700 --> 00:19:19,320 inside of the field itself. So I looked at the 267 00:19:19,320 --> 00:19:23,280 RunCon field which is a device ID type 268 00:19:23,280 --> 00:19:26,440 as we saw earlier in one of those screenshots. 269 00:19:27,720 --> 00:19:31,120 And once we did that, the next slide of course, 270 00:19:31,180 --> 00:19:35,020 there will be no sound. So what happens is there's sound. It's playing. 271 00:19:35,320 --> 00:19:38,540 Blah, blah, blah, blah. I run the command here 272 00:19:39,840 --> 00:19:41,500 for the next track. 273 00:19:42,180 --> 00:19:44,100 This is me playing with the next track. 274 00:19:44,300 --> 00:19:50,340 So what we were able to do here is while 275 00:19:50,340 --> 00:19:54,100 there's a cue, you can actually just tell 276 00:19:54,100 --> 00:19:57,080 the next song. So it's just playing with the API here. 277 00:19:57,720 --> 00:20:02,300 But one of the interesting things I found about when you start playing with this API 278 00:20:02,300 --> 00:20:05,080 is there's no input validation on many of the fields. 279 00:20:06,500 --> 00:20:09,460 So then what I did was I fuzzed those fields. 280 00:20:09,580 --> 00:20:12,800 So the next one it skipped the track and then I run 281 00:20:12,800 --> 00:20:16,200 what I call an exploit. But it kind of is but it's not. 282 00:20:16,400 --> 00:20:20,300 And the speaker stops playing. It actually takes itself off the network completely 283 00:20:20,300 --> 00:20:24,600 and sometimes reboots. A lot of times I had to manually reboot my 284 00:20:24,600 --> 00:20:28,940 speaker to get it back on. So it sends out 285 00:20:28,940 --> 00:20:33,060 at the very end, like right as it's crashing, it takes itself 286 00:20:33,060 --> 00:20:36,860 out of the MDNS announcements and says I'm no longer here. 287 00:20:37,060 --> 00:20:40,240 So it'll actually disjoin from other speakers that are playing. 288 00:20:41,620 --> 00:20:45,280 Sorry, there was no sound. In that speaker 289 00:20:45,280 --> 00:20:49,280 thing, this was a, we released this in December 290 00:20:49,280 --> 00:20:52,520 and there was some press. During that video, there was a 291 00:20:52,980 --> 00:20:56,960 point where I went from epic sax 292 00:20:56,960 --> 00:21:00,680 guy and I sit next and it went to Rick Isley. 293 00:21:00,840 --> 00:21:01,340 Um 294 00:21:03,060 --> 00:21:06,880 and this is the headline that Wired came up with, that people can Rick roll your speakers. 295 00:21:07,140 --> 00:21:11,060 Not that they can be crashed or anything like that, but that they can Rick 296 00:21:11,060 --> 00:21:13,740 roll your speakers. I thought that was funny. 297 00:21:15,480 --> 00:21:19,000 So one of the next few things that we were looking at, so now that I've 298 00:21:19,000 --> 00:21:23,200 done all this, is let's get down to looking at the device. 299 00:21:23,340 --> 00:21:27,060 I don't know if there's any hardware people here. I failed at all hardware 300 00:21:27,060 --> 00:21:31,160 attempts on this one. So this is kind of just a hey, if you have time 301 00:21:31,160 --> 00:21:34,460 and you want to pursue this, please continue. 302 00:21:35,780 --> 00:21:39,040 So you take off the RF cage. This was a fun device. 303 00:21:39,180 --> 00:21:41,200 I don't know if anyone here has ever taken apart a speaker. 304 00:21:42,620 --> 00:21:47,020 But they pay a lot of attention to vibrations. There's a lot of hot glue 305 00:21:47,020 --> 00:21:51,140 everywhere. Foam and things like that you have to deal with when you're taking 306 00:21:51,140 --> 00:21:55,140 it apart. I have one speaker. I lost screws and now 307 00:21:55,140 --> 00:21:59,200 it blows air out the RJ45 on the back. 308 00:21:59,320 --> 00:22:01,140 So I just put a little piece of tape on it. Sounds good. 309 00:22:01,160 --> 00:22:03,480 As long as you don't turn up the volume very loud. 310 00:22:07,040 --> 00:22:09,020 So just normal stuff. 311 00:22:09,160 --> 00:22:12,540 Looking at chips. There's actually two versions 312 00:22:13,440 --> 00:22:17,000 of the Play Ones. One of which is 313 00:22:17,000 --> 00:22:21,160 the ARM chip that you see. And then they also have 314 00:22:21,160 --> 00:22:25,240 a PowerPC version. I don't have a picture of the PowerPC chip. I do have a PowerPC 315 00:22:25,240 --> 00:22:29,320 version, though. The firmware updates are the same. 316 00:22:29,520 --> 00:22:31,140 Functionality is all the same between the two. 317 00:22:31,160 --> 00:22:33,700 But there is two different chip sets that they've used. 318 00:22:35,380 --> 00:22:38,300 So I tried to probe around to see if I could find anything. 319 00:22:38,800 --> 00:22:42,660 But no data was easily found. Then I started looking harder. 320 00:22:43,200 --> 00:22:47,120 I think that's a UART. But all the pins are dead on it. 321 00:22:49,420 --> 00:22:51,500 So then we looked at that one. 322 00:22:51,560 --> 00:22:55,000 That's obviously a JTAG. 16 pin JTAG. 323 00:22:56,020 --> 00:22:57,280 All the pins were dead. 324 00:22:59,400 --> 00:23:01,180 And then, of course, 325 00:23:01,200 --> 00:23:05,340 because the chips are... That's why I was doing the probing as well. 326 00:23:05,480 --> 00:23:09,280 Because I couldn't find where the JTAG actually was mapping to. 327 00:23:11,860 --> 00:23:13,720 This is underneath the wireless card. 328 00:23:14,220 --> 00:23:17,180 There's some ports there that had some data. 329 00:23:17,280 --> 00:23:20,660 Also possibly JTAG is what we led it to. 330 00:23:20,800 --> 00:23:24,340 We could never get it to fully be what we wanted. 331 00:23:24,340 --> 00:23:26,640 Or get any of the information off of it. 332 00:23:26,840 --> 00:23:31,040 This one did have data on it. I've played with the mappings and things like that. 333 00:23:31,140 --> 00:23:33,240 Just could never get any of the information off of it. 334 00:23:35,140 --> 00:23:39,480 This one was interesting. We think it's a possible SWD. 335 00:23:40,600 --> 00:23:42,520 In fact, popped into the SLA. 336 00:23:43,800 --> 00:23:47,880 As SWD played with it, it sees data. Just nothing good. 337 00:23:50,540 --> 00:23:52,380 And big shout out to my friend 338 00:23:52,380 --> 00:23:56,240 Kevin Finisterre actually helped on this. And he couldn't find anything either. 339 00:23:56,800 --> 00:23:59,340 So it was kind of a dead road from our stance. 340 00:23:59,700 --> 00:24:03,380 I didn't want to put a lot of time in it. But I would really like to see somebody take this 341 00:24:03,380 --> 00:24:05,640 and figure out some of this. 342 00:24:07,780 --> 00:24:12,380 In fact, I even did a probe with my STM32F4 343 00:24:13,100 --> 00:24:16,020 discovery board. And as you can see that 344 00:24:16,020 --> 00:24:19,820 I see it. There's a serial number for the device. I changed the pins 345 00:24:19,820 --> 00:24:23,340 to make it discover the board. Yeah, nothing there. 346 00:24:26,340 --> 00:24:27,780 So one of the things that we 347 00:24:27,780 --> 00:24:31,920 were able to do is be able to report this to Bose and to Sonos. 348 00:24:33,200 --> 00:24:35,580 Sonos has fixed numerous amount 349 00:24:35,580 --> 00:24:38,880 of the issues. Most of the major issues have been fixed. 350 00:24:40,360 --> 00:24:43,920 There's been the denial of service attack has been resolved. 351 00:24:44,440 --> 00:24:47,300 There is some input validation on those fields. 352 00:24:47,420 --> 00:24:49,720 At least that field. I haven't played with any of the other 353 00:24:49,820 --> 00:24:53,000 fields. But I'm hoping they fixed it appropriately. 354 00:24:54,560 --> 00:24:57,300 Bose, on the other hand, didn't really respond a bunch. 355 00:24:58,420 --> 00:25:01,740 But on Sonos, here is the new, what you see 356 00:25:01,740 --> 00:25:05,600 now when you go to the status page. 357 00:25:06,620 --> 00:25:09,800 A shorter version. And again, the counts 358 00:25:09,800 --> 00:25:13,640 is there. But the email address, all the fields that were email addresses 359 00:25:13,640 --> 00:25:16,620 have been masked. So it's a really good 360 00:25:17,680 --> 00:25:19,800 disclosure. And Sonos fixed it. 361 00:25:19,820 --> 00:25:23,720 It was actually pretty frustrating because I was in the middle of trying to shoot 362 00:25:23,720 --> 00:25:27,040 those videos in the YouTube video that I made. 363 00:25:27,460 --> 00:25:31,580 And it forced me to do an update, which fixed the problems. 364 00:25:32,100 --> 00:25:35,040 So I had to go buy another one and not let it update. 365 00:25:35,440 --> 00:25:39,760 But from what I understand now, before you can even connect to the app to it, 366 00:25:39,840 --> 00:25:43,520 it forces you to do firmware updates. So good on Sonos again 367 00:25:43,520 --> 00:25:45,480 for fixing that and making people update. 368 00:25:50,240 --> 00:25:53,640 Before I ran the exploit for next track, it crashed things. 369 00:25:53,900 --> 00:25:56,600 Now I thought this was actually pretty interesting. 370 00:25:56,960 --> 00:25:58,940 They give you a 412 error back. 371 00:25:59,160 --> 00:26:00,960 I had to actually look it up. It's a precondition failed. 372 00:26:01,160 --> 00:26:05,080 What that means is one of the conditions that I was giving it, in that case, 373 00:26:05,100 --> 00:26:09,060 a bad rank on. Didn't like it. So they give you a 412 374 00:26:09,060 --> 00:26:12,820 error code back. And then close the connection. 375 00:26:16,240 --> 00:26:17,780 Before I came out here, 376 00:26:17,920 --> 00:26:21,660 I looked at Sonos devices on Shodan. 377 00:26:21,800 --> 00:26:25,380 So just an update. As of August 8th, 378 00:26:25,380 --> 00:26:28,220 there was 4,494 Sonos devices online. 379 00:26:29,600 --> 00:26:32,660 There's always, as I said earlier, roughly around 5,000. 380 00:26:32,680 --> 00:26:34,180 In between 4,000 and 5,000. 381 00:26:36,460 --> 00:26:41,340 Bows, there's always around 1,000. Again, when I said there seems to be 382 00:26:41,340 --> 00:26:42,140 less of those. 383 00:26:43,340 --> 00:26:46,620 Than there. So I, you know, I don't know if the 384 00:26:46,620 --> 00:26:50,600 people are just not exposing it. Their UPnP is not poking as many 385 00:26:50,600 --> 00:26:53,900 holes or whatever. But they're there. 386 00:26:54,180 --> 00:26:58,520 Again, bows never really responded. I think they were fixing 387 00:26:58,520 --> 00:27:01,580 problems, but they never officially responded to us on this. 388 00:27:02,280 --> 00:27:06,720 One thing that I thought was very interesting, and it makes 389 00:27:06,720 --> 00:27:10,600 sense, but one of the biggest problems we have is 390 00:27:10,600 --> 00:27:14,240 you can still do next. You can still do all that stuff. You can still pull 391 00:27:14,240 --> 00:27:17,940 information from other devices about what people are listening to. 392 00:27:19,080 --> 00:27:22,560 What's their favorite radio stations. All the presets. You can pull 393 00:27:22,560 --> 00:27:26,480 that information out. You know, one of the things that I would 394 00:27:26,480 --> 00:27:30,540 look for in this is to see, does anybody in here 395 00:27:30,540 --> 00:27:34,300 have a Philips Hue? You know, when you have a Philips Hue, you have to hit the button 396 00:27:34,300 --> 00:27:38,460 now to authenticate the API. And you get an API 397 00:27:38,460 --> 00:27:38,820 key. 398 00:27:40,600 --> 00:27:44,560 In this case, bows and Sonos have both responded more or less 399 00:27:44,560 --> 00:27:48,440 saying that it's an open API and they plan on never doing any 400 00:27:48,440 --> 00:27:52,140 authentication with any of the end devices that can control it. 401 00:27:52,500 --> 00:27:56,520 And I think about, go back to that case with the ghostly hack. And that 402 00:27:56,520 --> 00:28:00,560 could be prevented if you could just stop, you know, only authenticated 403 00:28:00,560 --> 00:28:04,660 devices at the end. Which I felt like they were trying 404 00:28:04,660 --> 00:28:08,180 to do a little bit. Because now when you try to set one up, it makes you put it, 405 00:28:08,240 --> 00:28:09,760 you have to press two buttons. 406 00:28:10,600 --> 00:28:14,500 For it to go fully into setup mode, which I think enables a lot of those 407 00:28:14,500 --> 00:28:17,700 pages to then be able to be searched. 408 00:28:18,920 --> 00:28:21,920 That's what I feel like what's going on. I haven't really validated that one. 409 00:28:23,620 --> 00:28:26,140 So if they could just do something like that where then 410 00:28:26,140 --> 00:28:29,840 it lets you grab an API key and then we can authenticate. 411 00:28:30,060 --> 00:28:34,240 And then most of everything goes away. You know, well of course there's still 412 00:28:34,240 --> 00:28:38,380 some faking of the, if it's in clear text and stuff like that because it's only 413 00:28:38,380 --> 00:28:42,360 over HTTP and not HTTPS. So there's still little things here and there 414 00:28:42,360 --> 00:28:46,500 that we could fix. But I don't want to be that guy in Colorado 415 00:28:46,500 --> 00:28:49,680 where I know more about his life just because of his speaker 416 00:28:50,280 --> 00:28:52,220 than I should know. So. 417 00:28:53,680 --> 00:28:57,300 Just running a little bit quick. But if you have any questions, I'll be around. 418 00:28:58,900 --> 00:29:02,340 Find me on Twitter or anything else. If anyone has any 419 00:29:02,340 --> 00:29:05,880 questions, go ahead and start shouting them up at me or 420 00:29:06,700 --> 00:29:07,580 we'll meet up here. 421 00:29:09,600 --> 00:29:12,240 Thanks guys. One more thing. 422 00:29:13,680 --> 00:29:15,720 Jaisal from ZDI is giving out some 423 00:29:16,460 --> 00:29:20,160 challenge coins from ZDI and he wants to get rid of them. So if you want one, go see Jaisal. 424 00:29:20,220 --> 00:29:21,760 Second row. Thank you everyone.