start	end	text
5780	12760	Hello. Welcome to my talk, called IoT Fails. Learning from sex toys how not to suck or blow.
14020	23120	So who am I? I am RenderMan, a very proud Canadian hacker, researcher, security and penetration tester.
23340	30040	Founder and researcher for the Internet of Dongs project, basically where we test the security of internet-connected sex toys.
30040	36720	I am Pope of the Church of Wi-Fi, and our team is the two-time champion for Hacker Jeopardy as of this year.
37000	45680	Been to every DEF CON since 1999, 2020 notwithstanding, of course, and look forward to continuing to do so in the future.
47640	54600	So I want to be serious. This will be a discussion that does involve sex toys and other intimate devices.
55100	60020	This means some language may be considered crude by some, possibly offensive to others.
60640	64800	If you're likely to be offended, then I suggest you don't watch this video.
65240	73900	I do try and keep things PG-rated, but some items have a name that could be considered offensive to some.
73960	84020	These are legal devices, sold worldwide. Any humor that may be injected is objective aspects of the devices,
84020	89740	and in no way making fun of the users or their lifestyles or any aspect thereof.
90040	99500	These people who use these products and buy them deserve the same safety, security, and privacy as any other consumer of IoT devices.
100580	106960	So IoT security in general is a dumpster fire. It's almost an oxymoron.
106980	116260	Every week, some new device has a hard-coded password or they leak personally identifying information everywhere.
117080	123680	We're in a day and age where a coffee maker is a threat to the command and control systems for a chemical power plant.
124960	132860	Mistakes are being made in IoT that were made 15 years ago. Stuff we thought we dealt with, thought that we were past.
132860	142760	We know how to solve these things, but they're coming back. Things like default passwords should be something that's long past.
142760	147940	There's very little discussion about the roots of the problem, as I see them anyways.
148700	153260	And things need to change in this industry before people start getting hurt.
155120	163720	But first, let's build a car. Obviously not a real car, but more as a metaphor, because this is something a lot more people are familiar with.
164840	174160	A car should have four wheels, steering wheel, seats, engine, brakes, doors, windshields, mirrors, all the usual things.
175060	183480	If we were handing this as a design to someone, we could say, okay, the wheels need to be in the corners, engine in the front or the back, depending on the amount.
183680	190880	Seats are inside, not on the roof, windshield in the front, the usual kind of what delineates a car.
192000	207640	So, the designers go off, design, build a prototype of the car, run it around a track a bunch of times, yep, everything works as was requested to be built.
207680	209960	Okay, so they prove it for sale.
210760	215840	And then they find that after 5,000 kilometers, every car explodes, killing all the occupants.
216140	218320	Obviously this is a bit of a design flaw.
219180	225680	But you hear arguments like, well, you didn't specify the car shouldn't explode after 5,000 kilometers.
225840	232260	If this was IoT, they'd say, well, the user wasn't operating it like they expected them to.
232260	237380	We never actually assumed that they would try to go faster than the speed limit.
238460	245720	Well, it worked because it was designed to meet the acceptance on the test track, because that's the only provisions we had.
245720	253340	We had a very narrow time on the test track, so we only tested it to 100 kilometers, not 5,000.
254460	259960	Or things like, it met nearly every non-existent regulation for the industry.
259960	270200	Obviously cars are a lot more regulated than IoT, but you can see these kind of arguments wouldn't necessarily pass in an automotive industry.
271960	275060	Right now, we seem to be building a lot of Homers.
275720	283340	If you're familiar with The Simpsons, there's a wonderful episode in season two where Homer's asked to design the car for the Everyman.
283900	295720	And he puts every crazy idea he has out on the table, and the designers dutifully say, yep, yes, okay, we'll do that, no matter how crazy it is, no pushback.
295760	303420	So they take this crazy design and make this car, which is a complete monstrosity that ends up actually destroying the company.
304100	307240	You see this with a lot of IoT situations.
307280	312620	It's like, well, you didn't specify that it had to be secure in the design documents.
313320	316400	Really? Why should that be necessary to specify?
318140	325780	You said it should be secure, but we have no idea how to actually check that, or what criteria to use, or anything like that.
326020	332920	Previously, we've only built devices that didn't need to be secure, or it wasn't a priority.
333700	341620	We thought it was secure, we got an SSL certificate, but don't know how to use it and install it.
342240	347860	Your design specs didn't say we couldn't just store everything in plain text in an online bucket with no password.
348580	351820	Again, why should this be something you have to specify?
352560	357200	We always assumed the user would always have connectivity, and the servers would never go down.
357200	365800	This is something that's caused a great many issues, where an assumption of always-on internet connectivity,
366820	374540	things like Amazon outages, or the local client's internet connection goes down.
374920	379060	These should not be showstoppers, or put people at risk.
380340	385940	I've spoken to many Internet of Things, Internet of Dongs vendors, and they always say the same thing.
385940	389920	Privacy and security of our customers is of the utmost importance.
390320	394500	This is the InfoSec equivalent of our thoughts and prayers are with the victims.
395360	397940	Platitude that does nothing.
398840	401200	And it should be secure.
401540	404280	It should be a default for any design.
404360	406900	Why should it be necessary to specify?
408160	415160	And part of that problem is many companies, they'll see the headlines about IoT hacks.
415160	422180	They'll see Amazon buckets that are wide open, leaking all the customer's information,
422180	425780	but they don't realize that they're an IoT vendor.
425780	431300	That they're now in the same ballpark as a thermostat, a baby monitor, or a refrigerator.
431940	435380	A refrigerator manufacturer might say, well, we build appliances.
435380	437780	We're not an IoT company.
437780	439300	It's like, well, yes, you are.
440820	446260	And because I've had so many of these conversations where I've brought literally their entire user database to them
446260	452180	and said, hey, you have a problem, it's amazing to watch the change that happens just after one conversation
452180	455500	when you point out you're a software company now.
456640	461140	Because in Internet of Dongs and adult intimate devices,
461140	467260	most of them went from a hardware device maker to a software and service provider pretty much overnight.
467480	469540	And they never realized it.
470060	477960	They may have had good people on staff for material engineering, design, some electrical, but never anything networked.
477960	480740	They never had to deal with the problems of connectivity.
480980	487100	One of my favorite sayings is that on the Internet, you're 100 milliseconds away from every jackass on the planet.
487100	493480	Meaning if you connect a device to the Internet, somebody somewhere is going to be poking and prodding at it.
494440	497840	And that changes the threat dynamics dramatically.
497840	503020	A previous analog device that just vibrated or buzzed or whatever
504160	508640	didn't have the possibility of somebody remotely reaching out and connecting to this
508640	511680	and causing it to do things that maybe it wasn't meant to.
512580	516240	Many vendors just rolled their own systems.
516240	519680	They didn't use available frameworks that had been vetted and trusted.
520240	522720	They thought they knew how to implement an API.
523640	527120	For some, they did a good job. Others, not so much.
528620	536280	Many companies will go to a third party and say, hey, we want a device that does this, this, this, and this.
537240	541220	And the company will dutifully design and make to that stack.
541220	544620	But they don't go to DEF CON. They don't hang out with people like us.
544620	547140	They don't know what questions to ask.
547140	553460	So when they make assumptions like it's secure because, well, shouldn't it be?
553840	556500	Or they ask the company, well, is it secure?
556500	566960	They don't know to ask, well, what are all the outside connections, SSL and TLS encrypted?
566960	570040	What version of TLS are you using? Those sort of things.
570040	572280	They don't know what they don't know.
575060	578340	Much of my IoT work has been with the Internet of Dongs project.
578720	585300	It was started basically because I wanted to learn mobile security, web app, API security.
585800	588420	At the time, I was being given a bunch of projects for that.
588420	590820	And most of them were fairly secure.
590820	596580	And I needed something with some low-hanging fruit to kind of cut my teeth on.
597080	601460	Many of these devices and apps have text, voice, video, and others.
602200	608400	Other devices will sync with video and even allow bidirectional control from the devices themselves.
609180	610780	This is rather amazing.
610780	618840	You have these apps that are essentially a new communications platform, like Skype or Google Chat or anything like that.
618980	623420	But it's being run by companies that don't realize this, or they've outsourced so much of it
623420	628800	that it's being run by people who don't have vested interest in this.
629620	635060	And it's a very fascinating field of study, especially in these socially distant times.
635510	639200	Relationships are suffering, and this is a way for people to stay close.
640480	649050	These kind of devices have a unique set of challenges because they are so very intimate.
650160	654140	The privacy and security expectations from the users is much, much higher
654750	657800	and has some very unique challenges, too.
658900	663140	So it's something that a lot of people should be paying more attention to.
663360	666880	No one else was seriously looking at this when I started the project in 2016,
666880	673480	and I have no embarrassment in pursuing this, and I'm actually very proud of the work I've done.
674020	677400	Because the things that I have found have been terrible and terrifying.
680240	686360	A lot of devices will give data to the vendor, telemetry and stuff like that.
686360	692940	How many times a day your connected fridge is being opened each day may not mean a lot to people.
692940	697360	Some people are like, OK, maybe I snack a lot and open the fridge too often.
698020	705460	But how many times a day you use your sex toy, that means a lot of different things to people in their fridge.
706180	713440	Cultural implications, you know, taboos and shame can have severe consequences.
713440	725380	The Ashley Madison breach, there were many people that were found to be customers of that site that committed suicide because of the shame they felt in being caught.
727300	733680	Most of these devices are a Bluetooth device connected to a mobile app, some sort of web API.
734360	742020	There's obviously exceptions, but almost all of them use common off-the-shelf chipsets from Nordic, TI, whoever.
742020	754160	So essentially, except for the wrapping, these devices are the same as any other IoT products, be it different appliances, children's toys, you name it.
754800	762280	So it's a very interesting way of looking at the industry through this, frankly, under-observed branch.
763940	770820	Normally I follow a policy of coordinating disclosure with the vendors. I've established a good relationship with many.
770820	789520	I've helped many of them set up a vulnerability disclosure program. Most of them didn't realize that people would ever try to reprogram their devices or hack them in some way, and they had no idea how to take in vulnerability reports or how to deal with them.
789800	793100	It's a very simple step that I'm glad to see most have done.
793760	815500	This is also one industry where most, I've found, are genuinely naive about security. It's not a case of they don't care or they're cheap or something like that. They just did not know, and I've been glad to see that most have stepped up when they realize what the problem is to educate themselves and get things better.
815500	818840	But there's always exceptions.
819740	827600	The first device I want to talk about is the Cockcam. This is one of the crude name devices, but that is its brand name.
829100	844040	This is a genital-mounted webcam. Make of that what you will. It was founded by a group of guys in the UK who came up with this crazy idea. I would not be surprised if a few beers were involved in this.
845060	853960	I managed to get a hold of an early production version in 2018, and things got very interesting very quickly.
854820	867740	So this device is a Wi-Fi enabled camera, and by default it creates its own access point that the mobile app is then used to connect to and then configure the device.
867760	871640	One of those settings is to connect to an external network.
873540	875560	That's kind of scary.
876160	885260	Because it now has an IP address, you run an nmap scan on it, and it was identified as a D-Link 932L webcam.
885800	895700	And you see the pictures there on the slide that you can kind of see where the similar hardware under the surface is being used.
896840	903800	It's got microSD card support for storing the videos, but also will stream to the mobile app for recording.
904760	908880	It's essentially an ARM system on a chip, and it's running BusyBox Linux.
909060	912680	So I can legitimately say, I got rude on a Cockcam.
913280	915240	And continuing to make my mother proud.
916100	920520	I found a lot of common IoT issues that it carried over to IoT.
921080	930200	But when you start thinking about it in terms of this being an adult device, the sort of content that it's being used to generate, the implications get a lot more serious.
931100	938260	There was an FTP server enabled on it that allowed anonymous access with no password as root.
938880	943260	This account had full read and write permissions to the entire file system.
943260	947020	Literally the worst case scenario for this kind of issue.
947600	956060	With this, you could overwrite the password hash and also log in via Telnet then, because you now know the password that you set the hash to.
956660	971360	The streaming server component of the firmware had credentials to the network and other things in a plain text file, including passwords to an update server that wasn't necessarily for the Cockcam product.
971360	979180	This was interesting because it showed that there was a whole bunch of other vendors' components in there that hadn't been sanitized.
979680	987840	So essentially anyone on the network can download any stored videos from the SD card or connect and stream from this device.
988280	992600	The camera firmware contained fragments of other companies' software functionality.
992600	1000240	And this was essentially, as I said, a 932 D-Link camera network webcam.
1000460	1005820	It had the IP camera web interface still in it, if you knew where to look.
1005820	1010320	And that even allowed you to use it to bridge into a Skype session.
1010760	1014440	Not sure I would want to take that phone call, but so be it.
1015240	1021640	And the app was just so full of unnecessary libraries, fragments of other companies' software.
1023240	1029820	Including one previous company that was a remote video doorbell company.
1030300	1034900	They had left the MP3 files for the door sounds in the app.
1036400	1041740	So there were ding-dong sounds in the app for a Cockcam.
1041740	1047820	This is providing me a lifetime of ding-dong jokes that I can legitimately make with this research.
1047820	1050780	Yet another wonderful reason I do this research.
1052480	1057240	So reusing the hardware wasn't necessarily a bad idea.
1057240	1060200	It's sensible, it saves time, saves money.
1060640	1066120	If it's done right, though. If it's not done right, it can actually be a big problem.
1067200	1074440	In this case, a vendor should have had a master repository of all the features that this hardware could have done.
1074440	1080980	But just built in the ones they needed, not built everything in the kitchen sink into this.
1080980	1088100	Because the more functionality, complexity that you build in, the more things that can go wrong.
1088100	1095020	You're going to spend a lot more time debugging it, you're going to have some performance problems, perhaps.
1095500	1099720	It just makes more sense to minimize the things that can go wrong.
1101280	1110540	In this context, with this device, connecting to an external network was built in, but not appropriate for the device.
1110540	1118420	If it had been just its own access point, you connect to it with the app, and it streams to the mobile device,
1118420	1121260	what you do with the videos after that is your problem.
1121260	1129380	But the fact that it connects to an external network, you can see situations where this thing could be theoretically broadcasting out to the internet at large,
1129380	1135740	or to everyone on a public network that you're using this on, if you're in a shared environment like that.
1137340	1141300	Talking to the vendor, the designer and manufacturer was kind of a nightmare.
1141300	1146720	They essentially got railroaded into this design. They went with their spec sheet of what they wanted,
1146720	1155260	and the vendor was like, we'll just take this thing we've already got built, slap a new skin on it, and call it a day.
1155300	1157340	Rename the thing and call it a day.
1158460	1161200	That's not a good way to do things.
1161480	1167620	There's a thing in startup culture right now of minimum viable product,
1167620	1174740	which means just barely get it to work to where the customer will want to buy it, and then ship it.
1174980	1176460	We'll fix it later.
1176720	1185300	Problem is, this also means minimum viable security is often what ends up getting shipped as well.
1185920	1194810	And this is a problem because if you don't have things like an update path or a way to alert users to update,
1195840	1198560	are you going to ever get these things fixed?
1199680	1203760	It may be cheaper, but it will come to haunt you.
1203760	1208000	Be it bad press or, depending on the type of device, lawsuits.
1208960	1218220	Vendors of IoT and IOD need to spot these design manufacturers that push and railroad into designs
1218530	1225520	that aren't necessarily taking their customers' best interests into mind and stop using them.
1226060	1232200	We need to talk amongst each other and say, hey, this vendor turns out a lot of crappy products.
1232200	1236340	Let's stop using them. Let others know.
1236480	1240200	Because there's always new people entering the market with an idea. That's fine.
1240560	1247200	But they need to know that what may be the cheapest vendor has problems.
1247200	1251400	We almost need a Yelp for these kind of manufacturers.
1252940	1258640	Manufacturers are often not concerned about things like updates because there's no money to be made in updates
1258640	1263420	because they sell the hardware and ship the app with it.
1263680	1270460	And then they say, well, why should we add features or fix bugs? People will keep buying this thing.
1270920	1277420	And we have no financial interest in doing that. We're going to move on to the next customer.
1277520	1279760	That's scary and dangerous.
1280480	1288620	And because things like sex carry cultural taboos, insecure adult products could destroy a small company.
1288640	1293960	With what it costs to settle after a lawsuit. Wevibe, who is not a small company.
1294560	1302880	But an issue with their privacy policy in the app actually costs them $5 million in a class action lawsuit.
1302940	1304840	Not a small chunk of change.
1305820	1312100	Failure to understand what you're building can also lead to physical harm as well.
1313700	1315860	The Cock Cage Calamity.
1316620	1319040	Good reason to use chicken coops in the talk.
1320340	1327840	So recently, in coordination with company Pentest Partners, we had to drop essentially an Oday on an IoT product.
1327840	1333900	We didn't actually drop any code or anything because as soon as you looked, you understood the problem.
1334480	1336620	And it was very, very easy to replicate.
1336620	1341500	And I never really wanted to do this to any vendors because I've always found them very good.
1341500	1343900	But our hand was kind of forced.
1345120	1348880	Bad things did end up happening from this, unfortunately, from this disclosure.
1349800	1358100	But we had no choice because if we couldn't alert the public, then even worse things would happen if things happened in a vacuum.
1358240	1363340	The company wasn't aware, at least, what the problem was that we were going to announce.
1363580	1367380	At least have a heads up before bad things started happening.
1367880	1373360	This is a very good opportunity to learn about what not to do when someone reports a vulnerability to your company.
1374500	1377380	The device in question is the Cellmate.
1377380	1383140	It's essentially a male chastity device. It locks around the genitals and is controlled via Bluetooth.
1384460	1387920	A mobile app connects to a REST API backend.
1388240	1396020	The idea is that the wearer has the app on their phone that is paired with the device, but they cannot control it.
1396020	1401480	Another partner is able to decide when to unlock and release the genitals.
1402460	1405560	It's part of a PowerPlay thing.
1406080	1412960	All the functions for this, to unlock, lock, etc., require API access.
1413260	1415240	And that becomes important later.
1416400	1419760	An initial look at the API was very alarming.
1421020	1425320	Queries for member ID information.
1425320	1431080	If you gave it a blank search string, that came up as a wild card in the database.
1431480	1432820	It gave you everything.
1433260	1436880	Absolutely everything about every user.
1436880	1444580	Emails, passwords, in clear text, phone numbers, location data in some cases.
1445060	1448700	When I first looked at this device, this scared me.
1449300	1458860	Due to connection issues from my home internet connection, I never followed up right away.
1458860	1465280	And that particular vulnerability was fixed fairly quickly afterwards when I did check it again.
1465840	1470220	Life unfortunately gets in the way of research, but it was on my radar.
1470220	1472120	It was a device I was aware of.
1472760	1480020	In May of 2020, I was contacted by Mike, who found some issues in the app and the API.
1480200	1483280	They weren't a security researcher, they were a developer.
1483480	1487100	And they wanted to do the right thing and report this.
1487100	1492280	They knew enough to say, this isn't right, this is a problem, this is bad coding.
1493300	1494920	I want them to fix this.
1495380	1504940	So, new of the Internet of Dongs project reached out and asked if I would contact QIUI, the vendor that makes the product,
1504940	1508220	and act as a proxy for them to report this vulnerability.
1508680	1513020	This is something I've actually done a couple of times with the Internet of Dongs project.
1514500	1519060	What they had found was that plain text passwords were exposed,
1519060	1523940	poor or no authentication on certain API calls,
1523940	1534620	and with enough digging, the API would still expose all user details and enough information for remote takeover of accounts,
1534620	1537190	and thereby control of the associated devices.
1538900	1542440	I took their report, some light editing,
1543080	1548120	and passed it along to QIUI, who I had established contact with the CEO,
1548940	1555460	provided them the report, provided offers to explain things, go into detail if they needed to,
1555460	1562480	didn't ask for anything, didn't need any pay or contracts or anything.
1562920	1564620	And then we waited.
1565460	1566920	And waited.
1567500	1572300	Reached out, got assurances, yes, yes, we're working on it, and continued to wait.
1573360	1579040	A few small changes have been made by June 2020, but the whole thing was still very broken.
1579580	1582660	August rolls around, and we're not encouraged.
1583640	1586220	There were no replies at this point.
1586220	1592020	We're inquiring as to what the status was. We're not getting any response.
1592120	1595040	No updates, no progress that we could see.
1595040	1609400	In September, Alex Lomas of Pentest Partners tweeted out their frustration at the state of some teledildonic device security,
1609400	1614300	thinking that it should be up there with healthcare and banking, considering the importance to some people.
1614380	1618620	And was just very frustrated with this particular disclosure he was working on,
1618620	1622520	and the frustration level sounded very familiar.
1624260	1628280	So I reached out, Alex confirmed, yes, it's QIUI.
1628400	1633260	And I said, OK, we have been trying to do disclosure since May.
1633320	1635100	We need to talk.
1635140	1643620	So I got onto a call with them, and confirmed that they had found a lot of the same things we had.
1643780	1652160	We compared notes and decided, OK, we need to get a joint message to this company.
1652900	1657160	Because now, two independent researchers had found the same issues.
1657620	1661740	Later on, a third person actually emerged that had also found these things.
1661740	1668480	So it wasn't long before someone with negative, bad intentions would find this.
1668500	1676980	This was over a span of six months we had been reporting this and encouraging the company and offering help, and they had done practically nothing.
1677460	1685840	We put together combined communication to the company saying that we all knew, we had all been talking, and they very much needed to deal with these issues quickly.
1686640	1691860	More assurances that a new API was coming were made.
1692520	1701440	While that new API was a bit of an improvement, because of backwards compatibility issues they had, they had left the old, insecure API still running.
1701440	1717440	And this is a major design flaw on the device and the app, because the device relied on the API to generate a device-specific token to issue the unlock command or Bluetooth.
1718540	1733740	The device itself had a unique key hard-coded into it that the app would take, send to the API, and then receive a response token that would allow for unlock.
1734160	1738660	There was no mechanical or emergency unlock for this device.
1738660	1753100	Something that is basically clamped around genitals, involving a steel ring, basically to get this thing off would require bolt cutters in a place one typically doesn't want to have bolt cutters.
1753780	1768640	So if there was no API connectivity, or account access was lost, or the person's mobile device broke or whatever, you couldn't get the unlock token and there was no way to release the device, even in an emergency.
1770160	1784980	This concerned us greatly, because beyond personal identification disclosures, we were very urgent in our warnings, because they were about to release a couple of new devices that scared us.
1785780	1793160	One was an anal chastity device modeled after a medieval torture device called the Pair of Anguish.
1794160	1804400	Another was a remote-controlled shock collar. You could shock someone over the internet with your Bluetooth-enabled shock collar, basically.
1805440	1818740	One can imagine the sort of situations that could occur if somebody got remote access to their API backend and could, say, issue shocks to everyone all at once.
1819080	1821980	What if they found a way to up the voltage?
1821980	1825180	This is scary stuff.
1825300	1838900	Because their design, partially due to the communities that these devices are marketed to, they didn't design for failure or emergencies.
1839040	1851860	Which is interesting, because with the BDSM community that would be a fan of these devices, safety is very much a key component of their activities.
1853340	1864160	A manual release method may be counteractive to the purpose of the device for some people, but emergencies happen, and that needs to be considered.
1865240	1878140	So in late 2020, September of 2020, with no response and no plan, just a very beta test app that barely worked, many of the same API issues still existed, even in the new one.
1878140	1880360	They still had not shut down the old API.
1882020	1889840	We basically threw down the gauntlet and said, you have a week to come up with a workable plan to fix these issues.
1889940	1901460	We weren't specifying that they had to have a full timeline, but they had to show that they were actively working on this, and when they would be able to shut down the old API.
1901860	1909560	We were more than willing to give them assistance and give them more time if they had a plan, and they never responded.
1910120	1916840	So on October 6th, Pentest partners and I released information about our struggles to report the issues.
1917500	1925340	And the problem is that when you shine a light on something like this, other people can look, and because it was so easy for us to find, it was so easy for them to find.
1925340	1930800	We didn't release any technical details, but it wasn't hard to find.
1931120	1933540	And then all hell broke loose.
1933540	1944980	One fun thing, though, was we made the BBC cryon, the text at the bottom of BBC World. That's sort of a new achievement.
1946420	1960980	But then users on their forums started getting messages that they were locked out of their accounts and were demanding Bitcoin in order to restore access.
1962360	1965840	We now live in a day and age of sex toy ransomware.
1967900	1971960	Yeah, I had the same kind of thought.
1973220	1981220	It didn't take long for people to reverse engineer those old apps and using the old API to discover the same things.
1981220	1995060	They basically just iterated through user IDs, a standard set of commands to transfer the device, control the device to the attacker, and then automatically send a message to them to demand Bitcoin.
1995540	1998000	The user forums were freaking out.
1998480	2003880	And in and of itself, that was interesting because some people were very incensed at being locked out.
2003880	2007400	They were incensed at the company or whoever was doing this.
2007400	2012140	Other people were kind of titillated at the idea of being locked out permanently from their devices.
2012260	2020440	Again, we don't judge, but it was a serious issue when you really get down to it.
2020940	2025060	And this sort of thing had to happen with some device sooner or later.
2026100	2032640	It's just unfortunate that we couldn't get them to fix it before something bad had to happen to people.
2034560	2043780	QIUI put out a message with an escape method if people should find themselves locked out that involved prying with a screwdriver.
2043920	2050040	Again, not something that I was particularly comfortable recommending to people.
2051680	2059520	Pretty much every escape methodology required damaging or destroying the device, which these are not cheap devices.
2060440	2066080	They very quickly put out some app updates, but they failed to take down the old API.
2066080	2073780	Because again, until everyone had been moved to the new APIs, they couldn't shut down the old one.
2073780	2076700	So they literally painted themselves into a corner.
2078200	2086980	Eventually they realized where the source of their problem was and basically just issued an unlock to everyone.
2086980	2090580	Made it so that the new app could unlock any of them.
2090900	2097500	This allowed people the opportunity, if they shut down the API, to still be able to get out, which is something that should have been there from day one.
2098540	2107060	They quickly migrated. As you can see in their message, they still required you to sideload the app.
2107060	2114840	Meaning you probably wouldn't be getting automated updates like you would from the Google Play Store or any of the other app stores.
2114840	2118120	That's a whole other talk in and of itself of problems there.
2118680	2126080	The new versions were definitely better in security, but still far, far from where one would hope that they would be.
2126800	2132680	This is a company that just left their entire infrastructure open to the world.
2133680	2137420	And one of their solutions was to start doing real name authentication.
2137420	2146040	They required a driver's license or ID card or something, and pictures thereof, to sign up for this app.
2147220	2154640	This made no sense, because if somebody is going to do something bad, they're going to find a way around this.
2154640	2158140	And now you've just created even more of a treasure trove for them.
2158740	2166820	There's an idea in security where collect as little information as you have to about your customers.
2167420	2169360	Because you don't have to protect as much.
2170380	2176980	Particularly with things like sex toys, if you don't collect it, then you don't have to worry about it being lost.
2177720	2179520	This makes perfect sense.
2180660	2189280	And this past January, VXUnderground, who collects malware samples, put out this rather amusing tweet saying,
2189280	2196080	We'd like to uncomfortably announce we've received the source code to IoT Ransomware that targets male chastity devices.
2197280	2214280	Reading through the code was actually rather interesting, because it was literally just iterate through user IDs, get their password through the API call, log in, change the ownership, send a message.
2214400	2217360	This was ridiculously simple.
2217360	2224700	It's not ransomware per se, because it wasn't actually encrypting the device or anything, it was just changing a password on an account.
2225200	2230760	But this sort of attack is certainly not going to be the last on any of these kind of platforms.
2231100	2232860	So it was interesting to see.
2235500	2244580	Another last IoT fail I wanted to discuss, while not necessarily a sex toy, it was a safety product that makes the danger even greater.
2245700	2254040	In 2017, I noticed an app in Google Play Store for advertising for a Bluetooth-enabled piece of jewelry.
2254640	2265860	Now, this was called the Ivy, and it was a brooch or a bracelet that was Bluetooth-enabled, and the large stone you see there was basically a large button.
2265860	2278740	So you could tap it once, twice, three times, and it was paired with an app that would send a text or a voice alert if you felt in danger or something.
2278740	2290620	So you could basically be at a bar with friends and send a message to your friends saying, hey, come rescue me, this person that's talking to me is really boring, come get me.
2292280	2293700	Kind of a good idea.
2295160	2299980	Bluetooth LE, mobile backend, web API, pretty standard for IoT stuff.
2300080	2306560	I grabbed the app just out of curiosity and took it apart to see what made it tick.
2306700	2308860	I really wish I hadn't.
2309840	2315140	Because within two minutes after reverse engineering the app, I was looking at personal identifying information.
2315140	2319920	Names, addresses, email addresses, phone numbers, the whole shebang.
2319920	2324280	There's a hard-coded IP for their API server in it.
2324680	2331560	When you visited that IP, every directory was indexed with no authentication needed.
2331660	2334780	It showed you every file on that server.
2336160	2344000	You could use their web service, the PHP web service, to iterate through user IDs.
2344100	2346900	Pull up all the user account names.
2347560	2349200	You could see their usage history.
2349920	2352520	How many times they've been used, who it had called.
2353180	2355180	Pull down all their profile photos.
2355800	2364080	You could even see all the alert messages that the users had recorded to be sent in case of emergencies.
2364580	2368600	There were some in there that were not pleasant, shall we say.
2370040	2377040	One of the more interesting discoveries in one of these directories was an iOS developer private key.
2377040	2383280	This is what was used to sign their iOS app before it went to the Apple Store.
2383480	2389080	I could sign the new version of their app with this key and it would be accepted by Apple.
2389780	2391300	That's terrifying.
2391960	2401340	There's backup files for pretty much every configuration file on the server, including the root MySQL password.
2402500	2411740	A .git folder in the web root that had credentials to the git repo with all their hard-coded secrets and everything.
2411780	2416520	These credentials also appeared to have push access to the repo so I could make changes.
2416980	2419400	PHP MyAdmin with default credentials.
2419400	2428560	It was unconfigured, but we had the password so I could even make myself access to the database with a nice GUI for an end.
2428560	2433220	And text files lying around for even other projects by the same company.
2433900	2436540	And this was only after 20 minutes of work.
2436940	2439500	This was so incredibly simple.
2440120	2444660	It was scary. And this is a safety device.
2445100	2449180	And they leaked everything. They did zero for security.
2449540	2452860	I tried many, many times to get a hold of this company.
2453160	2455220	Never a response. No fixes.
2456380	2461140	Fortunately, as of early 2019, this is no longer on sale.
2461180	2469180	It's still listed on Amazon and such, but it was just sold out and the website for it is no longer there.
2469960	2472400	This is the sort of thing that could easily get someone killed.
2473140	2479340	You could redirect alerts, or if someone was being stalked, this could provide all sorts of other information.
2480060	2484140	Probably the worst IoT fail I've found so far, and the sort of thing that keeps me up at night.
2485220	2488500	Oh, and this company also makes medical equipment.
2490000	2493160	Let's hope they're not recycling code for that.
2493180	2496940	I mean, it was things like blood pressure monitors and non-invasive stuff.
2496940	2505040	But still, that's terrifying that the same company would do medical devices doing something like this.
2505820	2510340	Ostensibly a good idea, but the worst implementation possible.
2511400	2513240	But there is help and hope.
2514740	2523160	Now, the automotive regulations, like in our building a car example earlier, there's a lot more there.
2523180	2526780	But we're just starting to see some regulation and advice for IoT.
2527560	2532400	In 2018, the UK put out their IoT Code of Practice for security.
2533100	2535060	And it was really simple, basic things.
2535060	2540440	Remember I said that we've been dealing with these kind of problems for 15 years, and we've solved most of them.
2540440	2542480	Things like no default passwords.
2542480	2545300	Have a vulnerability disclosure policy.
2545300	2547660	Have a method for secure updates.
2548000	2550860	Store credentials securely.
2551080	2554440	Make sure your communications channels are secure.
2554800	2557460	Least privilege, least attack surface.
2557460	2561440	Don't give everybody access to everything.
2562160	2567580	Verify updates, verify the software integrity, see if something's been tampered with.
2567720	2569880	Protect personal information.
2571780	2576200	Australia, in 2020, released their Code of Practice for security IoT.
2576560	2581640	And not by accident, it's basically the same as the UK one.
2581680	2584800	Because a good idea is a good idea.
2584800	2587320	And they just decided to continue going with that.
2589000	2599300	And amongst a lot of other news going on, something that was missed was that in December 2020, the US signed the IoT Cybersecurity Improvement Act.
2599880	2609020	Now, this bill required NIST and OMB to take specified steps to increase cybersecurity for Internet of Things devices.
2609100	2619120	And basically, NIST has been asked to come up with standards, and the US government will require those standards to be met for any device that it buys.
2619740	2628140	What those standards are remain to be determined, but I think we can guess that they're going to be based pretty closely on the UK and Australian models.
2628920	2639220	Now, you know, the US government being a sizable market, this is going to create a sizable market for devices that meet this standard.
2639280	2646580	And that's an incentive to build for secure environments, you know, for secure standards.
2646840	2649280	Because why limit your market?
2649340	2653160	If you build a security, you can sell it to those that don't care about security and those that actually do.
2653660	2660980	This won't necessarily help the Internet of Dogs market, you know, because I don't think the US government buys a hell of a lot of connected sex toys.
2661700	2662580	I don't know.
2663300	2670660	But at least it's a standard that we can point to and say, hey, is it a bad idea to meet this level?
2671300	2674320	Build secure and you won't have any limits on the markets.
2676880	2678440	Closing thoughts.
2678440	2683520	We've created these tools and frameworks to build some absolutely amazing things.
2683660	2697060	But we haven't required or made it so that we need to understand the underlying technologies and previous experience as to, you know, what to do, what not to do.
2697060	2713100	So we're putting in the hands of people who don't know any better, a Homer Simpson, giving them the tools to build a car from scratch without knowing, you know, the 80 or almost 100 years of experience of what not to do.
2713780	2717820	So anyone can design and build a car, but it doesn't mean they can do it well.
2718460	2723980	Anybody can come up with an idea for an IoT device, doesn't mean they can do it well.
2724940	2728960	Barrier to entry has been made so incredibly low.
2729740	2738120	It allows for truly terrible designs that, you know, either through ignorance, indifference, or just simple greed.
2738160	2745120	You know, these things will make it to market without any oversight, and the consumers generally don't know any better.
2745120	2747260	You know, they go for the cheapest device.
2747260	2752900	Well, cheapest is unfortunately often the one with the most insecure implementations.
2754140	2759140	You know, I'm not a huge fan of regulations and standards.
2759620	2768980	I think they should be minimal, but they are needed to help establish a baseline or at least a common language that everybody can talk and point at and require.
2769660	2773240	Because these are things that we've been dealing with for 15 or 20 years.
2773240	2774160	This should not be new.
2774160	2777480	We've solved these, we just need to clue everybody in.
2777480	2788140	Because no one wants or intends to build a device that's insecure and, you know, has their customer's data compromised as a design feature.
2788200	2793160	Nobody does that. You're probably not going to be in business, you know, that long.
2793600	2800140	But unfortunately, a lot of companies that do this are in business far too long because they never get held to account.
2802460	2811300	Tools and learnings on these devices in the software should be made easier to digest for non-technical people.
2811300	2818220	InfoSec is very bad for error messages that are very confusing or hard to understand.
2818220	2828300	Think, you know, every time you see an SSL error message, how many people's brains just turn off and they don't understand what it's saying.
2829640	2834740	You know, we need to limit the ability to do insecure choices.
2834740	2842480	Why we are allowing, you know, HTTP when HTTPS is so simple now.
2842820	2848940	You know, this should be something that is by default in all these frameworks.
2848940	2852540	You have to put effort in to turn that off.
2853140	2859340	We need to build bridges with industries that previously have not had to deal with these problems.
2860160	2864540	Because a lot of them just don't know. They don't interact with people like us.
2864540	2870840	We need to reach out to industries and companies that are making the leap into IoT and offer some guidance and support.
2871640	2878460	And we also, InfoSec and public in general, need to realize there are risque industries.
2878460	2885840	Adult industries are a major one that, you know, some companies are like, well, I don't want to be associated with that.
2885840	2889280	And it's like, these are people. They can be hurt.
2889820	2892340	You know, these are legal devices. People are buying them.
2893520	2895700	It's just another IoT device.
2896280	2899980	We need to realize and get over some of these stigmas.
2901480	2903600	Outsourcing may be cost effective.
2904320	2911060	But you're putting your control, and in the case of some of these IoT devices, other things, in someone else's control.
2911740	2915440	They may not have your best interests in mind because they want to keep their costs down.
2916500	2919480	You may want to bring some of that design in-house.
2919480	2925720	You know, have a roughed out product design that you then take to somebody else.
2925720	2935220	But have the standards already set for security and privacy and attention to things like privacy of consumer information.
2935940	2946860	The same people making a poorly insecure fridge could be designing something more important later on if a company has a track record of these.
2946860	2955140	It may be that a fridge manufacturer outsources it to another company that outsources it again to somebody else.
2955200	2961240	We need to be identifying who those root causes are that are coming up with a lot of these poor designs and stop using them.
2961440	2965780	And last but not least, we need to stop buying insecure products.
2966680	2970420	They may be cheap. They're plentiful out there.
2970420	2977440	We need to do our research more as a society and just say, no, we don't want that.
2978700	2980420	Thank you very much.
2980480	2989460	My website for the Internet of Dongs, email, and thanks to CircuitSwan, Nikita, and Straith for their advice on this.
2989980	2992740	And I look forward to questions. Thank you.
