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