start	end	text
0	6740	Hello everyone. Welcome to this session. My name is Wang Kang. I'm from Alibaba Group as a security researcher.
6920	13820	So today, since you are one of the, several of the best hackers in the world,
13820	21660	so I will try my best to cut the irrelevant information out.
21660	28160	So today I will walk you through some of my research fundings
28160	37240	during a lookup at several infrared devices. So I called it, who said hacking a fund doesn't matter.
37580	49460	Me, I am focusing on IOT, V2X and cyber physics systems and do some security research or stuff.
49900	57300	This is joint work with Dr. Yang from CIICT. Unfortunately, he couldn't make the trip here.
58340	66080	So this is the introduction. Since you are hackers, I think no one cares about outlying, I think.
66080	69880	I don't care about outlying, just formal outlying.
70160	76620	So this is basically the NEC standard of infrared remote control.
76760	83600	Basically, you can think, consider it as a duty cycle modulation.
83600	91640	Like the 25% versus 50% duty cycle indicates whether it's 1 or 0.
91640	97920	So it's not a big deal. So tell me something I don't know, right?
98700	111740	The first thing I want to mention is that regularly the infrared light is 940 nanometers or 850 nanometers.
111740	123680	So why is it going to use these two bands? Because the spectrum, the water in the air will absorb a lot of light.
123680	132360	But this infrared band will be absorbed less. So this is number one reason.
132360	142340	And the second one I want to mention is why there is going to need a carrier, which is around 38 kilohertz.
142420	148020	I think it's because there are so many infrared in the sun.
148020	158300	So in order to bypass, to reject some false positive, we have to utilize a bandpass filter.
158300	165720	So the 38 kilohertz is used to let the signal pass through.
167260	170680	So how can we get infrared code?
171280	176560	Regularly there is a very fantastic database called LIRC.
176560	178460	You should look it up.
180720	185000	Basically, all of your remote controls can be found out there.
185000	190960	And you can build up some DIY gauges to record and replay.
191640	197280	I want to mention, like this one is from LIRC.
197280	207220	You basically can fire up a Raspberry Pi Zero and you connect an IR emitter and there you go.
207400	209920	So it's not a big deal.
209920	220060	So I want to show you something new that in recent days there are some new fancy phones such as the Samsung Galaxy S10.
221680	226340	This is a commercial off-the-shelf remote controller.
226420	237140	And I want to show you it has a super slow-mo mode, which runs at around 960 frames per second.
237140	245380	And usually an iPhone is about 120 or 240 to 240 FPS.
245440	253020	So you can see the... I will press the play button and you will see the red dot.
254780	256140	Did you see that?
256280	262430	Yeah, so I was wondering if I can use that as a logic analyzer.
262430	268270	So I converted these videos into different frames.
268270	273230	And I renamed... did you see the four dashes?
273230	276690	It indicates that the light is on.
276690	282550	So I cross-examined with a logic analyzer.
282970	285930	This one is from the logic analyzer.
285930	291670	So this line is file names.
291670	294610	So you can see it fits very well.
294770	296710	Take a closer look.
297210	302830	Yeah, this is B, the 312 frames.
303150	305070	It fits right.
305070	309850	And later I want to calculate the timing.
309850	322230	So we just... 301 minus by 197, multiplied by the frame rate, we get the timing.
322230	327210	And from the specification, the timing is roughly the same.
327210	329210	So far so good.
331470	333430	This was a very lucky example.
333430	336390	So let's see another not-so-lucky example.
337150	339910	This is another kind of remote control.
339910	344610	It's not as the 25% or 50% dirty cycle.
345470	351930	This one is way up the Nyquist theorem.
351930	360550	So our system cannot sample it precisely.
360550	366810	But this can be solved by some modern communication technologies, such as...
366810	372550	Basically, this problem can be considered as an undersampled signal recovery.
372550	380290	So you can use a video edge trigger, or multipass samples, or some fancy technologies.
380290	382510	But I think it's solvable.
382910	387470	So the next thing I want to show you is the infrared filling light.
387470	393790	You can see there are so many security cameras out on the street.
394010	398210	You got this one, this one, this one, this one, this one, different kinds.
398250	400650	All of them...
401750	404050	During the night...
404810	407130	Whoa, what happened?
407150	416490	During the night, the security camera has to emit some infrared light to let the object can be seen in the night, right?
416490	417130	So...
419190	422150	This is another example on the street.
422390	425750	This is on the store on the shelf. A lot of them are...
425750	428890	All of them have the infrared filling lights.
429270	440970	I took some apart and found out that this is a socket and only has two power supply to the filling light.
441170	444370	So what we don't know yet is one.
444370	448770	The first is whether it's 940 nanometers or not.
448770	452630	And the second is the switching speed.
452810	460730	Is it going to be fast as 38 kilohertz so that we can pass the band pass filter?
460750	464850	And will higher transmit power matters?
464850	470830	So having these three questions, we have to do some experiments.
470830	473510	So this one is a DIY gauges.
474230	478990	Roughly it's a Raspberry Pi head with FPGA on it.
478990	485090	So this one is a commercial off-the-shelf filling light I brought.
485230	494110	So I fired up a signal generator just to test out the first two points.
494110	502550	So you can see the blue light indicates the infrared signal is received.
502550	510310	So from this experiment we can see that it is 940 nanometers.
510310	518950	And second, the circuit of the infrared filling light doesn't cut our switching speed.
518950	524710	So the next experiment is about the larger one, infrared filling light.
524930	527970	Yeah, you can see the green light.
527970	529590	Oh, the blue light.
532830	542310	So we later on record some air conditioners, remote control signal, and replay it.
542310	544930	If you can hear the sound.
544930	550850	And the infrared filling light can be used as a remote controller.
550850	553110	The air conditioner is turned on.
553530	562290	And the next question is whether a security camera, how they are wired.
562290	567290	So we looked into the manual of the reference designs of some security cameras.
567290	573210	We found out that exactly the LED is connected to the GPIO.
573210	580290	Remember, there is a very fancy project called PiFM to use GPIO to send FM broadcasting.
580290	591490	It's used DMA mode to utilizing the GPIO as a signal generator.
591490	604590	So this one, so I've done some further experiment that the white one device is a security camera.
604590	612610	And the black is the original remote control just placed there to show that I didn't trick it.
612790	617050	And you can see, it works now.
617050	628190	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.
628190	639270	But if there is an internet connected security camera, maybe this is the way to break the air gap system.
644170	652070	Especially some smart TVs, they have browsers, Android TVs basically.
657330	660670	So what could possibly go wrong?
660670	664390	Remember the PewDiePie event?
664390	669550	The printer thing, someone hacked a lot of printers to print out advertisement.
669550	678870	So maybe this way can be used to turn on the air conditioner at the same time massively.
678870	686430	So that the grid, the power grid will encounter some power surge or something.
688610	693790	So this one is, this photo is taken in the Netherlands.
693790	701150	I found out that the security camera, the TV, is just faced to each other.
701370	706230	And this one is just right at the corner of the Defcon street.
706350	710950	There is a ramen shop.
710950	718610	So you can see that, the security camera facing the TV with infrared filling light.
719470	721310	And this is a photo resistance.
721310	729550	There is another way. I want to show you that some of the designs of the security cameras, they have photo resistance.
729690	737810	So that when there is light, the light will be turned on automatically.
737810	745050	But it cannot be used because it's very slow, around 30 milliseconds.
745110	746590	So it's not usable.
746590	749590	But just a try.
749590	751910	So look at the bright side.
751910	754870	Remember some audio guides in the museums.
754870	758370	You can see, you point an audio guide onto the wall.
758370	762050	The wall device actually is emitting some infrared signal.
762050	772030	That turns on your audio guide to show specific mp3 files or other things.
772030	776870	So maybe you see that one is a security camera.
776870	783810	Maybe we could just use that infrared light to do some watermark thing.
784370	785710	So one more chapter.
785710	789410	I think this chapter is quite interesting.
789410	792990	I call it Paul Mann's Spatial Light Modulator.
793550	797730	And the following will be a commercial from Kaspersky.
797810	801910	Do we have audio from this HDMI output?
801910	803150	Let me try.
807090	810910	Yeah, basically, there's no... let me do this.
811950	820530	In a party of a CSO, a hacker hacked the fan and asked him to pay some money.
820530	823390	So he said, go hack yourself, hackers.
823390	825650	Actually, he is saying that.
827810	832870	So Kaspersky's point is, there's nothing left to hack when your business is protected.
832870	834630	So hacking a fan doesn't matter.
834630	837190	So who said hacking a fan doesn't matter?
838310	844030	Remember, there are so many things that are rotating.
844030	851250	Let's see, the DVD has roughly 10,000 revolutions per minute, right?
851250	856730	And the car, the wheels, roughly 700 RPMs.
856750	863150	And for an electric drill, there is around 10k to 50k.
863150	877510	So to get 38kHz signal, if we drill some holes on the disk, let's say 300 holes, we need 7600 RPMs is enough.
877730	885530	And if it's 150 holes, roughly the DVD could handle it.
885530	892790	So as for Amazon Alexa, you can see there are 84 holes on it.
893070	895350	It's just a joke, nothing matters.
895410	906910	So this is an electric drill, and this has 150 holes on the disk.
907740	917010	So we started with some experiments to calibrate the system and to calibrate the revolutions per minute.
917010	922770	And then we did some, let's see this one closely.
922930	926910	There are roughly 150 holes on the disk.
926910	931290	So we connected it with a drill, electric drill.
931370	933190	Let's see the final result.
933190	939810	So this one is an infrared emitter that emits a steady infrared light.
939810	944390	And this one will cut the light very fast.
944390	952890	And the blue light indicates that it's receiving a valid infrared signal, remote signal.
952890	954510	So let's see.
954950	956370	Turned on.
956370	957450	Yep.
957750	959270	Off.
959270	960510	On.
961310	962610	Yep.
962610	963770	You see that?
964550	975230	So if a fan is hacked, maybe we could turn up these RPMs and we could use it as a spatial light modulator.
976210	981970	It's a bit of sci-fi, but I think it's definitely doable.
982830	987730	So what's next? This is a video I borrowed from Twitter.
987730	997250	So maybe we could just emit the infrared light to the film.
997250	999130	It rotates very fast.
999130	1004710	So it could be used as a physical recorder for infrared light.
1006530	1007370	Yeah.
1008230	1011890	And one more thing, that iPhone X.
1012450	1014890	You can see the back cell phone is iPhone X.
1014890	1017930	The front one is Samsung Galaxy.
1018190	1025790	So you can see the white dot is the face ID.
1026730	1032970	I haven't got a clue how to use it, but I think it's worth research.
1033730	1036230	And this one is from the Canon.
1036310	1041210	They also have infrared sensors to detect whether your eyes are closed.
1042050	1051750	Future works, maybe you could use some fancy phantom cameras with very, very high speed.
1051750	1057170	Actually, have you seen the YouTube channel called Modern Rogue?
1057410	1061890	The people are just on the next room. I just saw them.
1061890	1065690	They have done some very cool demos.
1067030	1071950	Some other techniques, such as the virtual frame technique,
1071950	1078790	they can be used to compress the sending that increases the frame acquisition rate.
1078790	1085070	So they can use a slow camera to film faster things.
1085070	1088470	But it has to be a motion object.
1088470	1092790	It's not rotating things, I doubt it.
1092790	1099790	So the next opportunity, maybe we could use this technology to do some spy cam detection
1099790	1104810	or infrared video watermarks or anything else.
1104810	1106610	So the key takeaways.
1106610	1114870	So the first is switching rate of the infrared filling light is enough for infrared remote controlling.
1116010	1122530	The countermeasure is we shouldn't directly connect the infrared filling light to GPIO.
1122530	1130450	At least we should use some filter to avoid it being switched on and off very fast.
1130450	1134210	And the second one is the commercial off-the-shelf cell phone camera,
1134210	1139850	the high-speed camera, can be used as a potential logic analyzer.
1140110	1146870	And we made some homemade Paul Mann's spatial light modulator.
1146870	1155510	And the final sci-fi thoughts is maybe we could utilize some supply chain risk
1155510	1162270	so that a regular LED is actually an infrared LED.
1162270	1168830	So that every indicator of the light is a backdoor.
1168830	1172430	So we should bring some attention to it.
1172610	1174930	Thank you. Any questions?
1174930	1182350	Any questions? Directions?
1182670	1185530	Questions? Directions? Hi.
1193850	1195830	Regular IR. I think...
1202150	1213450	So the question was a regular LED, is it possible to emit some infrared band?
1213450	1220370	I haven't done the research, but I highly doubt that because due to the cost of benefit,
1220370	1225590	I think the manufacturers will cut the irrelevant emit.
1226610	1229230	Thank you. Any other questions?
1230190	1232690	Okay, thank you guys. Hope you enjoy the show later.
