WEBVTT

00:05.780 --> 00:06.680
Hello.

00:06.680 --> 00:09.480
Welcome to my talk, called IoT Fails.

00:09.480 --> 00:12.760
Learning from sex toys how not to suck or blow.

00:14.020 --> 00:15.380
So who am I?

00:15.380 --> 00:23.120
I am RenderMan, a very proud Canadian hacker, researcher, security and penetration tester.

00:23.340 --> 00:30.040
Founder and researcher for the Internet of Dongs project, basically where we test the security of internet-connected sex toys.

00:30.040 --> 00:36.720
I am Pope of the Church of Wi-Fi, and our team is the two-time champion for Hacker Jeopardy as of this year.

00:37.000 --> 00:45.680
Been to every DEF CON since 1999, 2020 notwithstanding, of course, and look forward to continuing to do so in the future.

00:47.640 --> 00:49.300
So I want to be serious.

00:49.620 --> 00:54.600
This will be a discussion that does involve sex toys and other intimate devices.

00:55.100 --> 01:00.020
This means some language may be considered crude by some, possibly offensive to others.

01:00.640 --> 01:04.800
If you're likely to be offended, then I suggest you don't watch this video.

01:05.240 --> 01:13.900
I do try and keep things PG-rated, but some items have a name that could be considered offensive to some.

01:13.960 --> 01:16.520
These are legal devices, sold worldwide.

01:16.820 --> 01:29.740
Any humor that may be injected is objective aspects of the devices, and in no way making fun of the users or their lifestyles or any aspect thereof.

01:30.040 --> 01:39.500
These people who use these products and buy them deserve the same safety, security, and privacy as any other consumer of IoT devices.

01:40.580 --> 01:45.060
So IoT security in general is a dumpster fire.

01:45.060 --> 01:46.960
It's almost an oxymoron.

01:46.980 --> 01:56.260
Every week, some new device has a hard-coded password or they leak personally identifying information everywhere.

01:57.080 --> 02:03.680
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.

02:04.960 --> 02:08.880
Mistakes are being made in IoT that were made 15 years ago.

02:08.880 --> 02:12.860
Stuff we thought we dealt with, thought that we were past.

02:12.860 --> 02:15.560
We know how to solve these things, but they're coming back.

02:15.560 --> 02:22.760
Things like default passwords should be something that's long past.

02:22.760 --> 02:27.940
There's very little discussion about the roots of the problem, as I see them anyways.

02:28.700 --> 02:33.260
And things need to change in this industry before people start getting hurt.

02:35.120 --> 02:37.980
But first, let's build a car.

02:38.000 --> 02:43.720
Obviously not a real car, but more as a metaphor, because this is something a lot more people are familiar with.

02:44.840 --> 02:54.160
A car should have four wheels, steering wheel, seats, engine, brakes, doors, windshields, mirrors, all the usual things.

02:55.060 --> 03:03.480
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.

03:03.680 --> 03:10.880
Seats are inside, not on the roof, windshield in the front, the usual kind of what delineates a car.

03:12.000 --> 03:27.640
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.

03:27.680 --> 03:29.960
Okay, so they prove it for sale.

03:30.760 --> 03:35.840
And then they find that after 5,000 kilometers, every car explodes, killing all the occupants.

03:36.140 --> 03:38.320
Obviously this is a bit of a design flaw.

03:39.180 --> 03:45.680
But you hear arguments like, well, you didn't specify the car shouldn't explode after 5,000 kilometers.

03:45.840 --> 03:52.260
If this was IoT, they'd say, well, the user wasn't operating it like they expected them to.

03:52.260 --> 03:57.380
We never actually assumed that they would try to go faster than the speed limit.

03:58.460 --> 04:05.720
Well, it worked because it was designed to meet the acceptance on the test track, because that's the only provisions we had.

04:05.720 --> 04:13.340
We had a very narrow time on the test track, so we only tested it to 100 kilometers, not 5,000.

04:14.460 --> 04:19.960
Or things like, it met nearly every non-existent regulation for the industry.

04:19.960 --> 04:30.200
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.

04:31.960 --> 04:35.060
Right now, we seem to be building a lot of Homers.

04:35.720 --> 04:43.340
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.

04:43.900 --> 04:55.720
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.

04:55.760 --> 05:03.420
So they take this crazy design and make this car, which is a complete monstrosity that ends up actually destroying the company.

05:04.100 --> 05:07.240
You see this with a lot of IoT situations.

05:07.280 --> 05:12.620
It's like, well, you didn't specify that it had to be secure in the design documents.

05:13.320 --> 05:13.980
Really?

05:14.060 --> 05:16.400
Why should that be necessary to specify?

05:18.140 --> 05:25.780
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.

05:26.020 --> 05:32.920
Previously, we've only built devices that didn't need to be secure, or it wasn't a priority.

05:33.700 --> 05:41.620
We thought it was secure, we got an SSL certificate, but don't know how to use it and install it.

05:42.240 --> 05:47.860
Your design specs didn't say we couldn't just store everything in plain text in an online bucket with no password.

05:48.580 --> 05:51.820
Again, why should this be something you have to specify?

05:52.560 --> 05:57.200
We always assumed the user would always have connectivity, and the servers would never go down.

05:57.200 --> 06:14.540
This is something that's caused a great many issues, where an assumption of always-on internet connectivity, things like Amazon outages, or the local client's internet connection goes down.

06:14.920 --> 06:19.060
These should not be showstoppers, or put people at risk.

06:20.340 --> 06:25.940
I've spoken to many Internet of Things, Internet of Dongs vendors, and they always say the same thing.

06:25.940 --> 06:29.920
Privacy and security of our customers is of the utmost importance.

06:30.320 --> 06:34.500
This is the InfoSec equivalent of our thoughts and prayers are with the victims.

06:35.360 --> 06:37.940
Platitude that does nothing.

06:38.840 --> 06:41.200
And it should be secure.

06:41.540 --> 06:44.280
It should be a default for any design.

06:44.360 --> 06:46.900
Why should it be necessary to specify?

06:48.160 --> 06:55.160
And part of that problem is many companies, they'll see the headlines about IoT hacks.

06:55.160 --> 07:05.780
They'll see Amazon buckets that are wide open, leaking all the customer's information, but they don't realize that they're an IoT vendor.

07:05.780 --> 07:11.300
That they're now in the same ballpark as a thermostat, a baby monitor, or a refrigerator.

07:11.940 --> 07:15.380
A refrigerator manufacturer might say, well, we build appliances.

07:15.380 --> 07:17.780
We're not an IoT company.

07:17.780 --> 07:19.300
It's like, well, yes, you are.

07:20.820 --> 07:35.500
And because I've had so many of these conversations where I've brought literally their entire user database to them and said, hey, you have a problem, it's amazing to watch the change that happens just after one conversation when you point out you're a software company now.

07:36.640 --> 07:47.260
Because in Internet of Dongs and adult intimate devices, most of them went from a hardware device maker to a software and service provider pretty much overnight.

07:47.480 --> 07:49.540
And they never realized it.

07:50.060 --> 07:57.960
They may have had good people on staff for material engineering, design, some electrical, but never anything networked.

07:57.960 --> 08:00.740
They never had to deal with the problems of connectivity.

08:00.980 --> 08:07.100
One of my favorite sayings is that on the Internet, you're 100 milliseconds away from every jackass on the planet.

08:07.100 --> 08:13.480
Meaning if you connect a device to the Internet, somebody somewhere is going to be poking and prodding at it.

08:14.440 --> 08:17.840
And that changes the threat dynamics dramatically.

08:17.840 --> 08:31.680
A previous analog device that just vibrated or buzzed or whatever didn't have the possibility of somebody remotely reaching out and connecting to this and causing it to do things that maybe it wasn't meant to.

08:32.580 --> 08:36.240
Many vendors just rolled their own systems.

08:36.240 --> 08:39.680
They didn't use available frameworks that had been vetted and trusted.

08:40.240 --> 08:42.720
They thought they knew how to implement an API.

08:43.640 --> 08:45.520
For some, they did a good job.

08:45.520 --> 08:47.120
Others, not so much.

08:48.620 --> 08:56.280
Many companies will go to a third party and say, hey, we want a device that does this, this, this, and this.

08:57.240 --> 09:01.220
And the company will dutifully design and make to that stack.

09:01.220 --> 09:02.860
But they don't go to DEF CON.

09:02.860 --> 09:04.620
They don't hang out with people like us.

09:04.620 --> 09:07.140
They don't know what questions to ask.

09:07.140 --> 09:13.460
So when they make assumptions like it's secure because, well, shouldn't it be?

09:13.840 --> 09:16.500
Or they ask the company, well, is it secure?

09:16.500 --> 09:26.960
They don't know to ask, well, what are all the outside connections, SSL and TLS encrypted?

09:26.960 --> 09:29.220
What version of TLS are you using?

09:29.220 --> 09:30.040
Those sort of things.

09:30.040 --> 09:32.280
They don't know what they don't know.

09:35.060 --> 09:38.340
Much of my IoT work has been with the Internet of Dongs project.

09:38.720 --> 09:45.300
It was started basically because I wanted to learn mobile security, web app, API security.

09:45.800 --> 09:48.420
At the time, I was being given a bunch of projects for that.

09:48.420 --> 09:50.820
And most of them were fairly secure.

09:50.820 --> 09:56.580
And I needed something with some low-hanging fruit to kind of cut my teeth on.

09:57.080 --> 10:01.460
Many of these devices and apps have text, voice, video, and others.

10:02.200 --> 10:08.400
Other devices will sync with video and even allow bidirectional control from the devices themselves.

10:09.180 --> 10:10.780
This is rather amazing.

10:10.780 --> 10:18.840
You have these apps that are essentially a new communications platform, like Skype or Google Chat or anything like that.

10:18.980 --> 10:28.800
But it's being run by companies that don't realize this, or they've outsourced so much of it that it's being run by people who don't have vested interest in this.

10:29.620 --> 10:35.060
And it's a very fascinating field of study, especially in these socially distant times.

10:35.510 --> 10:39.200
Relationships are suffering, and this is a way for people to stay close.

10:40.480 --> 10:49.050
These kind of devices have a unique set of challenges because they are so very intimate.

10:50.160 --> 10:57.800
The privacy and security expectations from the users is much, much higher and has some very unique challenges, too.

10:58.900 --> 11:03.140
So it's something that a lot of people should be paying more attention to.

11:03.360 --> 11:13.480
No one else was seriously looking at this when I started the project in 2016, and I have no embarrassment in pursuing this, and I'm actually very proud of the work I've done.

11:14.020 --> 11:17.400
Because the things that I have found have been terrible and terrifying.

11:20.240 --> 11:26.360
A lot of devices will give data to the vendor, telemetry and stuff like that.

11:26.360 --> 11:32.940
How many times a day your connected fridge is being opened each day may not mean a lot to people.

11:32.940 --> 11:37.360
Some people are like, OK, maybe I snack a lot and open the fridge too often.

11:38.020 --> 11:45.460
But how many times a day you use your sex toy, that means a lot of different things to people in their fridge.

11:46.180 --> 11:53.440
Cultural implications, you know, taboos and shame can have severe consequences.

11:53.440 --> 12:05.380
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.

12:07.300 --> 12:13.680
Most of these devices are a Bluetooth device connected to a mobile app, some sort of web API.

12:14.360 --> 12:22.020
There's obviously exceptions, but almost all of them use common off-the-shelf chipsets from Nordic, TI, whoever.

12:22.020 --> 12:34.160
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.

12:34.800 --> 12:42.280
So it's a very interesting way of looking at the industry through this, frankly, under-observed branch.

12:43.940 --> 12:48.560
Normally I follow a policy of coordinating disclosure with the vendors.

12:48.560 --> 12:50.820
I've established a good relationship with many.

12:50.820 --> 12:54.060
I've helped many of them set up a vulnerability disclosure program.

12:54.060 --> 13:09.520
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.

13:09.800 --> 13:13.100
It's a very simple step that I'm glad to see most have done.

13:13.760 --> 13:20.420
This is also one industry where most, I've found, are genuinely naive about security.

13:20.420 --> 13:24.080
It's not a case of they don't care or they're cheap or something like that.

13:24.080 --> 13:35.500
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.

13:35.500 --> 13:38.840
But there's always exceptions.

13:39.740 --> 13:43.000
The first device I want to talk about is the Cockcam.

13:43.160 --> 13:47.600
This is one of the crude name devices, but that is its brand name.

13:49.100 --> 13:52.420
This is a genital-mounted webcam.

13:53.680 --> 13:55.340
Make of that what you will.

13:55.700 --> 14:00.640
It was founded by a group of guys in the UK who came up with this crazy idea.

14:00.640 --> 14:04.040
I would not be surprised if a few beers were involved in this.

14:05.060 --> 14:13.960
I managed to get a hold of an early production version in 2018, and things got very interesting very quickly.

14:14.820 --> 14:27.740
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.

14:27.760 --> 14:31.640
One of those settings is to connect to an external network.

14:33.540 --> 14:35.560
That's kind of scary.

14:36.160 --> 14:45.260
Because it now has an IP address, you run an nmap scan on it, and it was identified as a D-Link 932L webcam.

14:45.800 --> 14:55.700
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.

14:56.840 --> 15:03.800
It's got microSD card support for storing the videos, but also will stream to the mobile app for recording.

15:04.760 --> 15:08.880
It's essentially an ARM system on a chip, and it's running BusyBox Linux.

15:09.060 --> 15:12.680
So I can legitimately say, I got rude on a Cockcam.

15:13.280 --> 15:15.240
And continuing to make my mother proud.

15:16.100 --> 15:20.520
I found a lot of common IoT issues that it carried over to IoT.

15:21.080 --> 15:30.200
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.

15:31.100 --> 15:38.260
There was an FTP server enabled on it that allowed anonymous access with no password as root.

15:38.880 --> 15:43.260
This account had full read and write permissions to the entire file system.

15:43.260 --> 15:47.020
Literally the worst case scenario for this kind of issue.

15:47.600 --> 15:56.060
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.

15:56.660 --> 16:11.360
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.

16:11.360 --> 16:19.180
This was interesting because it showed that there was a whole bunch of other vendors' components in there that hadn't been sanitized.

16:19.680 --> 16:27.840
So essentially anyone on the network can download any stored videos from the SD card or connect and stream from this device.

16:28.280 --> 16:32.600
The camera firmware contained fragments of other companies' software functionality.

16:32.600 --> 16:40.240
And this was essentially, as I said, a 932 D-Link camera network webcam.

16:40.460 --> 16:45.820
It had the IP camera web interface still in it, if you knew where to look.

16:45.820 --> 16:50.320
And that even allowed you to use it to bridge into a Skype session.

16:50.760 --> 16:54.440
Not sure I would want to take that phone call, but so be it.

16:55.240 --> 17:01.640
And the app was just so full of unnecessary libraries, fragments of other companies' software.

17:03.240 --> 17:09.820
Including one previous company that was a remote video doorbell company.

17:10.300 --> 17:14.900
They had left the MP3 files for the door sounds in the app.

17:16.400 --> 17:21.740
So there were ding-dong sounds in the app for a Cockcam.

17:21.740 --> 17:27.820
This is providing me a lifetime of ding-dong jokes that I can legitimately make with this research.

17:27.820 --> 17:30.780
Yet another wonderful reason I do this research.

17:32.480 --> 17:37.240
So reusing the hardware wasn't necessarily a bad idea.

17:37.240 --> 17:40.200
It's sensible, it saves time, saves money.

17:40.640 --> 17:42.440
If it's done right, though.

17:42.440 --> 17:46.120
If it's not done right, it can actually be a big problem.

17:47.200 --> 17:54.440
In this case, a vendor should have had a master repository of all the features that this hardware could have done.

17:54.440 --> 18:00.980
But just built in the ones they needed, not built everything in the kitchen sink into this.

18:00.980 --> 18:08.100
Because the more functionality, complexity that you build in, the more things that can go wrong.

18:08.100 --> 18:15.020
You're going to spend a lot more time debugging it, you're going to have some performance problems, perhaps.

18:15.500 --> 18:19.720
It just makes more sense to minimize the things that can go wrong.

18:21.280 --> 18:30.540
In this context, with this device, connecting to an external network was built in, but not appropriate for the device.

18:30.540 --> 18:41.260
If it had been just its own access point, you connect to it with the app, and it streams to the mobile device, what you do with the videos after that is your problem.

18:41.260 --> 18:55.740
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, or to everyone on a public network that you're using this on, if you're in a shared environment like that.

18:57.340 --> 19:01.300
Talking to the vendor, the designer and manufacturer was kind of a nightmare.

19:01.300 --> 19:03.520
They essentially got railroaded into this design.

19:03.520 --> 19:15.260
They went with their spec sheet of what they wanted, 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.

19:15.300 --> 19:17.340
Rename the thing and call it a day.

19:18.460 --> 19:21.200
That's not a good way to do things.

19:21.480 --> 19:34.740
There's a thing in startup culture right now of minimum viable product, which means just barely get it to work to where the customer will want to buy it, and then ship it.

19:34.980 --> 19:36.460
We'll fix it later.

19:36.720 --> 19:45.300
Problem is, this also means minimum viable security is often what ends up getting shipped as well.

19:45.920 --> 19:58.560
And this is a problem because if you don't have things like an update path or a way to alert users to update, are you going to ever get these things fixed?

19:59.680 --> 20:03.760
It may be cheaper, but it will come to haunt you.

20:03.760 --> 20:08.000
Be it bad press or, depending on the type of device, lawsuits.

20:08.960 --> 20:25.520
Vendors of IoT and IOD need to spot these design manufacturers that push and railroad into designs that aren't necessarily taking their customers' best interests into mind and stop using them.

20:26.060 --> 20:32.200
We need to talk amongst each other and say, hey, this vendor turns out a lot of crappy products.

20:32.200 --> 20:34.200
Let's stop using them.

20:34.600 --> 20:36.340
Let others know.

20:36.480 --> 20:39.120
Because there's always new people entering the market with an idea.

20:39.120 --> 20:40.200
That's fine.

20:40.560 --> 20:47.200
But they need to know that what may be the cheapest vendor has problems.

20:47.200 --> 20:51.400
We almost need a Yelp for these kind of manufacturers.

20:52.940 --> 21:03.420
Manufacturers are often not concerned about things like updates because there's no money to be made in updates because they sell the hardware and ship the app with it.

21:03.680 --> 21:08.320
And then they say, well, why should we add features or fix bugs?

21:08.320 --> 21:10.460
People will keep buying this thing.

21:10.920 --> 21:15.440
And we have no financial interest in doing that.

21:15.440 --> 21:17.420
We're going to move on to the next customer.

21:17.520 --> 21:19.760
That's scary and dangerous.

21:20.480 --> 21:28.620
And because things like sex carry cultural taboos, insecure adult products could destroy a small company.

21:28.640 --> 21:31.520
With what it costs to settle after a lawsuit.

21:31.520 --> 21:33.960
Wevibe, who is not a small company.

21:34.560 --> 21:42.880
But an issue with their privacy policy in the app actually costs them $5 million in a class action lawsuit.

21:42.940 --> 21:44.840
Not a small chunk of change.

21:45.820 --> 21:52.100
Failure to understand what you're building can also lead to physical harm as well.

21:53.700 --> 21:55.860
The Cock Cage Calamity.

21:56.620 --> 21:59.040
Good reason to use chicken coops in the talk.

22:00.340 --> 22:07.840
So recently, in coordination with company Pentest Partners, we had to drop essentially an Oday on an IoT product.

22:07.840 --> 22:13.900
We didn't actually drop any code or anything because as soon as you looked, you understood the problem.

22:14.480 --> 22:16.620
And it was very, very easy to replicate.

22:16.620 --> 22:21.500
And I never really wanted to do this to any vendors because I've always found them very good.

22:21.500 --> 22:23.900
But our hand was kind of forced.

22:25.120 --> 22:28.880
Bad things did end up happening from this, unfortunately, from this disclosure.

22:29.800 --> 22:38.100
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.

22:38.240 --> 22:43.340
The company wasn't aware, at least, what the problem was that we were going to announce.

22:43.580 --> 22:47.380
At least have a heads up before bad things started happening.

22:47.880 --> 22:53.360
This is a very good opportunity to learn about what not to do when someone reports a vulnerability to your company.

22:54.500 --> 22:57.380
The device in question is the Cellmate.

22:57.380 --> 22:59.700
It's essentially a male chastity device.

22:59.700 --> 23:03.140
It locks around the genitals and is controlled via Bluetooth.

23:04.460 --> 23:07.920
A mobile app connects to a REST API backend.

23:08.240 --> 23:16.020
The idea is that the wearer has the app on their phone that is paired with the device, but they cannot control it.

23:16.020 --> 23:21.480
Another partner is able to decide when to unlock and release the genitals.

23:22.460 --> 23:25.560
It's part of a PowerPlay thing.

23:26.080 --> 23:32.960
All the functions for this, to unlock, lock, etc., require API access.

23:33.260 --> 23:35.240
And that becomes important later.

23:36.400 --> 23:39.760
An initial look at the API was very alarming.

23:41.020 --> 23:45.320
Queries for member ID information.

23:45.320 --> 23:51.080
If you gave it a blank search string, that came up as a wild card in the database.

23:51.480 --> 23:52.820
It gave you everything.

23:53.260 --> 23:56.880
Absolutely everything about every user.

23:56.880 --> 24:04.580
Emails, passwords, in clear text, phone numbers, location data in some cases.

24:05.060 --> 24:08.700
When I first looked at this device, this scared me.

24:09.300 --> 24:18.860
Due to connection issues from my home internet connection, I never followed up right away.

24:18.860 --> 24:25.280
And that particular vulnerability was fixed fairly quickly afterwards when I did check it again.

24:25.840 --> 24:30.220
Life unfortunately gets in the way of research, but it was on my radar.

24:30.220 --> 24:32.120
It was a device I was aware of.

24:32.760 --> 24:40.020
In May of 2020, I was contacted by Mike, who found some issues in the app and the API.

24:40.200 --> 24:43.280
They weren't a security researcher, they were a developer.

24:43.480 --> 24:47.100
And they wanted to do the right thing and report this.

24:47.100 --> 24:52.280
They knew enough to say, this isn't right, this is a problem, this is bad coding.

24:53.300 --> 24:54.920
I want them to fix this.

24:55.380 --> 25:08.220
So, new of the Internet of Dongs project reached out and asked if I would contact QIUI, the vendor that makes the product, and act as a proxy for them to report this vulnerability.

25:08.680 --> 25:13.020
This is something I've actually done a couple of times with the Internet of Dongs project.

25:14.500 --> 25:37.190
What they had found was that plain text passwords were exposed, poor or no authentication on certain API calls, and with enough digging, the API would still expose all user details and enough information for remote takeover of accounts, and thereby control of the associated devices.

25:38.900 --> 26:02.480
I took their report, some light editing, and passed it along to QIUI, who I had established contact with the CEO, provided them the report, provided offers to explain things, go into detail if they needed to, didn't ask for anything, didn't need any pay or contracts or anything.

26:02.920 --> 26:04.620
And then we waited.

26:05.460 --> 26:06.920
And waited.

26:07.500 --> 26:12.300
Reached out, got assurances, yes, yes, we're working on it, and continued to wait.

26:13.360 --> 26:19.040
A few small changes have been made by June 2020, but the whole thing was still very broken.

26:19.580 --> 26:22.660
August rolls around, and we're not encouraged.

26:23.640 --> 26:26.220
There were no replies at this point.

26:26.220 --> 26:30.100
We're inquiring as to what the status was.

26:30.100 --> 26:32.020
We're not getting any response.

26:32.120 --> 26:35.040
No updates, no progress that we could see.

26:35.040 --> 26:54.300
In September, Alex Lomas of Pentest Partners tweeted out their frustration at the state of some teledildonic device security, thinking that it should be up there with healthcare and banking, considering the importance to some people.

26:54.380 --> 27:02.520
And was just very frustrated with this particular disclosure he was working on, and the frustration level sounded very familiar.

27:04.260 --> 27:08.280
So I reached out, Alex confirmed, yes, it's QIUI.

27:08.400 --> 27:13.260
And I said, OK, we have been trying to do disclosure since May.

27:13.320 --> 27:15.100
We need to talk.

27:15.140 --> 27:23.620
So I got onto a call with them, and confirmed that they had found a lot of the same things we had.

27:23.780 --> 27:32.160
We compared notes and decided, OK, we need to get a joint message to this company.

27:32.900 --> 27:37.160
Because now, two independent researchers had found the same issues.

27:37.620 --> 27:41.740
Later on, a third person actually emerged that had also found these things.

27:41.740 --> 27:48.480
So it wasn't long before someone with negative, bad intentions would find this.

27:48.500 --> 27:56.980
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.

27:57.460 --> 28:05.840
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.

28:06.640 --> 28:11.860
More assurances that a new API was coming were made.

28:12.520 --> 28:21.440
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.

28:21.440 --> 28:37.440
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.

28:38.540 --> 28:53.740
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.

28:54.160 --> 28:58.660
There was no mechanical or emergency unlock for this device.

28:58.660 --> 29:13.100
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.

29:13.780 --> 29:28.640
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.

29:30.160 --> 29:44.980
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.

29:45.780 --> 29:53.160
One was an anal chastity device modeled after a medieval torture device called the Pair of Anguish.

29:54.160 --> 29:57.560
Another was a remote-controlled shock collar.

29:57.560 --> 30:04.400
You could shock someone over the internet with your Bluetooth-enabled shock collar, basically.

30:05.440 --> 30:18.740
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.

30:19.080 --> 30:21.980
What if they found a way to up the voltage?

30:21.980 --> 30:25.180
This is scary stuff.

30:25.300 --> 30:38.900
Because their design, partially due to the communities that these devices are marketed to, they didn't design for failure or emergencies.

30:39.040 --> 30:51.860
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.

30:53.340 --> 31:04.160
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.

31:05.240 --> 31:18.140
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.

31:18.140 --> 31:20.360
They still had not shut down the old API.

31:22.020 --> 31:29.840
We basically threw down the gauntlet and said, you have a week to come up with a workable plan to fix these issues.

31:29.940 --> 31:41.460
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.

31:41.860 --> 31:49.560
We were more than willing to give them assistance and give them more time if they had a plan, and they never responded.

31:50.120 --> 31:56.840
So on October 6th, Pentest partners and I released information about our struggles to report the issues.

31:57.500 --> 32:05.340
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.

32:05.340 --> 32:10.800
We didn't release any technical details, but it wasn't hard to find.

32:11.120 --> 32:13.540
And then all hell broke loose.

32:13.540 --> 32:22.060
One fun thing, though, was we made the BBC cryon, the text at the bottom of BBC World.

32:22.660 --> 32:24.980
That's sort of a new achievement.

32:26.420 --> 32:40.980
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.

32:42.360 --> 32:45.840
We now live in a day and age of sex toy ransomware.

32:47.900 --> 32:51.960
Yeah, I had the same kind of thought.

32:53.220 --> 33:01.220
It didn't take long for people to reverse engineer those old apps and using the old API to discover the same things.

33:01.220 --> 33:15.060
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.

33:15.540 --> 33:18.000
The user forums were freaking out.

33:18.480 --> 33:23.880
And in and of itself, that was interesting because some people were very incensed at being locked out.

33:23.880 --> 33:27.400
They were incensed at the company or whoever was doing this.

33:27.400 --> 33:32.140
Other people were kind of titillated at the idea of being locked out permanently from their devices.

33:32.260 --> 33:40.440
Again, we don't judge, but it was a serious issue when you really get down to it.

33:40.940 --> 33:45.060
And this sort of thing had to happen with some device sooner or later.

33:46.100 --> 33:52.640
It's just unfortunate that we couldn't get them to fix it before something bad had to happen to people.

33:54.560 --> 34:03.780
QIUI put out a message with an escape method if people should find themselves locked out that involved prying with a screwdriver.

34:03.920 --> 34:10.040
Again, not something that I was particularly comfortable recommending to people.

34:11.680 --> 34:19.520
Pretty much every escape methodology required damaging or destroying the device, which these are not cheap devices.

34:20.440 --> 34:26.080
They very quickly put out some app updates, but they failed to take down the old API.

34:26.080 --> 34:33.780
Because again, until everyone had been moved to the new APIs, they couldn't shut down the old one.

34:33.780 --> 34:36.700
So they literally painted themselves into a corner.

34:38.200 --> 34:46.980
Eventually they realized where the source of their problem was and basically just issued an unlock to everyone.

34:46.980 --> 34:50.580
Made it so that the new app could unlock any of them.

34:50.900 --> 34:57.500
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.

34:58.540 --> 34:59.920
They quickly migrated.

35:00.300 --> 35:07.060
As you can see in their message, they still required you to sideload the app.

35:07.060 --> 35:14.840
Meaning you probably wouldn't be getting automated updates like you would from the Google Play Store or any of the other app stores.

35:14.840 --> 35:18.120
That's a whole other talk in and of itself of problems there.

35:18.680 --> 35:26.080
The new versions were definitely better in security, but still far, far from where one would hope that they would be.

35:26.800 --> 35:32.680
This is a company that just left their entire infrastructure open to the world.

35:33.680 --> 35:37.420
And one of their solutions was to start doing real name authentication.

35:37.420 --> 35:46.040
They required a driver's license or ID card or something, and pictures thereof, to sign up for this app.

35:47.220 --> 35:54.640
This made no sense, because if somebody is going to do something bad, they're going to find a way around this.

35:54.640 --> 35:58.140
And now you've just created even more of a treasure trove for them.

35:58.740 --> 36:06.820
There's an idea in security where collect as little information as you have to about your customers.

36:07.420 --> 36:09.360
Because you don't have to protect as much.

36:10.380 --> 36:16.980
Particularly with things like sex toys, if you don't collect it, then you don't have to worry about it being lost.

36:17.720 --> 36:19.520
This makes perfect sense.

36:20.660 --> 36:36.080
And this past January, VXUnderground, who collects malware samples, put out this rather amusing tweet saying, We'd like to uncomfortably announce we've received the source code to IoT Ransomware that targets male chastity devices.

36:37.280 --> 36:54.280
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.

36:54.400 --> 36:57.360
This was ridiculously simple.

36:57.360 --> 37:04.700
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.

37:05.200 --> 37:10.760
But this sort of attack is certainly not going to be the last on any of these kind of platforms.

37:11.100 --> 37:12.860
So it was interesting to see.

37:15.500 --> 37:24.580
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.

37:25.700 --> 37:34.040
In 2017, I noticed an app in Google Play Store for advertising for a Bluetooth-enabled piece of jewelry.

37:34.640 --> 37:45.860
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.

37:45.860 --> 37:58.740
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.

37:58.740 --> 38:10.620
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.

38:12.280 --> 38:13.700
Kind of a good idea.

38:15.160 --> 38:19.980
Bluetooth LE, mobile backend, web API, pretty standard for IoT stuff.

38:20.080 --> 38:26.560
I grabbed the app just out of curiosity and took it apart to see what made it tick.

38:26.700 --> 38:28.860
I really wish I hadn't.

38:29.840 --> 38:35.140
Because within two minutes after reverse engineering the app, I was looking at personal identifying information.

38:35.140 --> 38:39.920
Names, addresses, email addresses, phone numbers, the whole shebang.

38:39.920 --> 38:44.280
There's a hard-coded IP for their API server in it.

38:44.680 --> 38:51.560
When you visited that IP, every directory was indexed with no authentication needed.

38:51.660 --> 38:54.780
It showed you every file on that server.

38:56.160 --> 39:04.000
You could use their web service, the PHP web service, to iterate through user IDs.

39:04.100 --> 39:06.900
Pull up all the user account names.

39:07.560 --> 39:09.200
You could see their usage history.

39:09.920 --> 39:12.520
How many times they've been used, who it had called.

39:13.180 --> 39:15.180
Pull down all their profile photos.

39:15.800 --> 39:24.080
You could even see all the alert messages that the users had recorded to be sent in case of emergencies.

39:24.580 --> 39:28.600
There were some in there that were not pleasant, shall we say.

39:30.040 --> 39:37.040
One of the more interesting discoveries in one of these directories was an iOS developer private key.

39:37.040 --> 39:43.280
This is what was used to sign their iOS app before it went to the Apple Store.

39:43.480 --> 39:49.080
I could sign the new version of their app with this key and it would be accepted by Apple.

39:49.780 --> 39:51.300
That's terrifying.

39:51.960 --> 40:01.340
There's backup files for pretty much every configuration file on the server, including the root MySQL password.

40:02.500 --> 40:11.740
A .git folder in the web root that had credentials to the git repo with all their hard-coded secrets and everything.

40:11.780 --> 40:16.520
These credentials also appeared to have push access to the repo so I could make changes.

40:16.980 --> 40:19.400
PHP MyAdmin with default credentials.

40:19.400 --> 40:28.560
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.

40:28.560 --> 40:33.220
And text files lying around for even other projects by the same company.

40:33.900 --> 40:36.540
And this was only after 20 minutes of work.

40:36.940 --> 40:39.500
This was so incredibly simple.

40:40.120 --> 40:41.960
It was scary.

40:41.960 --> 40:44.660
And this is a safety device.

40:45.100 --> 40:46.720
And they leaked everything.

40:46.720 --> 40:49.180
They did zero for security.

40:49.540 --> 40:52.860
I tried many, many times to get a hold of this company.

40:53.160 --> 40:54.200
Never a response.

40:54.200 --> 40:55.220
No fixes.

40:56.380 --> 41:01.140
Fortunately, as of early 2019, this is no longer on sale.

41:01.180 --> 41:09.180
It's still listed on Amazon and such, but it was just sold out and the website for it is no longer there.

41:09.960 --> 41:12.400
This is the sort of thing that could easily get someone killed.

41:13.140 --> 41:19.340
You could redirect alerts, or if someone was being stalked, this could provide all sorts of other information.

41:20.060 --> 41:24.140
Probably the worst IoT fail I've found so far, and the sort of thing that keeps me up at night.

41:25.220 --> 41:28.500
Oh, and this company also makes medical equipment.

41:30.000 --> 41:33.160
Let's hope they're not recycling code for that.

41:33.180 --> 41:36.940
I mean, it was things like blood pressure monitors and non-invasive stuff.

41:36.940 --> 41:45.040
But still, that's terrifying that the same company would do medical devices doing something like this.

41:45.820 --> 41:50.340
Ostensibly a good idea, but the worst implementation possible.

41:51.400 --> 41:53.240
But there is help and hope.

41:54.740 --> 42:03.160
Now, the automotive regulations, like in our building a car example earlier, there's a lot more there.

42:03.180 --> 42:06.780
But we're just starting to see some regulation and advice for IoT.

42:07.560 --> 42:12.400
In 2018, the UK put out their IoT Code of Practice for security.

42:13.100 --> 42:15.060
And it was really simple, basic things.

42:15.060 --> 42:20.440
Remember I said that we've been dealing with these kind of problems for 15 years, and we've solved most of them.

42:20.440 --> 42:22.480
Things like no default passwords.

42:22.480 --> 42:25.300
Have a vulnerability disclosure policy.

42:25.300 --> 42:27.660
Have a method for secure updates.

42:28.000 --> 42:30.860
Store credentials securely.

42:31.080 --> 42:34.440
Make sure your communications channels are secure.

42:34.800 --> 42:37.460
Least privilege, least attack surface.

42:37.460 --> 42:41.440
Don't give everybody access to everything.

42:42.160 --> 42:47.580
Verify updates, verify the software integrity, see if something's been tampered with.

42:47.720 --> 42:49.880
Protect personal information.

42:51.780 --> 42:56.200
Australia, in 2020, released their Code of Practice for security IoT.

42:56.560 --> 43:01.640
And not by accident, it's basically the same as the UK one.

43:01.680 --> 43:04.800
Because a good idea is a good idea.

43:04.800 --> 43:07.320
And they just decided to continue going with that.

43:09.000 --> 43:19.300
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.

43:19.880 --> 43:29.020
Now, this bill required NIST and OMB to take specified steps to increase cybersecurity for Internet of Things devices.

43:29.100 --> 43:39.120
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.

43:39.740 --> 43:48.140
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.

43:48.920 --> 43:59.220
Now, you know, the US government being a sizable market, this is going to create a sizable market for devices that meet this standard.

43:59.280 --> 44:06.580
And that's an incentive to build for secure environments, you know, for secure standards.

44:06.840 --> 44:09.280
Because why limit your market?

44:09.340 --> 44:13.160
If you build a security, you can sell it to those that don't care about security and those that actually do.

44:13.660 --> 44:20.980
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.

44:21.700 --> 44:22.580
I don't know.

44:23.300 --> 44:30.660
But at least it's a standard that we can point to and say, hey, is it a bad idea to meet this level?

44:31.300 --> 44:34.320
Build secure and you won't have any limits on the markets.

44:36.880 --> 44:38.440
Closing thoughts.

44:38.440 --> 44:43.520
We've created these tools and frameworks to build some absolutely amazing things.

44:43.660 --> 44:57.060
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.

44:57.060 --> 45:13.100
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.

45:13.780 --> 45:17.820
So anyone can design and build a car, but it doesn't mean they can do it well.

45:18.460 --> 45:23.980
Anybody can come up with an idea for an IoT device, doesn't mean they can do it well.

45:24.940 --> 45:28.960
Barrier to entry has been made so incredibly low.

45:29.740 --> 45:38.120
It allows for truly terrible designs that, you know, either through ignorance, indifference, or just simple greed.

45:38.160 --> 45:45.120
You know, these things will make it to market without any oversight, and the consumers generally don't know any better.

45:45.120 --> 45:47.260
You know, they go for the cheapest device.

45:47.260 --> 45:52.900
Well , cheapest is unfortunately often the one with the most insecure implementations.

45:54.140 --> 45:59.140
You know, I'm not a huge fan of regulations and standards.

45:59.620 --> 46:08.980
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.

46:09.660 --> 46:13.240
Because these are things that we've been dealing with for 15 or 20 years.

46:13.240 --> 46:14.160
This should not be new.

46:14.160 --> 46:17.480
We've solved these, we just need to clue everybody in.

46:17.480 --> 46:28.140
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.

46:28.200 --> 46:29.140
Nobody does that.

46:29.140 --> 46:33.160
You're probably not going to be in business, you know, that long.

46:33.600 --> 46:40.140
But unfortunately, a lot of companies that do this are in business far too long because they never get held to account.

46:42.460 --> 46:51.300
Tools and learnings on these devices in the software should be made easier to digest for non-technical people.

46:51.300 --> 46:58.220
InfoSec is very bad for error messages that are very confusing or hard to understand.

46:58.220 --> 47:08.300
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.

47:09.640 --> 47:14.740
You know, we need to limit the ability to do insecure choices.

47:14.740 --> 47:22.480
Why we are allowing, you know, HTTP when HTTPS is so simple now.

47:22.820 --> 47:28.940
You know, this should be something that is by default in all these frameworks.

47:28.940 --> 47:32.540
You have to put effort in to turn that off.

47:33.140 --> 47:39.340
We need to build bridges with industries that previously have not had to deal with these problems.

47:40.160 --> 47:42.520
Because a lot of them just don't know.

47:42.520 --> 47:44.540
They don't interact with people like us.

47:44.540 --> 47:50.840
We need to reach out to industries and companies that are making the leap into IoT and offer some guidance and support.

47:51.640 --> 47:58.460
And we also, InfoSec and public in general, need to realize there are risque industries.

47:58.460 --> 48:05.840
Adult industries are a major one that, you know, some companies are like, well, I don't want to be associated with that.

48:05.840 --> 48:07.700
And it's like, these are people.

48:07.900 --> 48:09.280
They can be hurt.

48:09.820 --> 48:11.140
You know, these are legal devices.

48:11.140 --> 48:12.340
People are buying them.

48:13.520 --> 48:15.700
It's just another IoT device.

48:16.280 --> 48:19.980
We need to realize and get over some of these stigmas.

48:21.480 --> 48:23.600
Outsourcing may be cost effective.

48:24.320 --> 48:31.060
But you're putting your control, and in the case of some of these IoT devices, other things, in someone else's control.

48:31.740 --> 48:35.440
They may not have your best interests in mind because they want to keep their costs down.

48:36.500 --> 48:39.480
You may want to bring some of that design in-house.

48:39.480 --> 48:45.720
You know, have a roughed out product design that you then take to somebody else.

48:45.720 --> 48:55.220
But have the standards already set for security and privacy and attention to things like privacy of consumer information.

48:55.940 --> 49:06.860
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.

49:06.860 --> 49:15.140
It may be that a fridge manufacturer outsources it to another company that outsources it again to somebody else.

49:15.200 --> 49:21.240
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.

49:21.440 --> 49:25.780
And last but not least, we need to stop buying insecure products.

49:26.680 --> 49:28.300
They may be cheap.

49:28.440 --> 49:30.420
They're plentiful out there.

49:30.420 --> 49:37.440
We need to do our research more as a society and just say, no, we don't want that.

49:38.700 --> 49:40.420
Thank you very much.

49:40.480 --> 49:49.460
My website for the Internet of Dongs, email, and thanks to CircuitSwan, Nikita, and Straith for their advice on this.

49:49.980 --> 49:52.160
And I look forward to questions.

49:52.160 --> 49:52.740
Thank you.

