1 00:00:00,000 --> 00:00:00,920 Hello everyone. 2 00:00:00,920 --> 00:00:02,340 Welcome to this session. 3 00:00:02,340 --> 00:00:03,300 My name is Wang Kang. 4 00:00:03,300 --> 00:00:06,740 I'm from Alibaba Group as a security researcher. 5 00:00:06,920 --> 00: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. 6 00:00:21,660 --> 00:00:33,000 So today I will walk you through some of my research fundings during a lookup at several infrared devices. 7 00:00:33,000 --> 00:00:37,240 So I called it, who said hacking a fund doesn't matter. 8 00:00:37,580 --> 00:00:49,460 Me, I am focusing on IOT, V2X and cyber physics systems and do some security research or stuff. 9 00:00:49,900 --> 00:00:52,260 This is joint work with Dr. 10 00:00:52,260 --> 00:00:54,120 Yang from CIICT. 11 00:00:54,120 --> 00:00:57,300 Unfortunately, he couldn't make the trip here. 12 00:00:58,340 --> 00:01:01,820 So this is the introduction. 13 00:01:01,820 --> 00:01:06,080 Since you are hackers, I think no one cares about outlying, I think. 14 00:01:06,080 --> 00:01:09,880 I don't care about outlying, just formal outlying. 15 00:01:10,160 --> 00:01:16,620 So this is basically the NEC standard of infrared remote control. 16 00:01:16,760 --> 00:01:23,600 Basically, you can think, consider it as a duty cycle modulation. 17 00:01:23,600 --> 00:01:31,640 Like the 25% versus 50% duty cycle indicates whether it's 1 or 0. 18 00:01:31,640 --> 00:01:34,460 So it's not a big deal. 19 00:01:34,460 --> 00:01:37,920 So tell me something I don't know, right? 20 00:01:38,700 --> 00:01:51,740 The first thing I want to mention is that regularly the infrared light is 940 nanometers or 850 nanometers. 21 00:01:51,740 --> 00:01:55,240 So why is it going to use these two bands? 22 00:01:55,240 --> 00:02:03,680 Because the spectrum, the water in the air will absorb a lot of light. 23 00:02:03,680 --> 00:02:09,240 But this infrared band will be absorbed less. 24 00:02:09,240 --> 00:02:12,360 So this is number one reason. 25 00:02:12,360 --> 00: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. 26 00:02:22,420 --> 00:02:28,020 I think it's because there are so many infrared in the sun. 27 00:02:28,020 --> 00:02:38,300 So in order to bypass, to reject some false positive, we have to utilize a bandpass filter. 28 00:02:38,300 --> 00:02:45,720 So the 38 kilohertz is used to let the signal pass through. 29 00:02:47,260 --> 00:02:50,680 So how can we get infrared code? 30 00:02:51,280 --> 00:02:56,560 Regularly there is a very fantastic database called LIRC. 31 00:02:56,560 --> 00:02:58,460 You should look it up. 32 00:03:00,720 --> 00:03:05,000 Basically, all of your remote controls can be found out there. 33 00:03:05,000 --> 00:03:10,960 And you can build up some DIY gauges to record and replay. 34 00:03:11,640 --> 00:03:17,280 I want to mention, like this one is from LIRC. 35 00:03:17,280 --> 00:03:27,220 You basically can fire up a Raspberry Pi Zero and you connect an IR emitter and there you go. 36 00:03:27,400 --> 00:03:29,920 So it's not a big deal. 37 00:03:29,920 --> 00: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. 38 00:03:41,680 --> 00:03:46,340 This is a commercial off-the-shelf remote controller. 39 00:03:46,420 --> 00:03:57,140 And I want to show you it has a super slow-mo mode, which runs at around 960 frames per second. 40 00:03:57,140 --> 00:04:05,380 And usually an iPhone is about 120 or 240 to 240 FPS. 41 00:04:05,440 --> 00:04:13,020 So you can see the... I will press the play button and you will see the red dot. 42 00:04:14,780 --> 00:04:16,140 Did you see that? 43 00:04:16,280 --> 00:04:22,430 Yeah, so I was wondering if I can use that as a logic analyzer. 44 00:04:22,430 --> 00:04:28,270 So I converted these videos into different frames. 45 00:04:28,270 --> 00:04:33,230 And I renamed... did you see the four dashes? 46 00:04:33,230 --> 00:04:36,690 It indicates that the light is on. 47 00:04:36,690 --> 00:04:42,550 So I cross-examined with a logic analyzer. 48 00:04:42,970 --> 00:04:45,930 This one is from the logic analyzer. 49 00:04:45,930 --> 00:04:51,670 So this line is file names. 50 00:04:51,670 --> 00:04:54,610 So you can see it fits very well. 51 00:04:54,770 --> 00:04:56,710 Take a closer look. 52 00:04:57,210 --> 00:05:02,830 Yeah, this is B, the 312 frames. 53 00:05:03,150 --> 00:05:05,070 It fits right. 54 00:05:05,070 --> 00:05:09,850 And later I want to calculate the timing. 55 00:05:09,850 --> 00:05:22,230 So we just... 301 minus by 197, multiplied by the frame rate, we get the timing. 56 00:05:22,230 --> 00:05:27,210 And from the specification, the timing is roughly the same. 57 00:05:27,210 --> 00:05:29,210 So far so good. 58 00:05:31,470 --> 00:05:33,430 This was a very lucky example. 59 00:05:33,430 --> 00:05:36,390 So let's see another not-so-lucky example. 60 00:05:37,150 --> 00:05:39,910 This is another kind of remote control. 61 00:05:39,910 --> 00:05:44,610 It's not as the 25% or 50% dirty cycle. 62 00:05:45,470 --> 00:05:51,930 This one is way up the Nyquist theorem. 63 00:05:51,930 --> 00:06:00,550 So our system cannot sample it precisely. 64 00:06:00,550 --> 00:06:06,810 But this can be solved by some modern communication technologies, such as... 65 00:06:06,810 --> 00:06:12,550 Basically, this problem can be considered as an undersampled signal recovery. 66 00:06:12,550 --> 00:06:20,290 So you can use a video edge trigger, or multipass samples, or some fancy technologies. 67 00:06:20,290 --> 00:06:22,510 But I think it's solvable. 68 00:06:22,910 --> 00:06:27,470 So the next thing I want to show you is the infrared filling light. 69 00:06:27,470 --> 00:06:33,790 You can see there are so many security cameras out on the street. 70 00:06:34,010 --> 00:06:38,210 You got this one, this one, this one, this one, this one, different kinds. 71 00:06:38,250 --> 00:06:40,650 All of them... 72 00:06:41,750 --> 00:06:44,050 During the night... 73 00:06:44,810 --> 00:06:47,130 Whoa, what happened? 74 00:06:47,150 --> 00: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? 75 00:06:56,490 --> 00:06:57,130 So... 76 00:06:59,190 --> 00:07:02,150 This is another example on the street. 77 00:07:02,390 --> 00:07:04,430 This is on the store on the shelf. 78 00:07:04,430 --> 00:07:05,750 A lot of them are... 79 00:07:05,750 --> 00:07:08,890 All of them have the infrared filling lights. 80 00:07:09,270 --> 00: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. 81 00:07:21,170 --> 00:07:24,370 So what we don't know yet is one. 82 00:07:24,370 --> 00:07:28,770 The first is whether it's 940 nanometers or not. 83 00:07:28,770 --> 00:07:32,630 And the second is the switching speed. 84 00:07:32,810 --> 00:07:40,730 Is it going to be fast as 38 kilohertz so that we can pass the band pass filter? 85 00:07:40,750 --> 00:07:44,850 And will higher transmit power matters? 86 00:07:44,850 --> 00:07:50,830 So having these three questions, we have to do some experiments. 87 00:07:50,830 --> 00:07:53,510 So this one is a DIY gauges. 88 00:07:54,230 --> 00:07:58,990 Roughly it's a Raspberry Pi head with FPGA on it. 89 00:07:58,990 --> 00:08:05,090 So this one is a commercial off-the-shelf filling light I brought. 90 00:08:05,230 --> 00:08:14,110 So I fired up a signal generator just to test out the first two points. 91 00:08:14,110 --> 00:08:22,550 So you can see the blue light indicates the infrared signal is received. 92 00:08:22,550 --> 00:08:30,310 So from this experiment we can see that it is 940 nanometers. 93 00:08:30,310 --> 00:08:38,950 And second, the circuit of the infrared filling light doesn't cut our switching speed. 94 00:08:38,950 --> 00:08:44,710 So the next experiment is about the larger one, infrared filling light. 95 00:08:44,930 --> 00:08:47,970 Yeah, you can see the green light. 96 00:08:47,970 --> 00:08:49,590 Oh , the blue light. 97 00:08:52,830 --> 00:09:02,310 So we later on record some air conditioners, remote control signal, and replay it. 98 00:09:02,310 --> 00:09:04,930 If you can hear the sound. 99 00:09:04,930 --> 00:09:10,850 And the infrared filling light can be used as a remote controller. 100 00:09:10,850 --> 00:09:13,110 The air conditioner is turned on. 101 00:09:13,530 --> 00:09:22,290 And the next question is whether a security camera, how they are wired. 102 00:09:22,290 --> 00:09:27,290 So we looked into the manual of the reference designs of some security cameras. 103 00:09:27,290 --> 00:09:33,210 We found out that exactly the LED is connected to the GPIO. 104 00:09:33,210 --> 00:09:40,290 Remember, there is a very fancy project called PiFM to use GPIO to send FM broadcasting. 105 00:09:40,290 --> 00:09:51,490 It's used DMA mode to utilizing the GPIO as a signal generator. 106 00:09:51,490 --> 00:10:04,590 So this one, so I've done some further experiment that the white one device is a security camera. 107 00:10:04,590 --> 00:10:12,610 And the black is the original remote control just placed there to show that I didn't trick it. 108 00:10:12,790 --> 00:10:17,050 And you can see, it works now. 109 00:10:17,050 --> 00: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. 110 00:10:28,190 --> 00:10:39,270 But if there is an internet connected security camera, maybe this is the way to break the air gap system. 111 00:10:44,170 --> 00:10:52,070 Especially some smart TVs, they have browsers, Android TVs basically. 112 00:10:57,330 --> 00:11:00,670 So what could possibly go wrong? 113 00:11:00,670 --> 00:11:04,390 Remember the PewDiePie event? 114 00:11:04,390 --> 00:11:09,550 The printer thing, someone hacked a lot of printers to print out advertisement. 115 00:11:09,550 --> 00:11:18,870 So maybe this way can be used to turn on the air conditioner at the same time massively. 116 00:11:18,870 --> 00:11:26,430 So that the grid, the power grid will encounter some power surge or something. 117 00:11:28,610 --> 00:11:33,790 So this one is, this photo is taken in the Netherlands. 118 00:11:33,790 --> 00:11:41,150 I found out that the security camera, the TV, is just faced to each other. 119 00:11:41,370 --> 00:11:46,230 And this one is just right at the corner of the Defcon street. 120 00:11:46,350 --> 00:11:50,950 There is a ramen shop. 121 00:11:50,950 --> 00:11:58,610 So you can see that, the security camera facing the TV with infrared filling light. 122 00:11:59,470 --> 00:12:01,310 And this is a photo resistance. 123 00:12:01,310 --> 00:12:02,230 There is another way. 124 00:12:02,230 --> 00:12:09,550 I want to show you that some of the designs of the security cameras, they have photo resistance. 125 00:12:09,690 --> 00:12:17,810 So that when there is light, the light will be turned on automatically. 126 00:12:17,810 --> 00:12:25,050 But it cannot be used because it's very slow, around 30 milliseconds. 127 00:12:25,110 --> 00:12:26,590 So it's not usable. 128 00:12:26,590 --> 00:12:29,590 But just a try. 129 00:12:29,590 --> 00:12:31,910 So look at the bright side. 130 00:12:31,910 --> 00:12:34,870 Remember some audio guides in the museums. 131 00:12:34,870 --> 00:12:38,370 You can see, you point an audio guide onto the wall. 132 00:12:38,370 --> 00:12:42,050 The wall device actually is emitting some infrared signal. 133 00:12:42,050 --> 00:12:52,030 That turns on your audio guide to show specific mp3 files or other things. 134 00:12:52,030 --> 00:12:56,870 So maybe you see that one is a security camera. 135 00:12:56,870 --> 00:13:03,810 Maybe we could just use that infrared light to do some watermark thing. 136 00:13:04,370 --> 00:13:05,710 So one more chapter. 137 00:13:05,710 --> 00:13:09,410 I think this chapter is quite interesting. 138 00:13:09,410 --> 00:13:12,990 I call it Paul Mann's Spatial Light Modulator. 139 00:13:13,550 --> 00:13:17,730 And the following will be a commercial from Kaspersky. 140 00:13:17,810 --> 00:13:21,910 Do we have audio from this HDMI output? 141 00:13:21,910 --> 00:13:23,150 Let me try. 142 00:13:27,090 --> 00:13:30,910 Yeah, basically, there's no... let me do this. 143 00:13:31,950 --> 00:13:40,530 In a party of a CSO, a hacker hacked the fan and asked him to pay some money. 144 00:13:40,530 --> 00:13:43,390 So he said, go hack yourself, hackers. 145 00:13:43,390 --> 00:13:45,650 Actually, he is saying that. 146 00:13:47,810 --> 00:13:52,870 So Kaspersky's point is, there's nothing left to hack when your business is protected. 147 00:13:52,870 --> 00:13:54,630 So hacking a fan doesn't matter. 148 00:13:54,630 --> 00:13:57,190 So who said hacking a fan doesn't matter? 149 00:13:58,310 --> 00:14:04,030 Remember, there are so many things that are rotating. 150 00:14:04,030 --> 00:14:11,250 Let's see, the DVD has roughly 10,000 revolutions per minute, right? 151 00:14:11,250 --> 00:14:16,730 And the car, the wheels, roughly 700 RPMs. 152 00:14:16,750 --> 00:14:23,150 And for an electric drill, there is around 10k to 50k. 153 00:14:23,150 --> 00: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. 154 00:14:37,730 --> 00:14:45,530 And if it's 150 holes, roughly the DVD could handle it. 155 00:14:45,530 --> 00:14:52,790 So as for Amazon Alexa, you can see there are 84 holes on it. 156 00:14:53,070 --> 00:14:55,350 It's just a joke, nothing matters. 157 00:14:55,410 --> 00:15:06,910 So this is an electric drill, and this has 150 holes on the disk. 158 00:15:07,740 --> 00:15:17,010 So we started with some experiments to calibrate the system and to calibrate the revolutions per minute. 159 00:15:17,010 --> 00:15:22,770 And then we did some, let's see this one closely. 160 00:15:22,930 --> 00:15:26,910 There are roughly 150 holes on the disk. 161 00:15:26,910 --> 00:15:31,290 So we connected it with a drill, electric drill. 162 00:15:31,370 --> 00:15:33,190 Let's see the final result. 163 00:15:33,190 --> 00:15:39,810 So this one is an infrared emitter that emits a steady infrared light. 164 00:15:39,810 --> 00:15:44,390 And this one will cut the light very fast. 165 00:15:44,390 --> 00:15:52,890 And the blue light indicates that it's receiving a valid infrared signal, remote signal. 166 00:15:52,890 --> 00:15:54,510 So let's see. 167 00:15:54,950 --> 00:15:56,370 Turned on. 168 00:15:56,370 --> 00:15:57,450 Yep. 169 00:15:57,750 --> 00:15:59,270 Off. 170 00:15:59,270 --> 00:16:00,510 On. 171 00:16:01,310 --> 00:16:02,610 Yep. 172 00:16:02,610 --> 00:16:03,770 You see that? 173 00:16:04,550 --> 00: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. 174 00:16:16,210 --> 00:16:21,970 It's a bit of sci-fi, but I think it's definitely doable. 175 00:16:22,830 --> 00:16:23,770 So what's next? 176 00:16:23,770 --> 00:16:27,730 This is a video I borrowed from Twitter. 177 00:16:27,730 --> 00:16:37,250 So maybe we could just emit the infrared light to the film. 178 00:16:37,250 --> 00:16:39,130 It rotates very fast. 179 00:16:39,130 --> 00:16:44,710 So it could be used as a physical recorder for infrared light. 180 00:16:46,530 --> 00:16:47,370 Yeah. 181 00:16:48,230 --> 00:16:51,890 And one more thing, that iPhone X. 182 00:16:52,450 --> 00:16:54,890 You can see the back cell phone is iPhone X. 183 00:16:54,890 --> 00:16:57,930 The front one is Samsung Galaxy. 184 00:16:58,190 --> 00:17:05,790 So you can see the white dot is the face ID. 185 00:17:06,730 --> 00:17:12,970 I haven't got a clue how to use it, but I think it's worth research. 186 00:17:13,730 --> 00:17:16,230 And this one is from the Canon. 187 00:17:16,310 --> 00:17:21,210 They also have infrared sensors to detect whether your eyes are closed. 188 00:17:22,050 --> 00:17:31,750 Future works, maybe you could use some fancy phantom cameras with very, very high speed. 189 00:17:31,750 --> 00:17:37,170 Actually, have you seen the YouTube channel called Modern Rogue? 190 00:17:37,410 --> 00:17:40,810 The people are just on the next room. 191 00:17:40,810 --> 00:17:41,890 I just saw them. 192 00:17:41,890 --> 00:17:45,690 They have done some very cool demos. 193 00:17:47,030 --> 00: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. 194 00:17:58,790 --> 00:18:05,070 So they can use a slow camera to film faster things. 195 00:18:05,070 --> 00:18:08,470 But it has to be a motion object. 196 00:18:08,470 --> 00:18:12,790 It's not rotating things, I doubt it. 197 00:18:12,790 --> 00: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. 198 00:18:24,810 --> 00:18:26,610 So the key takeaways. 199 00:18:26,610 --> 00:18:34,870 So the first is switching rate of the infrared filling light is enough for infrared remote controlling. 200 00:18:36,010 --> 00:18:42,530 The countermeasure is we shouldn't directly connect the infrared filling light to GPIO. 201 00:18:42,530 --> 00:18:50,450 At least we should use some filter to avoid it being switched on and off very fast. 202 00:18:50,450 --> 00: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. 203 00:19:00,110 --> 00:19:06,870 And we made some homemade Paul Mann's spatial light modulator. 204 00:19:06,870 --> 00: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. 205 00:19:22,270 --> 00:19:28,830 So that every indicator of the light is a backdoor. 206 00:19:28,830 --> 00:19:32,430 So we should bring some attention to it. 207 00:19:32,610 --> 00:19:33,590 Thank you. 208 00:19:33,590 --> 00:19:34,930 Any questions? 209 00:19:34,930 --> 00:19:35,510 Any 210 00:19:39,090 --> 00:19:40,970 questions? 211 00:19:40,970 --> 00:19:42,350 Directions? 212 00:19:42,670 --> 00:19:43,730 Questions? 213 00:19:43,730 --> 00:19:44,390 Directions? 214 00:19:44,390 --> 00:19:45,530 Hi. 215 00:19:53,850 --> 00:19:55,030 Regular IR. 216 00:19:55,030 --> 00:19:55,830 I think... 217 00:20:02,150 --> 00:20:13,450 So the question was a regular LED, is it possible to emit some infrared band? 218 00:20:13,450 --> 00: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. 219 00:20:26,610 --> 00:20:27,790 Thank you. 220 00:20:27,810 --> 00:20:29,230 Any other questions? 221 00:20:30,190 --> 00:20:31,230 Okay, thank you guys. 222 00:20:31,230 --> 00:20:32,690 Hope you enjoy the show later.