Hey, everyone. My name is Steven Hiltz. I work at Trend Micro. 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. I'm going to take a threat angle to some Internet-connected speakers that we looked at. Those speakers themselves, we started with the Sonos and the Bose. 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 because I kept just crashing it and doing a bunch of other stuff. So work ended up buying me one. So I have two. Actually, I have five now. Because they're actually really nice and they're really good to have. The Bose are equally as nice. Same kind of issues but these are the two that we're going to predominantly talk about. There are other vendors, of course, that are playing in the spectrum, such as the Apple new one as well. So first thing I did when I bought the device, I scanned it on my network to see what ports were open. Which is pretty basic things for what I normally like to do. I like to know what's on my network. I actually have these on an Internet of shit network that I have. So they don't have a lot of information on them. So I'm going to talk to my normal stuff. So then the next thing I did, has anyone else ever done anything with this? So there was an in-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. So then I was like, how is it pulling this information? And when you look at the script, it goes to the IP address of the destination. Port 1400. Slash status and then slash ZP or ZL, depending on the model. And it will pull a bunch of information from this page. So that made me think, okay, what else is out there? So when we looked at the slash status page, there's all these different pages. Such as accounts, system settings, preferences, CPU mon, IP configuration, IP address, IP address, IP config. Net stats, arp tables. All this information just right here. All you have to do is click on it. It brings up some information. There's actually a hidden debug tool that's pretty neat. That's under slash tools, HTM. And you can do a ping. So one of the things that was fun to do is you can find these exposed online. We will get there in a minute. But you type in the internal IP address range and you can do a broadcast ping and it will pull a bunch of information. So that was anything that responds to broadcast pings, so more or less now from the Internet connected speaker in this tool page, I have now profiled your internal network. I know what else you have. It prints back, you know, the ARPs and things like that. You can do tracer out, see how far back they are in the network, see where things are. You can do an NS lookup. Maybe they're pointing to an internal DNS server if it's in a, inside of a company. A lot of these are exposed on university networks. And you'll see that that's kind of fun. You can start probing their internal DNS just by using this device. And then the MDNS announces. So here's an example of doing a broadcast ping on an internal network as you see. One ping, lots of responses. Then you can pull over and you look up the ARP table. Now all these devices are in that ARP table that was on that main page. So we worked with John Matherly and Shodan. And we were able to get a lot of data out of the ARP table to get these imported into Shodan. And this was back last year. There was roughly 4,000 devices. This bounces between 4,000 to 5,000 normally depending on when he crawled. But it's usually right around always in that number. U.S. being the number one place. And then always followed by Sweden, Belgium and then the Netherlands. Norway here too. 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. The Sonos Play one which is the ones that are sitting out here everywhere around the room. If you hadn't noticed, there's one right here up on this table by Eric. That's the most predominant one. 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. What I found was much better. I was able to get a lot of data out most interesting, this was right after the Playbase came out, like by three weeks, and there had already been 16 exposed online. So as people are buying these, they're getting a lot and a lot, and they're just putting them online. How they're getting online is they actually do UPnP to a little bit. So if your router supports UPnP, it's going to poke a hole for the port 1400. There's also cases where people want to be able to control their speakers remotely, and there is an API. We'll discuss that. But again, we wanted to talk about those as well. So we found a way to profile those online. It's port 8090 is their main config page, and it uses the Allegro software rom pager version. And the highest we've seen it is roughly around 1,000. So they're not as popular, but they're a little bit more popular than the other ones available now. It's based on these numbers exposed online. I don't know if it's less popular of a speaker to buy. I think it is internationally. So we're going to talk about some of the information leakage that's coming off these devices. And so you can see here, a lot of stuff is blurred, and some things have changed a little bit. This is one of my own that I made, but kind of shows you the information, like what type of phones have connected to it. So just in case, I have an iPhone. And it does have a built-in buffer. So you can see that on the front phone. And mine is mobile iPhone. But it usually will have the name there, say if it's Aaron's iPhone. Now I know her name is Aaron. She has an iPhone. And she connects her Sonos to it. Other interesting pieces of information about that is there's the description XML file that you can see. It kind of gives a description of the actual device. So up at the top those are the two speakers that I had. And then below that the media servers or anything that's connected to it. So that also will include computers, not just mobile devices. So if you connect a computer to it, it will tell you the little bit of information about the computer itself. This one is the accounts page. And of course this one is mine from my local one. But it has my gmail account. From my local there. There's a lot of information for, in that case, that is for Pandora. There's random tokens for Spotify and for iHeartRadio as well. So you just have to, kind of interesting information when you look at these. The e-mail 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 you are. This has since been masked. And we'll talk about the disclosure pieces. Here's the information leakage on the Bose. As you can see here, there's some good information. In this case, it came from SVT.SE. This is actually a journalist's Bose device that is exposed online. We've since worked with them to remove it. So. So that's a little bit of information there. We felt like maybe media people shouldn't have their devices exposed online. Especially when you can put more information in and figure out information about the person. One of the things that I like about the Bose is on this page it will actually tell you how it's connected. Bose actually does Bluetooth where the Sonos doesn't. So you can see if a device is connected via Bluetooth and auxiliary port which again the Sonos doesn't have. You can do that over Wi-Fi or Ethernet only. So there's several different ways of listening to a Bose. And you can see how they've connected it. The next piece of information that I found really interesting was the scan results page. At first I was like scan results. I'll come back to that one later. But it turns out it's running the ATH config scan results command. So to find the neighboring access points. So what this does is pretty interesting. It gives you the BSSID, the SSID and the signal strength right there. 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. So this shouldn't actually be disabled since I've already connected it. But with the BSSID we started looking for information online. So there's this really good Alexander Malinkoff has a really good website where he pulls a bunch of information from all the scan results from all the word driving and puts it into one API you can use. You're limited based off cloud flair from doing a bunch. So if you want to go around that, just find the real IP like I did. And then hard code that in your host table. And then I populated everything from Shodan into this and was able to map it. So what you see is approximate location, latitude, longitude. The range is their RSSI that they saw. And that's like in meters. So it's really far away according to this one example. But as proof of point we just loaded up inside of Google Earth and that's where it roughly is. And this is in Zurich, Switzerland. So we saw one access point in Zurich, Switzerland nearby. Of course what I want to do is then make a big Google Earth image with everyone on it. So first we'll show the US. As you can see most major cities have lots of pins near them. And then one offs here and there. So of course we're here in Las Vegas. So let's go ahead and look and see if there's anything in Las Vegas. There's actually only one. Um Flamingo, Caesars, and down there is Breath-O-Meter in a parking lot. So that's a neighboring wireless access point. We could go over there. I guarantee you we can probably see this access point over there. Does that help us with finding the actual Sonos device? No. So we're going to go through an example here that's a little bit more easy. Earlier in the year I gave a version of this presentation over Hack in the Box in Amsterdam. So that's in Europe. Which as you can see Europe looks better than the US from an exposed stance. But it's not. It's just closer together. There's more of these in the US. And again these are only the Sonos devices not the Bose. But we'll walk through that same process. You can do that with the Bose devices as well. So if we go into Amsterdam you can start seeing a cluster around a device. And of course while I was there Hack in the Box is held a couple blocks away. I actually walked to this area. I was able to see these access points. And you can start figuring out kind of who around there may have an exposed speaker. So we're going to do kind of a walk through of a really really good one I did. And this is we've identified this person. We notified this person that this was going on. And they have since removed their speakers. So if you look in the state of Colorado. Found several devices. Map those. Here's the plot from that Google Earth. The person is somewhere in there. One of the best things is he had his email address shown via the Pandora account. So you just look up his email address in Pitbull. And now we have where he is. Who he is. Name and everything. So then we go through the family tree now or any other public records. Here's his current address and last address. So then if we map the current address in there. There's the red dot in the middle of all that. See it down there? The bottom towards the century link. So with high probability because he saw all these access points and that's when somebody wardrobe it. We were really close in that cluster of where that address is. And now we have a person. We have a name. And what's the next thing I want to know? What does he like? He likes hair metal. So from this we were able to pull what's currently playing via the API. At any point in time just query it and it will tell you what's being played. So what this does is you can start scripting this. To start pulling this and figuring out what the person likes. The other thing from a potential attack stance is so we can know more about the person that we can craft an email about what their likes are. We have their email address. We know they own a Sonos speaker so we can target an email that's from one of their favorite bands for more likelihood to get a click. So we'll go through that same process with a Bose. So this is the port 8080. Not the 8090 which is a different that we showed earlier. But if you go to 8080 it shows you. They only show you the SSID not the BSSID. Luckily Wiggle lets you search based off of SSID too. And you can actually search based off of SSID and Alexander Malinkoff's how they're just doing it in a different approach to show you that there's multiple ways to do this. And so that one's there. And here's an example of pulling the same information from the Bose API versus the Sonos API. In this case they like the eagle's lion eyes in this one case. So that got me thinking. Has anyone ever done this before? Has there been anything like this before? 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. And I was like that's strange. There's actually a GitHub page. The thing's called ghostly. And you can just point it to an IP address. 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. So it can be really quiet at 3 a.m. or it can be at full volume at 3 a.m. So I was like so hang on. I can play a song I'm hosting on a Sonos speaker. 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. Because that's all this is doing. It just in the script controls the timing randomly. Alright that's interesting. So I did that. So I wrote a real quick version using an Alexa command. Because what I was going to try was does Alexa accept volume you know like computer generated sound clips. So I just used the say command in the Mac or speak, you speak on Linux or whatever you want to do this with. There's online utilities. So can I get Alexa to do something from a Sonos speaker? And you guys are probably imagining. There is a demo here. I don't know if there will be sound. I guess there's not sound that I can use nearby is there? Does anyone know? Okay. Anyway what I'm doing here is playing on the Sonos a sound that I recorded that said Alexa what time is it? Alexa then as you saw there lights up. Play it again so you can see it. At least visual cues. And if you want to see these demos I have a YouTube video. I'll link. So there it is. It responds. It's 3 15 p.m. So that's interesting. So Bose allows you to do the same thing. It's playing a URL via the Python libraries sound touch which these Bose devices were sound touches. You can point it to an MP3. Same thing. So it doesn't have to be just a Sonos. So then I was looking at the API and I found this field here for next. In this case it's highlighted. So the commands are in clear text. Literally just says next. So there's play, stop, play, pause, stop, next. And you can also adjust the volume via the API. But one of the fields I also looked at was the field called RunCon. Is it? Yeah. 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 IDs so it replays work. Because why not? Fuzzed a little bit inside of the field itself. So I looked at the RunCon field which is a device ID type as we saw earlier in one of those screenshots. And once we did that, the next slide of course, there will be no sound. So what happens is there's sound. It's playing. Blah, blah, blah, blah. I run the command here for the next track. This is me playing with the next track. So what we were able to do here is while there's a cue, you can actually just tell the next song. So it's just playing with the API here. 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. So then what I did was I fuzzed those fields. So the next one it skipped the track and then I run what I call an exploit. But it kind of is but it's not. And the speaker stops playing. It actually takes itself off the network completely and sometimes reboots. A lot of times I had to manually reboot my speaker to get it back on. 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. So it'll actually disjoin from other speakers that are playing. Sorry, there was no sound. In that speaker thing, this was a, we released this in December and there was some press. During that video, there was a point where I went from epic sax guy and I sit next and it went to Rick Isley. Um 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. I thought that was funny. 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. I don't know if there's any hardware people here. 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. So you take off the RF cage. This was a fun device. I don't know if anyone here has ever taken apart a speaker. But they pay a lot of attention to vibrations. There's a lot of hot glue everywhere. Foam and things like that you have to deal with when you're taking it apart. 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 long as you don't turn up the volume very loud. 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 PowerPC version. I don't have a picture of the PowerPC chip. I do have a PowerPC version, though. 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. So I tried to probe around to see if I could find anything. But no data was easily found. Then I started looking harder. I think that's a UART. But all the pins are dead on it. So then we looked at that one. That's obviously a JTAG. 16 pin JTAG. All the pins were dead. And then, of course, because the chips are... That's why I was doing the probing as well. Because I couldn't find where the JTAG actually was mapping to. This is underneath the wireless card. There's some ports there that had some data. Also possibly JTAG is what we led it to. We could never get it to fully be what we wanted. Or get any of the information off of it. This one did have data on it. I've played with the mappings and things like that. Just could never get any of the information off of it. This one was interesting. We think it's a possible SWD. In fact, popped into the SLA. As SWD played with it, it sees data. Just nothing good. And big shout out to my friend Kevin Finisterre actually helped on this. And he couldn't find anything either. 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. 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. Yeah, nothing there. So one of the things that we were able to do is be able to report this to Bose and to Sonos. Sonos has fixed numerous amount of the issues. Most of the major issues have been fixed. There's been the denial of service attack has been resolved. There is some input validation on those fields. At least that field. I haven't played with any of the other fields. But I'm hoping they fixed it appropriately. Bose, on the other hand, didn't really respond a bunch. But on Sonos, here is the new, what you see now when you go to the status page. A shorter version. And again, the counts is there. But the email address, all the fields that were email addresses have been masked. So it's a really good disclosure. And Sonos fixed it. It was actually pretty frustrating because I was in the middle of trying to shoot those videos in the YouTube video that I made. And it forced me to do an update, which fixed the problems. So I had to go buy another one and not let it update. But from what I understand now, before you can even connect to the app to it, it forces you to do firmware updates. So good on Sonos again for fixing that and making people update. Before I ran the exploit for next track, it crashed things. Now I thought this was actually pretty interesting. They give you a 412 error back. I had to actually look it up. It's a precondition failed. What that means is one of the conditions that I was giving it, in that case, a bad rank on. Didn't like it. So they give you a 412 error code back. And then close the connection. 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. There's always, as I said earlier, roughly around 5,000. In between 4,000 and 5,000. Bows, there's always around 1,000. Again, when I said there seems to be less of those. Than there. So I, you know, I don't know if the people are just not exposing it. Their UPnP is not poking as many holes or whatever. But they're there. Again, bows never really responded. I think they were fixing problems, but they never officially responded to us on this. 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 other devices about what people are listening to. What's their favorite radio stations. All the presets. You can pull that information out. You know, one of the things that I would look for in this is to see, does anybody in here have a Philips Hue? 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. In this case, bows 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. 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. 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. That's what I feel like what's going on. I haven't really validated that one. So if they could just do something like that where then it lets you grab an API key and then we can authenticate. And then most of everything goes away. You know, well 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. So there's still little things here and there that we could fix. 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. So. Just running a little bit quick. But if you have any questions, I'll be around. Find me on Twitter or anything else. If anyone has any questions, go ahead and start shouting them up at me or we'll meet up here. Thanks guys. One more thing. Jaisal from ZDI is giving out some challenge coins from ZDI and he wants to get rid of them. So if you want one, go see Jaisal. Second row. Thank you everyone.