start	end	text
0	6140	All right, hey everyone. My name is Stephen Hiltz. I work at Trend Micro. I'm a threat
6140	9660	researcher so this will be kind of a talk that's a little bit different than what you're
9660	15640	normally seeing in the IOT. I'm going to take a threat angle to some internet connected
15640	23900	speakers that we looked at. Those speakers themselves, we started with the Sonos and the
23900	29700	Bose. The reason why we chose the Sonos, I actually ended up buying my wife a Sonos
29700	34240	speaker once for her birthday and I started playing with it, got her really angry at me
34240	39960	pretty quickly. Because I kept just crashing it and doing a bunch of other stuff. So work
39960	46440	ended up buying me one. So I have two. Actually I have five now. Because they're actually
46440	53860	really nice and they're really good to have. The Bose are equally as nice. Same kind of
53860	58460	issues but these are the two that we're going to predominantly talk about. There are other
58460	68160	vendors, of course, that are playing in the spectrum such as the Apple new one as well. So
68160	73180	first thing I did when I bought the device, I scanned it on my network to see what ports
73180	78960	were open. Which is pretty basic things for what I normally like to do. I like to know
78960	85260	what's on my network. I actually have these on a internet of shit network that I have. So
85260	94720	they don't talk to my normal stuff. So then the next thing I did, has anyone else ever
94720	100840	done anything with this? So there was a map script for Sonos and it pulls a bunch of
100840	107200	information such as the zone name, MAC address, serial number, what version of firmware it
107200	112980	is. So then I was like how is it pulling this information? When you look at the script, it
112980	125480	goes to the IP address of the destination. Port 1400. Slash status and then slash ZP or ZL
125480	131200	depending on the model. And it will pull a bunch of information from this page. So that
131200	137500	made me think, okay, what else is out there? So when we looked at the slash status page,
137500	143700	there's all these different pages. Such as accounts, system settings, preferences, CPU
143700	151840	mon, IP config, net stats, ARP tables, all this information just right here. All you have to do
151840	157360	is click on it, it brings up some information. There's actually a hidden debug tool that's
157360	165700	pretty neat. It's under slash tools, HTM. You can do a ping. So one of the things that was fun
165700	170880	to do is you can find these exposed online. We'll get there in a minute. But you type in the
170880	175980	internal IP address range and you can do a broadcast ping and anything that responds to
175980	181380	broadcast pings. So more or less now from the internet connected speaker in this tool page, I
181380	186140	have now profiled your internal network. I know what else you have. It prints back the ARPs and
186140	192960	things like that. You can do tracer out, see how far back they are in the network. See where
192960	197700	things are. You can do an NS look up, maybe they're pointing to an internal DNS server if
197700	205840	it's inside of a company. A lot of these are exposed on university networks. And you'll see
205840	211580	that that's kind of fun. You can start probing their internal DNS just by using this device.
211680	217560	And then the MDNS announces. So here's an example of doing a broadcast ping on an internal
217560	224840	network. One ping, lots of responses. Then you can pull over and you look up the ARP table.
224840	231660	Now all these devices are in that ARP table that was on that main page. So we worked with John
231660	241100	Matherly and Shodan and we were able to get these imported into Shodan. And this was back last
241100	247360	year. There was roughly 4,000 devices. This bounces between 4 to 5,000 normally depending
247360	253980	on when he crawled. But it's usually right around always in that number. U.S. being the number one
253980	264360	place and then always followed by Sweden, Belgium and then the Netherlands. Norway here too. So I
264360	268280	kind of took some of that information and then we wanted to know which models were the most
268280	273240	important or most prevalent on the internet. The Sonos play one, which is the ones that are
273240	280720	sitting out here around the room. Notice there's one right here on this table by Eric. That's the
280720	286180	most predominant one. So this is just a validation that the one I had was a really good target to
286180	293300	start looking at versus did I choose the wrong one to see if there's any other issues. What I
293300	298860	found was most interesting, this was right after the play base came out. Like by three weeks. And
298860	306900	there had already been 16 exposed online. So as people are buying these, they're getting a lot
306900	313120	and a lot. And they're just putting them online. How they're getting online is they actually do
313120	320920	UPNP. To a little bit. So if your router supports UPNP, it's going to poke a hole through the
320920	328140	1400. There's also cases where people want to be able to control their speakers remotely. And
328140	336860	there's an API. We'll discuss that. But again, we wanted to talk about those as well. So we
336860	343060	found a way to profile those online. It's port 8090 is their main config page and it uses the
343060	349660	software ROM version. And the highest we've seen it is roughly around a thousand. So they're not
349660	356420	as popular. Based on these numbers exposed online. I don't know if it's less popular of a
356420	362120	speaker to buy. I think it is internationally. So we're going to talk about some of the
362120	367900	information leakage that's coming off these devices. And so you can see here a lot of stuff is
367900	374100	blurred and some things have changed a little bit. This is one of my own that I made that kind of
374100	380140	shows you the information. Like the what type of phones have connected to it. So just in case I
380140	387300	have an iPhone. And mine is mobile iPhone. But it usually will have the name there. Say if it's
387300	394640	Aaron's iPhone. Now I know her name is Aaron. She has an iPhone. And she connects her Sonos to
394640	402840	it. Other interesting pieces of information about that is there's the description XML file that you
402840	408360	can see. Kind of gives a description of the actual device. So up at the top, those are the two
408360	414200	speakers that I had. And then below that, the media servers or anything that's connected to it.
414200	420460	So that will include computers, not just mobile devices. So if you connect a computer to it, it
420460	428400	will tell you a little bit of information about the computer itself. This one is the accounts
428400	439140	page. And of course this one is mine from my local one. But it has my Gmail account for in that
439140	451500	case that is for Pandora. There's random tokens for Spotify and for iHeartRadio as well. So you
451500	457520	just have to kind of interesting information when you look at these. The email address was
457520	462800	going to prove in a couple of slides a pivotal point of information that I can have and
462800	470840	utilize to help profile who owns this speaker. This has since been masked. And we'll talk
470840	480000	about the disclosure pieces. Here's the information leakage on the Bose. You can see here
480000	486340	there's some good information. In this case it came from SVT.SE. This is actually a
487640	494960	journalist's Bose device that is exposed online. We've since worked with them to remove
494960	503720	it. So we felt like maybe media people shouldn't have their devices exposed online. Especially
503720	510480	when you can put more information in and figure out information about the person. One of the
510480	514560	things that I like about the Bose is on this page it will actually tell you how it's
514560	520720	connected. Bose actually does Bluetooth where the Sonos doesn't. So you can see if a device
520720	525040	is connected via Bluetooth and auxiliary port which again the Sonos doesn't have. You can do
525040	530200	that over Wi-Fi or Ethernet only. So there's several different ways of listening to a Bose and
530200	537620	you can see how they've connected it. The next piece of information that I found really
537620	542640	interesting was the scan results page. At first I was like scan results, I'll come back to that
542640	551960	one later. But it turns out it's running the ATH config scan results command. So to find the
551960	558100	neighboring access points. So what this does is pretty interesting. It gives you the BSSID,
558100	566820	the SSID and the signal strength right there. This is used during their setup process to show
566820	573200	you in your app when you're trying to connect it to what neighboring access points are. So this
573200	579060	shouldn't actually be disabled since I've already connected it. But with the BSSID we started
579060	585400	looking for information online. So there's this really good Alexander Malinkov has a really
585400	591520	good website where he pulls a bunch of information from all the scan results from all the
591520	597800	war driving and puts it into one API you can use. You're limited based off cloud flare from
597800	604020	doing a bunch. So if you want to go around that, just find the real IP like I did. And then
604020	613280	hard code that in your host table. And then I populated everything from Shodan into this and
613280	619740	was able to map it. So what you see here is approximate location, latitude, longitude. The
619740	627380	range is their RSSI that they saw. And that's like in meters. So it's really far away
627380	635480	according to this one example. But as proof of point we just loaded up inside of Google earth
636240	642380	and that's where it roughly is. And this is in Zurich, Switzerland. So we saw one access
642380	650300	point in Zurich, Switzerland nearby. Of course, what I want to do is then make a big Google
650300	655840	earth image with everyone on it. So first we'll show the U.S. As you can see most major
655840	665360	cities have lots of pins near them. And then one offs here and there. So of course we're here
665360	669040	in Las Vegas. So let's go ahead and look and see if there's anything in Las Vegas. There's
669040	681980	actually only one. Flamingo, Caesars and down there is breatho meter in a parking lot. So
681980	686900	that's a neighboring wireless access point. We could go over there. I guarantee you we can
686900	691560	probably see this access point over there. Does that help us with the finding the actual
691560	696680	SONOS device? No. So we're going to go through an example here that's a little bit more
696680	701980	easy. Earlier in the year I gave a version of this presentation over hack in the box in
701980	709520	Amsterdam. So that's in Europe. Which as you can see, Europe looks better than the U.S. from
709520	713180	an exposed stance. But it's not. It's just closer together. There's more of these in the
713180	718580	U.S. And again, these are only the SONOS devices, not the Bose. But we'll walk through
718580	725940	that same process. You can do that with the Bose devices as well. So if we go into
725940	733480	Amsterdam, you can start seeing a cluster around a device. And of course, while I was
733480	741720	there, hack in the box is held a couple blocks away. I actually walked to this area. I was
741720	746280	able to see these access points. And you can start figuring out kind of, you know, who
746280	754430	around there may have a Bose or an exposed speaker. So we're going to do kind of a walk
754430	759410	through of a really, really good one I did. And this is, we've identified this person. We
759410	764430	notified this person that this was going on. And they have since removed their SONOS
764430	770790	speakers. So if you look in the state of Colorado, found several devices, map those. Here's
770790	777810	the pot from that Google Earth. Guaranteed the person is somewhere in there. One of the
777810	785930	best things is he had his e-mail address shown via the Pandora account. So you just look
785930	793870	up his e-mail address and now we have where he is, who he is, name and everything. So then
793870	800370	we go through the family tree now or any other public records. Here's his current address and
800370	806510	last address. So then if we map the current address in there, there's the red dot in the
806510	814410	middle of all that. See it down there? The bottom towards the century link. So with high
814410	821110	probability because he saw all these access points and that's when somebody wardrobe it, we
821110	826950	are really close in that cluster of where that address is. And now we have a person, we have a
826950	835990	name. And what's the next thing I want to know? What is he like? He likes hair metal. So
836510	843390	from this we are able to pull what's currently playing via the API. At any point in time just
843390	848830	query it and it will tell you what's being played. So what this does is you can start
848830	855030	scripting this to start pulling this and figuring out what the person likes. The other thing
855030	863370	from a potential attack stance is so we can know more about the person that we can craft an
863450	868850	e-mail about, you know, what their likes are. We have their e-mail address. We know they
868850	875070	own a speaker so we can target an e-mail that's from one of their favorite bands for more
875070	882550	likelihood to get a click. So we'll go through that same process with a bows. So this is the
882550	888930	port 8080, not the 8090 which is a different that we showed earlier. But if you go to 8080, it
888930	897270	shows you, they only show you the SSID, not the BSSID. Luckily wiggle lets you search based
897270	904850	off of SSID too. And you can actually search based off of SSID and Alexander Malikov. I was
904850	911950	just doing it in a different approach to show you that there's multiple ways to do this. And
911950	918210	so that one's there. And here's an example of pulling the same information from the bows
918210	926670	API versus the Sonos API. In this case, they like the eagles, lion eyes in this one case. So
926670	931590	that got me thinking, has anyone ever done this before? Has there been anything like this
931590	940650	before? So then I was reading on one of the Sonos user group forums, somebody was
940650	946910	complaining that there was these loud sounds of ghosts and creaking doors throughout the
946910	955130	night at random intervals playing in their house. And I was like, that's strange. There's
955130	962890	actually a GitHub page, the thing's called ghostly. And you can just point it to an IP
962890	970230	address. It hosts songs locally and spins up a web server and then plays at random
970230	975970	intervals a ghostly sound, creaking doors and this is at random volumes as well on the
975970	984650	Sonos speaker. So it can be really quiet at 3 a.m. or it can be at full volume at 3 a.m. So
984650	994250	that, I was like, so wait, hang on. I can play a song I'm hosting on a Sonos speaker. All I have
994250	999950	to do is spin up a web server and point it to and say to the Sonos speaker, play this song on
999950	1006390	this web server. Because that's all this is doing. It just in the script controls the timing
1006390	1015010	randomly. All right. That's interesting. So I did that. So I wrote a real quick version using
1015010	1022550	an Alexa command. Because what I was going to try was does Alexa accept volume, you know, like
1022550	1029750	computer generated sound clips. So I just used the say command in the Mac or speak, you speak
1029750	1036290	on Linux or whatever you want to do this with. There's online utilities. So can I get Alexa to
1036290	1042550	do something from a Sonos speaker? You guys can probably imagine. There's a demo here. I
1042550	1059470	don't know if there will be sound. I guess there's not sound that I can use nearby, is there?
1059470	1067850	Anyone know? Okay. Anyway, what I'm doing here is playing on the Sonos a sound that I recorded
1067850	1075690	that said Alexa, what time is it? Alexa then as you saw there, lights up. Play it again so you
1075690	1083850	can see it. Visual cues. If you want to see these demos, I have a YouTube video, I'll link. So
1083850	1093890	there it is, it responds, it's 3.15 p.m. So that's interesting. So Bose allows you to do the
1093890	1100510	same thing, it's playing a URL. Via the Python libraries lib sound touch, which these Bose
1100510	1107410	devices were sound touches. You can point it to an MP3, same thing. So it doesn't have to be
1107410	1116130	just a Sonos. So then I was looking at the API and I found this field here for next. In this
1116130	1123810	case it's highlighted. So the commands are in clear text, literally just says next. So there's
1123810	1131010	play, stop, play, pause, stop, next, and you can also adjust the volume via the API. But one of
1131010	1140170	the fields I also looked at was the field called Reincon. Yeah. And so I wrote this quick
1140170	1147330	script, more or less just copied and pasted because of course there's no unique identifiers or
1147330	1155810	anything like that for session ID so it replays work. Because why not? Fuzzed a little bit
1155810	1163910	inside of the field itself. So I looked at the Reincon field which is a device ID type as we saw
1163910	1171370	earlier in one of those screen shots. And once we did that, the next slide of course, there will
1171370	1177330	be no sound. So what happens is there's sound, it's playing, blah, blah, blah, blah. I run the
1177330	1185790	command here for the next track. Oh, this is me playing with the next track, sorry. So I
1185810	1192930	run the command here. So what we were able to do here is while there's a cue, you can actually
1193510	1199270	just tell the next song. So it's just playing with the API here. But one of the interesting
1199270	1204370	things I found about when you start playing with this API is there's no input validation on
1204370	1210690	many of the fields. So then what I did was I fuzzed those fields so the next one it skipped
1211330	1216830	the track and then I run what I called an exploit, what it's kind of is, but it's not. And
1216830	1221410	the speaker stops playing. It actually takes itself off the network completely and sometimes
1221410	1228630	reboots. A lot of times I had to manually reboot my speaker to get it back on. So it sends
1228630	1234330	out at the very end, like right as it's crashing, it takes itself out of the MDNS
1234990	1239630	announcements and says I'm no longer here. So it will actually disjoin from other speakers
1239630	1248630	that are playing. Sorry, there was no sound. In that speaker thing, this was a, we released
1248630	1255090	this in December and there was some press. During that video, there was a point where I went
1255090	1264430	from epic sax guy and I said next and it went to Rick Isley. And this is the headline that
1264430	1269030	Wired came up with, that people can rick roll your speakers, not that they can be crashed or
1269030	1275930	anything like that, but that they can rick roll your speakers. I thought that was funny. So
1275930	1281130	one of the next few things that we were looking at, so now that I've done all this, is let's
1281130	1286450	get down to looking at the device. I don't know if there's any hardware people here. I failed
1286450	1291570	at all hardware attempts on this one, so this is kind of just a hey, if you have time and you
1291570	1299010	want to pursue this, please continue. So you take off the RF cage. This was a fun device,
1299030	1304950	I don't know if anyone here has ever taken apart a speaker. But they pay a lot of attention to
1305470	1310530	vibration, so there's a lot of hot glue everywhere, foam and things like that you have to deal
1310530	1316630	with when you're taking it apart. I have one speaker, I lost screws and now it blows air out
1316630	1322210	the RJ45 on the back, so I just put a little piece of tape on it, sounds good as new, as long as
1322210	1331690	you don't turn up the volume very loud. So just normal stuff, looking at chips, there's
1331690	1340750	actually two versions of the play ones, one of which is the arm chip that you see, and then they
1340750	1345030	also have a power PC version, I don't have a picture of the power PC chip, I do have a power
1345030	1351030	PC version though. The firmware updates are the same, functionality is all the same between the
1351030	1357390	two, but there is two different chip sets that they've used. So I tried to probe around to see
1357390	1364290	if I could find anything, but no data was easily found. Then I started looking harder, I think
1364290	1372290	that's a UART, but all the pins are dead on it. So then we looked at that one, that's obviously a
1372290	1383910	JTAG, 16 pin JTAG, all the pins were dead. And then of course, because the chips are, that's
1383910	1389110	why I was doing the probing as well, because I can't find where the JTAG actually was mapping
1389110	1397770	to. This is underneath the wireless card, there's some ports there that had some data, also
1397770	1405330	possibly JTAG is what we led it to, could never get it to fully be what we wanted or get any of
1405330	1410710	the information off of it. This one did have data on it. I played with the mappings and things
1410710	1417150	like that, just could never get any of the information off of it. This one was interesting.
1417450	1426870	I think it's a possible SWD. In fact, popped into the SLA. As SWD played with it, it sees data,
1426870	1435370	just nothing good. And big shout out to my friend Kevin actually helped on this and he couldn't
1435370	1440450	find anything either. So it was kind of a dead road from our stance, I didn't want to put a lot
1440450	1446210	of time in it, but I would really like to see somebody take this and figure out some of this.
1447910	1456850	In fact, I even did a probe with my STM32F4 discovery board and as you can see that I see
1456870	1461970	it, there's a serial number for the device, I changed the pins to make it discover the board.
1462250	1471030	Yeah, nothing there. So one of the things that we were able to do is be able to report this to
1471030	1478070	Bose and to Sonos. Sonos has fixed numerous amount of the issues. Most of the major issues
1478070	1485270	have been fixed. There's been the denial of service attack has been resolved. There's some
1485270	1489770	input validation on those, on at least that field, I haven't played with any of the other
1489770	1496370	fields. But I'm hoping they fix it appropriately. Bose on the other hand didn't really
1496370	1505250	respond a bunch. But on Sonos here is the new what you see now when you go to the status
1505250	1512490	page. A shorter version. And again, the counts is there, but the e-mail address, all the
1512490	1518810	fields that were e-mail addresses have been masked. So it's a really good disclosure and
1518810	1523550	Sonos fixed it. It was actually pretty frustrating because I was in the middle of trying to
1523550	1530530	shoot those videos and the YouTube video that I made. And it forced me to do an update, which
1530530	1536470	fixed the problems. So I had to go buy another one and not let it update. But from what I
1536470	1541130	understand now, before you can even connect the app to it, it forces you to do firmware
1541130	1551520	updates. So good on Sonos again for fixing that and making people update. Before I ran the
1551520	1557020	exploit for next track, crash things now, I thought this was actually pretty interesting.
1557020	1561480	They give you a 412 error back, I had to look it up, it's a precondition fail, what that
1561480	1567880	means is one of the conditions that I was giving it, in that case a bad Recon, didn't like
1567880	1577420	it, so they give you a 412 error code back. And then close the connection. Before I came
1577420	1585460	out here, I looked at Sonos devices on Shodan, so just an update, as of August 8th, there
1585460	1592740	was 4,494 Sonos devices online. There's always, as I said earlier, roughly around 5,000,
1592740	1601240	between 4,000 and 5,000. Bose, there's always around 1,000 again, when I said there seems to
1601240	1609280	be less of those than there, so I don't know if people are just not exposing it, their UPNP is
1609280	1616880	not poking as many holes or whatever. But they're there. Again, Bose never really responded,
1616880	1622020	I think they were fixing problems, but they never officially responded to us on this.
1622540	1629160	One thing that I thought was very interesting, and it makes sense, but one of the biggest
1629160	1634300	problems we have is you can still do next, you can still do all that stuff, you can still pull
1634300	1640560	information from the device about what people are listening to, what's their favorite radio
1640560	1646500	stations, all the presets, you can pull that information out. One of the things that I would
1646500	1653300	look for in this is to see, does anybody in here have a Philips Hue? You know, when you have a
1653300	1661120	Philips Hue, you have to hit the button now to authenticate the API, and you get an API key. In
1661120	1667300	this case, Bose and Sonos have both responded more or less, saying that it's an open API and
1667300	1672920	they plan on never doing any authentication with any of the end devices that can control it. And
1672920	1677580	I think about, go back to that case with the ghostly hack, and that could be prevented if you
1677580	1684380	could just stop, you know, only authenticated devices at the end. Which I felt like they were
1684380	1688840	trying to do a little bit, because now when you try to set one up, it makes you put it, you have
1688840	1694520	to press two buttons for it to go fully into setup mode, which I think enables a lot of those
1694520	1700860	pages to then be able to be searched. That's what I feel like what's going on. I haven't
1700860	1706920	really validated that one. So if they could just do something like that, where then it's,
1706920	1711760	it lets you grab an API key, and then we can authenticate, and then most of everything goes
1711760	1717340	away. You know, of course there's still some faking of the, if it's in clear text and stuff
1717340	1722240	like that, because it's only over HTTP and not HTTPS. So there's still little things here and
1722240	1728340	there that we could fix. But I don't want to be that guy in Colorado where I know more about his
1728340	1735700	life just because of his speaker than I should know. So, just run a little bit quick. But if
1735700	1742220	you have any questions, I'll be around. Find me on Twitter or anything else. If anyone has
1742220	1750940	any questions, go ahead and start shouting them up at me or we'll meet up here. Thanks guys.
1751440	1758280	One more thing, Jaisal from ZDI is giving out some challenge coins from ZDI and he wants to
1758280	1762020	get rid of them. So if you want one, go see Jaisal, second row. Thank you everyone.
