start	end	text
0	6320	All right. My name is Mike Rago. I work for a company called 802 Secure. And the title of this
6320	17400	presentation is Spy vs. Spy, Who's Watching Who? The research behind this particular
17400	22540	presentation is something we've been working on for a few years. And it's kind of a mashup
22540	28400	of new organic research that we've released as well as previous organic research that we
28400	34540	released last year at DEF CON during Sky Talks and the Wall of Sheep. So we appreciate the
34540	38860	IOT Village having us out to speak for the first time. Uh, this is the first time we've
38860	43960	presented, uh, in the IOT Village. And also appreciate the opportunity to sponsor the IOT
43960	51480	Village too. So thanks guys. In terms of the overall research, it's largely targeted at
51480	58180	various types of surveillance, spy cameras, video cameras, etc. We do a lot of broad
58180	63720	research across a variety of IOT devices and networks. And one of the things we started
63720	69620	to discover was beyond the supply chain being completely fragmented in terms of where all
69620	75420	these devices are, or more importantly their chipsets, is that as a result of that software
75420	80940	and the fact that this stuff's coming from all over the world, it's largely insecure,
80940	85360	as you might expect. And what we're gonna do is talk a lot about, more about how we've
85360	89280	done a lot of live testing around these devices and a lot of the vulnerabilities we've
89280	95920	uncovered. One of the areas that we focus on particular is on the wireless side. Um, we
95920	101600	have a long history in wireless, uh, ranging from Wi-Fi to Bluetooth to Zigbee to cellular
101600	109420	to P25 and beyond. And being able to look at devices autonomously and how they're
109420	114220	communicating has allowed us to uncover some unique vulnerabilities. And then furthermore,
114220	122590	how you think about that physically as well. I don't usually like to talk much about myself,
122590	129450	so I'll tell you a quick history about how I got into security instead. Um, I, uh, back in
129450	134930	the early 90s I worked for a company called NASDAQ. And while working at the NASDAQ stock
134930	139070	market I was always one of those guys that was diddling around while I was a Unix admin
139070	145590	in Oracle DBA. And I came across this guy known as Dan Farmer. And he had a tool called
145590	150430	Satan, which was one of the first vulnerability scanners long before there were things like
150430	157190	Nessus, Qualys, uh, N-Circle or other things. Just a quick check, anybody here ever heard of
157190	163450	Dan Farmer before? Alright, cool. So there's some old folks like myself. So anyways, I
163450	168410	downloaded this tool, I saw Dan on the cover of Information Week, this guy, kind of long hair,
168410	172750	kind of looked like Dave Mustaine sitting on top of a Silicon Graphics computer and I said,
172750	177670	this guy looks pretty cool, I gotta try out this tool. So I download it and let it rip on the
177670	184950	network and take, take down the trading floor in the middle of the day. Normally it was a
184950	192890	fireable offense, uh, but I got called into the VP of security, um, in his office, um, and
192890	198110	expecting to be fired and my biggest concern was what I was going to tell my wife. And, um,
198110	201670	so he said, listen, I'm here to offer you two options actually, you're either fired or you
201670	207230	take over security here at NASDAQ. So obviously I took over security at NASDAQ, which was a
207230	214250	great way to throw me in the deep end of the pool and really get into security. So true story.
214250	222730	Alright, so, just a little background. How we think about IT, network security, right, very
222730	227690	much focused on the corporate network and the extension of that, whether it be wireless and
227690	233610	your wireless LAN, whether it be your OT networks, your industrial IOT, ICS, everything that
233610	241730	comprises your environment. But as CIOs, as other folks that are, uh, responsible for those
241730	247310	networks and those environments, as well as the data, have to think about this in a whole new
247310	253510	way with the explosion of IOT, meaning that now building automation, 50% of new buildings
253510	258990	going up have some type of IOT and wireless enabled functionality, whether it be for the
258990	264150	thermostats and the HVAC, whether it be for power, whether it be for lighting, blinds and all
264150	270190	other types of things. If you're responsible for that building, or your facilities are housed in
270190	275290	it because of the data center, how do you look beyond the network to find a lot of those risks?
275490	281230	80% of IOT is wirelessly enabled. So thinking about that from a wireless standpoint can allow
281230	287550	you to get better visibility into that. It's a kind of a new space that NIST is really, uh,
287550	292650	endorsing and calling cyber-physical, cyber being your traditional IT and information security
292650	299570	team and networks, physical being the physical side of unmanaged devices, shadow IOT, and all
299570	307700	these nefarious devices as well. Well, although we tend to think about the network
307700	313900	traditionally from, hey, do I have an IOT rogue on my network? Now that organizations are
313900	319220	deploying smart TVs in the conference rooms, printers for many years now have been wirelessly
319220	325900	enabled, yet many times misconfigured. Now that there's wireless thumb drives, wireless SD
325900	331240	cards, wireless storage devices, well, although these things may connect to your laptop, they
331240	336020	don't touch the network at all, right? And so as a result, a lot of these things popping up in
336020	343700	environments do represent a data risk to the environment. Also, in taking a look at the
343700	349880	increased amount of drone activity, the ready availability of, uh, spy cameras and
349880	355120	surveillance cameras, and now how easy it is to set up a rogue cell tower, we need to start
355120	359660	thinking about our environments in a whole new way. And that was sort of the premise behind the
359660	364820	research we've done in a lot of these areas, in this particular case, a focus on surveillance
364820	371520	and spy cameras. As we know, within Amazon and other places, you can buy everything from
371520	377100	surveillance cameras for your home, as well as a plethora of different types of surveillance or
377100	382120	spy cameras. They come in all shapes or forms. We've tested many of them. Some of them
382120	388440	operate on a battery. Some of them plug into the wall. Some of them are a wall charger for a
388440	393700	cell phone, but built into it is a hidden camera. And how you connect to these devices is
393700	399460	commonly over Wi-Fi or Bluetooth. You download an app and it allows you to leverage that video
399460	407930	camera to record audio, video, take pictures, and things like that. So a lot of interesting
407930	414710	protocols that comprise these devices, both at layer 2 and layer 3 and above. One of them
414710	420690	being Stupid Service Discovery Protocol, or actually called Simple Service Discovery
420690	428470	Protocol, or SSDP, which is an extension of UPnP. This allows IoT devices, once you plop them on
428470	433910	the network, either wired or wirelessly, to discover one another and potentially communicate
433910	439530	to one another, machine to machine. Some of the packets and how these protocols are
439530	446230	configured allow them to do automatic discovery, for example using mSearch, or allowing a
446230	454430	device to notify another device of its presence on the network using notifies. In addition, your
454430	460110	traditional and even current day surveillance cameras use a protocol known as RTSP, or
460110	466210	Real-Time Streaming Protocol. And this is very much related to the video streams. And then
466210	472330	lastly, as we all know, a lot of these devices, ideally via the app or the device itself, want
472330	477370	to store the video, audio, and pictures in the cloud. Random cloud locations that you know
477370	486750	nothing about. Some of the surveillance cameras that we've acquired and tested reveal a lot of
486750	492910	really interesting information. First and foremost, they use HTTP-like protocols, and in
492910	499770	addition, they're typically wide open, no authentication, and clear text. As we let this
499770	506690	device record videos that it was storing either locally to a DVR or in the cloud, that a lot of
506690	512090	this was being sent clear text. And if you're just simply sniffing the network, monitoring it
512090	517390	using Wireshark or something else, you can actually see where these URLs are and where you can
517390	521890	access the videos completely unauthenticated. We've done pen testing for a variety of
521890	529750	companies, never ever have we seen this secured. In addition, we'll talk a little bit more about
529770	535550	some research we released at RSA about how we exploited these protocols to actually do
535550	548140	command and control and other interesting things. Spy cameras typically have a mobile app. So, one
548140	554600	of the first ones I tested came in a tiny small box, I bought it on Amazon for $20. Has a teeny
554600	560640	little sensor or video camera built into it, a little sticky thing so you could stick it under a
560640	567000	table or on a wall or hide it behind a book. And upon unboxing it, there was some paperwork in
567000	572600	it and it was all in Chinese. But I saw a URL and I saw something that referenced a mobile app
572600	577100	and I was like, cool, I'm going to download this random app from a random location, an IP
577100	582560	address that doesn't resolve to anything. So, obviously I do this on a separate test network
582560	588960	with, with test credentials and proceeded to go ahead and download that app. And then in doing
588960	594740	so, paired to the actual device, a lot of these devices out of the box do support Wi-Fi and
594740	600780	initially run in ad hoc mode, device to device. You can enable it as an AP, you can put it on a
600780	604660	network, things like that. Ideally, if you're going to be using it as a spy camera though, you
604660	610100	don't necessarily want to go plugging it into the network or the environment that you're doing
610100	613820	surveillance on, right? So, but it's good to know the different functionality that's available
613820	621000	there. Upon doing a lot of the testing and sniffing the network both on the wireless and the
621000	626140	wired side and observing behaviors, started to see a lot of communications to the cloud, to
626140	634980	Alibaba, both in Canada and in China. In addition, it was starting to transmit the U, UID, the Mac
634980	640240	address and a variety of other things. Then, I saw my username and password passed over the
640240	649460	network to, in clear text, out to the internet, to some random cloud at Alibaba. So,
649460	660820	definitely interesting, definitely suspicious, definitely freaked me out. Some of this
660820	667840	research we released last year at DEF CON 26, both in the wall of sheep and further details in
667840	674000	Sky Talks since that's a closed session. And interestingly enough, one week later, the U.S.
674000	678880	put a ban on the exact same cameras that we covered in the talk. I can't say the two were
678880	688740	related, but it was one heck of a coincidence. Some of the other vulnerability research
689300	696260	started, starts to kind of touch on the physical aspects of IOT. Even for your own
696260	701880	surveillance cameras, perhaps at home, a lot of these things are enabled through a hub that may
701880	708160	speak to the cameras via Wi-Fi, occasionally via Bluetooth, also commonly via Zigbee or
708160	715800	Z-Wave as well. And we started to take a look at these hubs and their relevant functionality.
715880	722380	Turning the hub around, I found two USB ports on it. We'd already been doing research and
722960	728240	exposed some vulnerabilities and submitted the vulnerabilities to Bug Crowd related to some
728240	733380	different manufacturers of wireless thumb drives. We find these commonly in a lot of
733380	739240	customer environments, especially in healthcare, interestingly enough. It seems, and what we find
739240	744260	and have kind of determined, is that a lot of people out there are obviously still buying, you
744260	749940	know, small storage devices, but not necessarily realizing there's wireless built into them. So
749940	755680	they're using them just like a standard thumb drive or an SD card, but we, in our pen testing
755680	760940	and analysis for them, are discovering these devices via the fact that they're wirelessly
760940	765640	enabled and they're wide open because nobody's configured them. Furthermore, a lot of them
765640	771040	have a built in battery. So even after you unplug it from the laptop and have stored data on it,
771040	776140	that device is still on, so if you're walking around up and down the street, get on the bus, go
776140	781440	to a coffee shop, all that data is readily accessible on a battery backed up thumb drive or
781440	790580	SD card. So back to the IOT hub. So, since I had all these devices hanging around and there were
790580	796060	two available ports available on the IOT hub for the surveillance cameras, I decided to go
796060	802800	ahead and plug one in and then connect to it wirelessly via the thumb drive. What I started to
802800	808540	realize is, as the videos were being recorded, they were not only being recorded locally to the
808540	814660	device and being sent to the cloud, they were being stored to my thumb drive. No authentication,
814660	821620	no encryption, the only thing I did was I plugged in a thumb drive into the IOT hub. And by the
821620	827500	way, with it being wirelessly enabled, it kind of freaked me out to check my own hub in my own
827500	831120	house, because I have a lot of people over all the time for parties. And I was kind of
831120	836080	wondering, wow, anybody at the party could just walk by, turn my hub around when there's nobody
836080	841000	in the room, and plug in a thumb drive with wireless capability and be sitting outside the
841000	847480	house viewing the videos being recorded by my surveillance cameras. And it's as simple as
847480	853080	that. We did disclose the vulnerabilities to Bug Crowd. They did go ahead and notify the
853080	858000	vendor and this has been patched. But these different types of surveillance cameras and the
858000	862540	relevant hubs are coming out all the time. So if you have one in your house, make sure you're
862540	870410	not vulnerable to this. If you want more information about this, some of these things we
870410	876190	did live demonstrations of, both at the RSA conference and at DEF CON last year and the year
876190	887460	before. Drones. So why am I talking about drones? Well, as we all know, drones can also be
887460	894840	used for video surveillance and taking pictures and things like that. A lot of these drones
894840	900400	have various types of wireless and RF capabilities. Detecting them sometimes can be done
900400	908720	over RF, but in other cases it requires radar. Specific to RF and specific to Wi-Fi, typically
908720	915080	hobbyist drones like you might buy on Amazon, even a drone such as that can be used for
915080	920220	adversarial activity. Not only for recording audio and video, but as we know, dropping a
920220	927920	small pathogen, flying over a security fence at an ICS facility, and even having tethered
927920	935920	onto them additional battery backed up spy cameras as well. Typically when you unbox this
935920	939880	thing, and I'm sure many of us here have played around with drones, they have a Wi-Fi
939880	944040	capability built into them. You can download a mobile app and that mobile app will allow you
944040	948400	to record video and take pictures as you're flying the thing around. It might even allow you
948400	954220	to control the drone as you're flying it around. Many of the organizations we work with
954220	960960	that are customers have this activity once or twice a day, or roughly a few times a week.
961040	970640	It's really difficult though to determine if it's a hobbyist or if it's adversarial. So if
970640	976100	you're running Kali, or formerly Backtrack, and you run Aircrack NG or some of the other
976100	982020	tools out there, your flavor of the day, you can go ahead and run Kismet, Aircrack NG, all
982020	988020	types of things to look at everything wirelessly, especially Wi-Fi. In this case here,
988020	994420	I went ahead and I was analyzing and sniffing and taking a look at how the drone was
994420	1000040	communicating, how it was configured from a Wi-Fi perspective, and how my mobile device was
1000040	1006320	paired to it. And it really uncovered a lot of interesting intelligence and information. In
1006320	1009880	working with lots of customers, you know, they're trying to figure out how to solve the drone
1009880	1016700	problem. We work with the casinos. We work with airports. We work with ICS and power
1016700	1022700	facilities. And how a lot of customers initially think about this problem is, hey, we want to
1022700	1027860	identify it and knock it out of the sky, right? And obviously if you do that, it's going to fall
1027860	1032680	and probably hit something or hit somebody, right? So, thinking about this from a more
1032680	1037760	practical standpoint, could you perhaps look at this from a wireless standpoint and get
1037760	1045800	enough intelligence here to still capture the adversary? So, just like an access point, I'll see
1045800	1053700	the BSS ID, right? I can see that MAC address. As we all know, that part of that is comprised
1053700	1060320	of an OUI that maps to a manufacturer. Interestingly enough though, if you take a look at
1060320	1066620	the ESSID, more commonly known as the SSID, you'll actually see, typically, unless it's
1066620	1072320	hidden, the SSID. But interestingly enough, it's actually difficult on a lot of drones, at
1072320	1077280	least based on when you take it out of the box, to actually change the SSID, so most people
1077280	1087120	don't. And as a result, that SSID from the factory actually exposes two things. One, FLD,
1087120	1092080	what type of drone is that? Well, we've done a lot of mapping and there's some public maps
1092080	1096480	out there too and some tools on GitHub that actually map these out and this maps actually
1096480	1103460	back to a specific type of drone, a specific manufacturer. Furthermore, the rest of the SSID
1103460	1109520	exposes the last three octets of the MAC address, uniquely identifying the drone. So if I'm
1109520	1114900	monitoring this over the course of a week, I can potentially identify a repeat offender,
1114900	1120180	right? Because purely just seeing the SSID, I can see if it's the same drone or a different
1120180	1128860	one. So additionally, I can also see the station or the mobile device paired to it that's being
1128860	1134660	used to fly it around. So now I actually have two pieces of forensic information. Not only
1134660	1139420	intelligence on the drone itself, but the mobile device paired to it, or essentially the guy
1139420	1145360	flying the drone, who's probably in a different location than where the drone actually is. So
1145360	1151420	that's exactly what happened when we were doing some analysis. We're working with a
1151420	1158180	critical infrastructure facility customer and they contacted us because they said, you know,
1158180	1162540	we see, you know, drone alerts. There's some drone activity. And furthermore, we saw the
1162540	1167240	mobile device paired to the drone. The two devices were in two different locations. The
1167240	1172360	mobile device was along the edge of the perimeter fence and inside the fence area, of course,
1172360	1176820	was the drone because he flew it over the fence and was flying it around the power facility,
1176820	1183860	especially by the power distribution units. Furthermore, just before that, we saw the mobile
1183860	1189620	device paired to the guy's truck and determined that truck was a brand new Ford F-150 with smart
1189620	1194760	technology. So he's probably listening to Pandora or Spotify or something like that, right?
1194760	1200180	Parked the truck along the edge of the fence, unpaired, paired his mobile device to the drone
1200180	1205720	and then flew it over the fence. So now we had three pieces of forensic data. And providing
1205720	1210680	that to the customer and that relevant forensics information allowed them to actually go back
1210680	1215340	to their surveillance cameras because we're able to identify the location of the truck and the
1215340	1220000	mobile device. They got the guy's license plate and they actually caught the guy. So when you
1220000	1223940	think about drone activity, you think about video surveillance, you think about countermeasures
1223940	1231580	related to this, all of this was done with just completely free tools built into Kali, right? And
1231580	1240900	there's just some really powerful information there that you can use in your own way. Okay,
1240900	1246860	so IoT protocol exfiltration and exploitation. There's so many different protocols that
1246860	1253260	comprise IoT. And as we mentioned, the supply chain is just so messed up. You thought that
1253260	1262680	Android fragmentation was bad. This is that on steroids, right? As I mentioned earlier, in
1262680	1268860	looking at how a lot of these devices communicate and using SSDP or simple service discovery
1268860	1274740	protocol, there are some discovery packets and things built into the protocol such as M
1274740	1279820	search to discover other devices to allow them to then potentially communicate machine to
1279820	1288980	machine as well as notify packets, thus announcing their presence on the network. A lot of
1288980	1294900	these protocols are clear text and unauthenticated and lack any integrity mechanisms as
1294900	1303600	well. And in doing so, although they may be site routable or essentially on the localized
1303600	1311140	network, if I'm monitoring what's going on, I can actually inject packets and leverage some of
1311140	1316880	the free form fields to inject things such as URLs, command and control options and other
1316880	1322120	features. For example, in this case, there's an optional field sometimes used by the
1322120	1328980	manufacturer, sometimes not, or the OPT field. And in doing so, we were able to actually
1329660	1336020	modify the URL pointing to a separate URL or command and control location to allow this
1336020	1344140	protocol to actually be exploited. So we went ahead and did that and communicated it and
1344140	1350080	allowed this to be consumed by another IOT device and interestingly enough, we observed that
1350080	1354940	it consumed this information and wanted to ideally, every once in a while, communicate to
1354940	1360520	this fake command and control URL or IP address, which we also tried, to see how it was
1360520	1366920	consuming and using this information. So if you think about this for a moment, you plop all of
1366920	1372620	these onto your network and you trust them, but you have one of these maybe from a
1372620	1376940	manufacturer overseas of which you know nothing about, they communicate to other IOT devices
1376940	1382240	on your same network and include something embedded like this and allows a very easy way
1382240	1387560	across your network for all the devices to infect one another either directly, indirectly, or
1387560	1398120	point them to various command and control centers to download additional software. So in
1398120	1403280	our scenario, we did exactly that. We leveraged one of the video cameras I mentioned earlier
1403280	1407600	for a lot of the vulnerabilities and testing that we had done already, went ahead and
1407600	1413920	modified the device itself so it was communicating this additional optional field with a
1413920	1420300	malicious URL embedded in it and allowed it to be retrieved or received by other devices on
1420300	1427440	the network. In doing so, we had a smart TV, a cheap one that I had gotten at Ollie's, and
1427440	1432200	it went ahead and took this and we observed it trying to communicate following that to the
1432200	1441450	IP address we had embedded in the OPT field. So as we think about a lot of these
1441450	1446930	vulnerabilities, right, and how we interact with customers and do pen testing for them, it's
1446930	1452430	really like a big lack of visibility beyond the network today, right? That physical space of
1452430	1459870	unmanaged shadow IOT devices passing by, people passing by, right? But there's a wealth of
1459870	1464670	information in there. We had a customer just last week that had a break-in into the
1464670	1470730	building. And by monitoring everything wirelessly, we actually found that that Sunday
1470730	1475550	night during that one-hour time frame of which they said there's never ever anybody in the
1475550	1481090	building, we saw the guy's MAC address for his mobile device. And while although for iOS and
1481090	1486030	for Android, those cycle through, through randomization, he must have been somebody that
1486030	1490330	was there previously because it accidentally connected to the guest Wi-Fi and we got his
1490330	1495450	legit MAC address from it. Just by listening, just by monitoring, just looking at that
1495450	1503390	time frame. In addition, in thinking about this, how can you leverage your own wireless LAN
1503390	1509550	environment, whether it's Cisco, Aruba, Arrowhive or something else, right? And really
1509550	1514470	leverage that to identify what's going on beyond the network. If you have a device that
1514470	1519490	disconnects, an employee that disconnects from the network, do you have the ability to see if
1519490	1525010	they're connecting to a spy camera or a drone or anything like a Wi-Fi pineapple? The physical
1525010	1530870	space is becoming littered now with these IOT devices. And understanding the context and the
1530870	1535470	characteristics of how these devices are connecting has a big impact on your network now
1535470	1543130	and especially for the future. So I'll leave you with some lasting thoughts and things to
1543130	1549110	think about in terms of overall hygiene for your environment, your network. We talked about
1549330	1554710	a lot of the anomalous behaviors and vulnerabilities that we had found across a lot of
1554710	1560870	devices, spy cameras, surveillance cameras, drones, etc. Strange outbound connections
1560870	1565950	connecting to the cloud, clear text going to Alibaba, Canada and China, right, just to begin
1565950	1571670	with. Seeing my username and password being transmitted from one of these random IOT
1571670	1577150	devices, clear text out to the internet to some cloud provider. Furthermore, leveraging that
1577150	1582050	intelligence to go to the cloud provider and by diddling with some of the URLs, actually
1582050	1589270	discovering other people's videos sitting in that same repository. In addition, thinking
1589270	1595090	about the wireless security postures not only from misconfigurations but state change. We
1595090	1602210	talked about how simply transmitting the OPT field with URLs, IP addresses, command and
1602210	1608030	control or fake command and control centers and doing that via those specific packets such
1608030	1613690	as msearch and notify and exploiting the OPT field or optional field for doing that allows
1613690	1619350	other IOT devices to receive that information, potentially consume it and themselves try to
1619350	1627130	communicate with that URL. That unto itself is a state change. Why did that IOT device that is
1627290	1633790	a sensor or an actuator and sends a packet once an hour with an update or just a small group
1633790	1638550	of packets once an hour with an update is now transmitting or communicating to an IP address
1638550	1645630	outbound or furthermore even on a closed network attempting to. Following this session, a good
1645630	1651570	friend of mine, Chet Hosmer and I have done a lot of research around this in which Chet has
1651570	1656510	really created this raspberry pie that sits on the wired network and we've programmed it to
1656510	1661410	baseline on the existing environment and identify anomalous behaviors from that point moving
1661410	1667190	forward. If you're interested in that, Chet will be presenting that here right at 5 o'clock over
1667190	1672450	in the packet hacking village. And if you missed that, you can go to pythonforensics.org to get
1672450	1680740	more information about that raspberry pie. So I appreciate the time today. I hope you got a few
1680740	1685900	gold nuggets out of that and I'll hang out in case anybody's got any questions or comments but
1685900	1687140	thank you for your time today.
