WEBVTT

00:00.000 --> 00:00.920
Hello everyone.

00:00.920 --> 00:02.340
Welcome to this session.

00:02.340 --> 00:03.300
My name is Wang Kang.

00:03.300 --> 00:06.740
I'm from Alibaba Group as a security researcher.

00:06.920 --> 00:21.660
So today, since you are one of the, several of the best hackers in the world, so I will try my best to cut the irrelevant information out.

00:21.660 --> 00:33.000
So today I will walk you through some of my research fundings during a lookup at several infrared devices.

00:33.000 --> 00:37.240
So I called it, who said hacking a fund doesn't matter.

00:37.580 --> 00:49.460
Me, I am focusing on IOT, V2X and cyber physics systems and do some security research or stuff.

00:49.900 --> 00:52.260
This is joint work with Dr.

00:52.260 --> 00:54.120
Yang from CIICT.

00:54.120 --> 00:57.300
Unfortunately, he couldn't make the trip here.

00:58.340 --> 01:01.820
So this is the introduction.

01:01.820 --> 01:06.080
Since you are hackers, I think no one cares about outlying, I think.

01:06.080 --> 01:09.880
I don't care about outlying, just formal outlying.

01:10.160 --> 01:16.620
So this is basically the NEC standard of infrared remote control.

01:16.760 --> 01:23.600
Basically, you can think, consider it as a duty cycle modulation.

01:23.600 --> 01:31.640
Like the 25% versus 50% duty cycle indicates whether it's 1 or 0.

01:31.640 --> 01:34.460
So it's not a big deal.

01:34.460 --> 01:37.920
So tell me something I don't know, right?

01:38.700 --> 01:51.740
The first thing I want to mention is that regularly the infrared light is 940 nanometers or 850 nanometers.

01:51.740 --> 01:55.240
So why is it going to use these two bands?

01:55.240 --> 02:03.680
Because the spectrum, the water in the air will absorb a lot of light.

02:03.680 --> 02:09.240
But this infrared band will be absorbed less.

02:09.240 --> 02:12.360
So this is number one reason.

02:12.360 --> 02:22.340
And the second one I want to mention is why there is going to need a carrier, which is around 38 kilohertz.

02:22.420 --> 02:28.020
I think it's because there are so many infrared in the sun.

02:28.020 --> 02:38.300
So in order to bypass, to reject some false positive, we have to utilize a bandpass filter.

02:38.300 --> 02:45.720
So the 38 kilohertz is used to let the signal pass through.

02:47.260 --> 02:50.680
So how can we get infrared code?

02:51.280 --> 02:56.560
Regularly there is a very fantastic database called LIRC.

02:56.560 --> 02:58.460
You should look it up.

03:00.720 --> 03:05.000
Basically, all of your remote controls can be found out there.

03:05.000 --> 03:10.960
And you can build up some DIY gauges to record and replay.

03:11.640 --> 03:17.280
I want to mention, like this one is from LIRC.

03:17.280 --> 03:27.220
You basically can fire up a Raspberry Pi Zero and you connect an IR emitter and there you go.

03:27.400 --> 03:29.920
So it's not a big deal.

03:29.920 --> 03:40.060
So I want to show you something new that in recent days there are some new fancy phones such as the Samsung Galaxy S10.

03:41.680 --> 03:46.340
This is a commercial off-the-shelf remote controller.

03:46.420 --> 03:57.140
And I want to show you it has a super slow-mo mode, which runs at around 960 frames per second.

03:57.140 --> 04:05.380
And usually an iPhone is about 120 or 240 to 240 FPS.

04:05.440 --> 04:13.020
So you can see the... I will press the play button and you will see the red dot.

04:14.780 --> 04:16.140
Did you see that?

04:16.280 --> 04:22.430
Yeah, so I was wondering if I can use that as a logic analyzer.

04:22.430 --> 04:28.270
So I converted these videos into different frames.

04:28.270 --> 04:33.230
And I renamed... did you see the four dashes?

04:33.230 --> 04:36.690
It indicates that the light is on.

04:36.690 --> 04:42.550
So I cross-examined with a logic analyzer.

04:42.970 --> 04:45.930
This one is from the logic analyzer.

04:45.930 --> 04:51.670
So this line is file names.

04:51.670 --> 04:54.610
So you can see it fits very well.

04:54.770 --> 04:56.710
Take a closer look.

04:57.210 --> 05:02.830
Yeah, this is B, the 312 frames.

05:03.150 --> 05:05.070
It fits right.

05:05.070 --> 05:09.850
And later I want to calculate the timing.

05:09.850 --> 05:22.230
So we just... 301 minus by 197, multiplied by the frame rate, we get the timing.

05:22.230 --> 05:27.210
And from the specification, the timing is roughly the same.

05:27.210 --> 05:29.210
So far so good.

05:31.470 --> 05:33.430
This was a very lucky example.

05:33.430 --> 05:36.390
So let's see another not-so-lucky example.

05:37.150 --> 05:39.910
This is another kind of remote control.

05:39.910 --> 05:44.610
It's not as the 25% or 50% dirty cycle.

05:45.470 --> 05:51.930
This one is way up the Nyquist theorem.

05:51.930 --> 06:00.550
So our system cannot sample it precisely.

06:00.550 --> 06:06.810
But this can be solved by some modern communication technologies, such as...

06:06.810 --> 06:12.550
Basically, this problem can be considered as an undersampled signal recovery.

06:12.550 --> 06:20.290
So you can use a video edge trigger, or multipass samples, or some fancy technologies.

06:20.290 --> 06:22.510
But I think it's solvable.

06:22.910 --> 06:27.470
So the next thing I want to show you is the infrared filling light.

06:27.470 --> 06:33.790
You can see there are so many security cameras out on the street.

06:34.010 --> 06:38.210
You got this one, this one, this one, this one, this one, different kinds.

06:38.250 --> 06:40.650
All of them...

06:41.750 --> 06:44.050
During the night...

06:44.810 --> 06:47.130
Whoa, what happened?

06:47.150 --> 06:56.490
During the night, the security camera has to emit some infrared light to let the object can be seen in the night, right?

06:56.490 --> 06:57.130
So...

06:59.190 --> 07:02.150
This is another example on the street.

07:02.390 --> 07:04.430
This is on the store on the shelf.

07:04.430 --> 07:05.750
A lot of them are...

07:05.750 --> 07:08.890
All of them have the infrared filling lights.

07:09.270 --> 07:20.970
I took some apart and found out that this is a socket and only has two power supply to the filling light.

07:21.170 --> 07:24.370
So what we don't know yet is one.

07:24.370 --> 07:28.770
The first is whether it's 940 nanometers or not.

07:28.770 --> 07:32.630
And the second is the switching speed.

07:32.810 --> 07:40.730
Is it going to be fast as 38 kilohertz so that we can pass the band pass filter?

07:40.750 --> 07:44.850
And will higher transmit power matters?

07:44.850 --> 07:50.830
So having these three questions, we have to do some experiments.

07:50.830 --> 07:53.510
So this one is a DIY gauges.

07:54.230 --> 07:58.990
Roughly it's a Raspberry Pi head with FPGA on it.

07:58.990 --> 08:05.090
So this one is a commercial off-the-shelf filling light I brought.

08:05.230 --> 08:14.110
So I fired up a signal generator just to test out the first two points.

08:14.110 --> 08:22.550
So you can see the blue light indicates the infrared signal is received.

08:22.550 --> 08:30.310
So from this experiment we can see that it is 940 nanometers.

08:30.310 --> 08:38.950
And second, the circuit of the infrared filling light doesn't cut our switching speed.

08:38.950 --> 08:44.710
So the next experiment is about the larger one, infrared filling light.

08:44.930 --> 08:47.970
Yeah, you can see the green light.

08:47.970 --> 08:49.590
Oh , the blue light.

08:52.830 --> 09:02.310
So we later on record some air conditioners, remote control signal, and replay it.

09:02.310 --> 09:04.930
If you can hear the sound.

09:04.930 --> 09:10.850
And the infrared filling light can be used as a remote controller.

09:10.850 --> 09:13.110
The air conditioner is turned on.

09:13.530 --> 09:22.290
And the next question is whether a security camera, how they are wired.

09:22.290 --> 09:27.290
So we looked into the manual of the reference designs of some security cameras.

09:27.290 --> 09:33.210
We found out that exactly the LED is connected to the GPIO.

09:33.210 --> 09:40.290
Remember, there is a very fancy project called PiFM to use GPIO to send FM broadcasting.

09:40.290 --> 09:51.490
It's used DMA mode to utilizing the GPIO as a signal generator.

09:51.490 --> 10:04.590
So this one, so I've done some further experiment that the white one device is a security camera.

10:04.590 --> 10:12.610
And the black is the original remote control just placed there to show that I didn't trick it.

10:12.790 --> 10:17.050
And you can see, it works now.

10:17.050 --> 10:28.190
So this experiment shows that even if you think some not smart devices such as a TV set, they are not connected to the internet.

10:28.190 --> 10:39.270
But if there is an internet connected security camera, maybe this is the way to break the air gap system.

10:44.170 --> 10:52.070
Especially some smart TVs, they have browsers, Android TVs basically.

10:57.330 --> 11:00.670
So what could possibly go wrong?

11:00.670 --> 11:04.390
Remember the PewDiePie event?

11:04.390 --> 11:09.550
The printer thing, someone hacked a lot of printers to print out advertisement.

11:09.550 --> 11:18.870
So maybe this way can be used to turn on the air conditioner at the same time massively.

11:18.870 --> 11:26.430
So that the grid, the power grid will encounter some power surge or something.

11:28.610 --> 11:33.790
So this one is, this photo is taken in the Netherlands.

11:33.790 --> 11:41.150
I found out that the security camera, the TV, is just faced to each other.

11:41.370 --> 11:46.230
And this one is just right at the corner of the Defcon street.

11:46.350 --> 11:50.950
There is a ramen shop.

11:50.950 --> 11:58.610
So you can see that, the security camera facing the TV with infrared filling light.

11:59.470 --> 12:01.310
And this is a photo resistance.

12:01.310 --> 12:02.230
There is another way.

12:02.230 --> 12:09.550
I want to show you that some of the designs of the security cameras, they have photo resistance.

12:09.690 --> 12:17.810
So that when there is light, the light will be turned on automatically.

12:17.810 --> 12:25.050
But it cannot be used because it's very slow, around 30 milliseconds.

12:25.110 --> 12:26.590
So it's not usable.

12:26.590 --> 12:29.590
But just a try.

12:29.590 --> 12:31.910
So look at the bright side.

12:31.910 --> 12:34.870
Remember some audio guides in the museums.

12:34.870 --> 12:38.370
You can see, you point an audio guide onto the wall.

12:38.370 --> 12:42.050
The wall device actually is emitting some infrared signal.

12:42.050 --> 12:52.030
That turns on your audio guide to show specific mp3 files or other things.

12:52.030 --> 12:56.870
So maybe you see that one is a security camera.

12:56.870 --> 13:03.810
Maybe we could just use that infrared light to do some watermark thing.

13:04.370 --> 13:05.710
So one more chapter.

13:05.710 --> 13:09.410
I think this chapter is quite interesting.

13:09.410 --> 13:12.990
I call it Paul Mann's Spatial Light Modulator.

13:13.550 --> 13:17.730
And the following will be a commercial from Kaspersky.

13:17.810 --> 13:21.910
Do we have audio from this HDMI output?

13:21.910 --> 13:23.150
Let me try.

13:27.090 --> 13:30.910
Yeah, basically, there's no... let me do this.

13:31.950 --> 13:40.530
In a party of a CSO, a hacker hacked the fan and asked him to pay some money.

13:40.530 --> 13:43.390
So he said, go hack yourself, hackers.

13:43.390 --> 13:45.650
Actually, he is saying that.

13:47.810 --> 13:52.870
So Kaspersky's point is, there's nothing left to hack when your business is protected.

13:52.870 --> 13:54.630
So hacking a fan doesn't matter.

13:54.630 --> 13:57.190
So who said hacking a fan doesn't matter?

13:58.310 --> 14:04.030
Remember, there are so many things that are rotating.

14:04.030 --> 14:11.250
Let's see, the DVD has roughly 10,000 revolutions per minute, right?

14:11.250 --> 14:16.730
And the car, the wheels, roughly 700 RPMs.

14:16.750 --> 14:23.150
And for an electric drill, there is around 10k to 50k.

14:23.150 --> 14:37.510
So to get 38kHz signal, if we drill some holes on the disk, let's say 300 holes, we need 7600 RPMs is enough.

14:37.730 --> 14:45.530
And if it's 150 holes, roughly the DVD could handle it.

14:45.530 --> 14:52.790
So as for Amazon Alexa, you can see there are 84 holes on it.

14:53.070 --> 14:55.350
It's just a joke, nothing matters.

14:55.410 --> 15:06.910
So this is an electric drill, and this has 150 holes on the disk.

15:07.740 --> 15:17.010
So we started with some experiments to calibrate the system and to calibrate the revolutions per minute.

15:17.010 --> 15:22.770
And then we did some, let's see this one closely.

15:22.930 --> 15:26.910
There are roughly 150 holes on the disk.

15:26.910 --> 15:31.290
So we connected it with a drill, electric drill.

15:31.370 --> 15:33.190
Let's see the final result.

15:33.190 --> 15:39.810
So this one is an infrared emitter that emits a steady infrared light.

15:39.810 --> 15:44.390
And this one will cut the light very fast.

15:44.390 --> 15:52.890
And the blue light indicates that it's receiving a valid infrared signal, remote signal.

15:52.890 --> 15:54.510
So let's see.

15:54.950 --> 15:56.370
Turned on.

15:56.370 --> 15:57.450
Yep.

15:57.750 --> 15:59.270
Off.

15:59.270 --> 16:00.510
On.

16:01.310 --> 16:02.610
Yep.

16:02.610 --> 16:03.770
You see that?

16:04.550 --> 16:15.230
So if a fan is hacked, maybe we could turn up these RPMs and we could use it as a spatial light modulator.

16:16.210 --> 16:21.970
It's a bit of sci-fi, but I think it's definitely doable.

16:22.830 --> 16:23.770
So what's next?

16:23.770 --> 16:27.730
This is a video I borrowed from Twitter.

16:27.730 --> 16:37.250
So maybe we could just emit the infrared light to the film.

16:37.250 --> 16:39.130
It rotates very fast.

16:39.130 --> 16:44.710
So it could be used as a physical recorder for infrared light.

16:46.530 --> 16:47.370
Yeah.

16:48.230 --> 16:51.890
And one more thing, that iPhone X.

16:52.450 --> 16:54.890
You can see the back cell phone is iPhone X.

16:54.890 --> 16:57.930
The front one is Samsung Galaxy.

16:58.190 --> 17:05.790
So you can see the white dot is the face ID.

17:06.730 --> 17:12.970
I haven't got a clue how to use it, but I think it's worth research.

17:13.730 --> 17:16.230
And this one is from the Canon.

17:16.310 --> 17:21.210
They also have infrared sensors to detect whether your eyes are closed.

17:22.050 --> 17:31.750
Future works, maybe you could use some fancy phantom cameras with very, very high speed.

17:31.750 --> 17:37.170
Actually, have you seen the YouTube channel called Modern Rogue?

17:37.410 --> 17:40.810
The people are just on the next room.

17:40.810 --> 17:41.890
I just saw them.

17:41.890 --> 17:45.690
They have done some very cool demos.

17:47.030 --> 17:58.790
Some other techniques, such as the virtual frame technique, they can be used to compress the sending that increases the frame acquisition rate.

17:58.790 --> 18:05.070
So they can use a slow camera to film faster things.

18:05.070 --> 18:08.470
But it has to be a motion object.

18:08.470 --> 18:12.790
It's not rotating things, I doubt it.

18:12.790 --> 18:24.810
So the next opportunity, maybe we could use this technology to do some spy cam detection or infrared video watermarks or anything else.

18:24.810 --> 18:26.610
So the key takeaways.

18:26.610 --> 18:34.870
So the first is switching rate of the infrared filling light is enough for infrared remote controlling.

18:36.010 --> 18:42.530
The countermeasure is we shouldn't directly connect the infrared filling light to GPIO.

18:42.530 --> 18:50.450
At least we should use some filter to avoid it being switched on and off very fast.

18:50.450 --> 18:59.850
And the second one is the commercial off-the-shelf cell phone camera, the high-speed camera, can be used as a potential logic analyzer.

19:00.110 --> 19:06.870
And we made some homemade Paul Mann's spatial light modulator.

19:06.870 --> 19:22.270
And the final sci-fi thoughts is maybe we could utilize some supply chain risk so that a regular LED is actually an infrared LED.

19:22.270 --> 19:28.830
So that every indicator of the light is a backdoor.

19:28.830 --> 19:32.430
So we should bring some attention to it.

19:32.610 --> 19:33.590
Thank you.

19:33.590 --> 19:34.930
Any questions?

19:34.930 --> 19:35.510
Any

19:39.090 --> 19:40.970
questions?

19:40.970 --> 19:42.350
Directions?

19:42.670 --> 19:43.730
Questions?

19:43.730 --> 19:44.390
Directions?

19:44.390 --> 19:45.530
Hi.

19:53.850 --> 19:55.030
Regular IR.

19:55.030 --> 19:55.830
I think...

20:02.150 --> 20:13.450
So the question was a regular LED, is it possible to emit some infrared band?

20:13.450 --> 20:25.590
I haven't done the research, but I highly doubt that because due to the cost of benefit, I think the manufacturers will cut the irrelevant emit.

20:26.610 --> 20:27.790
Thank you.

20:27.810 --> 20:29.230
Any other questions?

20:30.190 --> 20:31.230
Okay, thank you guys.

20:31.230 --> 20:32.690
Hope you enjoy the show later.

