hi guys thanks for attending our talk we're going to talk about uh biometric system hacking in the age of smart vehicle so who are we um i'm kevin 2600 and this is my teammate wesley say hi okay so um we are the secure researchers from starwee lab and we have researched and found many interesting uh vehicle related bugs and presented and started at a defcon in last few in the past few years uh and if anyone wonder what car hackers lab looks like and here are some pictures for you okay um just like any other labs we got lots of interesting equipment and most importantly uh we got actual cars to play with so okay so here are the contents for today's talk uh we are going to talk about uh biometric authentication and then facial recognition spoofing and then speaking a recognition spoofing for the vehicles okay so biometric uh syndication and this is a definition of multi-factor syndication basically uh you will need to need you will need two or more factors like something you are and something you have and something you know to achieve the syndication so something you have usually this means our key fob for the cars the key fob is a very common device we have for the vehicle and in the recent time some car company start to replace the physical key fobs with a nfc car or or just a mobile phone to access the car for example this is a key fob system for tesla in the beginning tesla only provide the nfc card and mobile app to access the vehicle but later tesla has provided the physical key fob but still it based on ble and nfc okay something you know now interestingly some car company like ford they provided a feature that we can unlock the door with a pin code so we need to something to always remember this right and something you are again some model for not only uh using pin codes to unlock the door it has also provided a fingerprint reader uh that means we can point our finger at it and to unlock our car right and some company use a face id for access the vehicle has become a new trend too and also the car companies like bnw and honda prefer to use our human voice print and integrate with a smart speaker to control the cars like honda here and with the alexa okay now let's move from how do we do a speaker recognition spoofing so of speaker recognition is the identification of person from characteristics of voice it can be used to authenticate or verify identity of a speaker as part of security process and this definition i took from wikipedia and the development the history of speaker recognition can be traced all the way back to 60s the speaker recognition algorithm has started with a template matching and then move on to probability model like gnm and gnm-ubm and a feature classification like d vector and x vectors and so on so the speaker recognition system generally consists two categories like feature extraction and feature matching and in reality the extracted features are much with features of people registered in the database and then the identity is determined based on similarity of these two features so for the content to be recognized the speaker recognition system is generally divided into three categories the first one is a fixed vocabulary recognition it means voice print recognition through fixed vocabulary structure has hey theory and second one is fixed voice plus random content recognition it means the fixed con the fixed the random contents combined together such as hey bob 2600 and 2600 is generated randomly by the system and finally the random contents recognition this entire phrase is generated randomly by the system now we can see the speaker recognition system are already everywhere from exact control system in the voice assistant in the car but what could possibly go around then here we list the let's see the sum of the most common spoofing methods for speaker recognition yes the one is called is an impersonation attack the attacker tries to impersonate the victims speaking turn to disable the target system but this attack can be easily detected by the speaker vaccination system and the there are more effective and uh the one say the attacks according to replay attack speech synthesis wise commercial conversing and the adversarial example attack we are going to talk about those attacks in more due to the later later now let's talk about look at the replay attack is meaning aimed at the system of fixed sentence verification we can use the recording device to record the fixed sentence of the victims and replace the recorded sentence during verification to deceive the speaker vaccination system as we can see from a male spectrogram the similarity from replay device compared to genuine voice is high this is why the replay attack is very simple yet very effective attack however this simple method may not pass the speaker authentication system with the voice anti-spoofing now let's see some demos there are already plenty of third-party apps can control smart cars like tesla using siri this is a video demo for the replay attack on siri and because some of magazines like unlocker door needs authentication like pin codes for the for this app we can only open a chat pod uh with it yeah the door currently is locked yeah and then yeah the port is open however we have found at least one app that doesn't need x2 as authentication and we can unlock the tesla very easily now oh sorry so . yeah so ask tesla to lock unlock yep it works okay now let's take a look at a speech sentences text to speech how great is that let's take a google's as a speech as a tweet back to google actives text to speech way to tts as an example the entire speech synthesis can be divided into three parts your speaker encoder module is responsible for extracting extracting speaker features from short sentence the synthesizer module is responsible for combining the speaker feature with text to generate a male spectral gram that integrates the specific by the speaker features into the speech corresponding to the specified text the recorder measure is responsible for generating why they died with male gram which is the audio data we use for tts attack and for the speech synthesis a impairment we use the software are called monkeying bird and real-time voice cloning it is based on algorithm as with two tts which open-sourced by google in a perfect situation it can close voice in just five seconds seconds to generate the abrasive speech in a real time and this is a tiny more for the switch signature gs attack uh so first demo is two attacks by doos The battle-smart speaker has ideal anti-spoofing enabled, but we can use TTS to spoof it and impersonate as other people. And the second demo is to attack the T-mode speaker. Well, it can also be spoofed by TTS attack. We can go even further. By impersonating the T-mode speaker, the T-mode speaker can also be spoofed by TTS attack. We can go even further. By impersonating the T-mode speaker, the T-mode speaker can also be spoofed by TTS attack. We can go even further. So this is a fixed vocabulary plus random contents. So this is a fixed vocabulary plus random contents. So this is a fixed vocabulary plus random contents. So without modification, we cannot bypass the system. So now we're using Mockingbird to generate this random content number and replay it to the T-mode speaker. So now we're using Mockingbird to generate this random content number and replay it to the T-mode speaker. So now we're using Mockingbird to generate this random content number and replay it to the T-mode speaker. And we try to find the right angle to the speaker. As you can see, we may try a couple of times in order to get it to work. Yeah, it's done. The purchase is done. So we actually successfully attacked. As you can see, we may try a couple of times in order to get it to work. Adversarial example attack means an attacker has intentionally attempted to cast a machine learning model to make a mistake. For speaker recognition-proofing attack, the main goal is to attack the speaker recognition algorithm by adding some perturbation that has been calculated to the speech data to make the speech be recognized as a genuine victim to deceive the authentication system. Thank you. This is a white-box experiment for speech recognition-proofing attack on an open-source project called DeepSwitch. Before the play, let's take a look at a genuine recording. And it can be recognized successfully. Then we played a crafted recording. And the DeepSwitch translated differently. That means our attack is a success. So let's summarize our smoothing methods for speaker recognition. As we can see, the fixed vocabulary is the easiest one to attack. A simple replay will work just fine. And for the render contents, we still can use speech sentences or adversarial examples to attack. OK. Time to move on to facial recognition smoothing. The facial recognition is a technology capable of matching a human face from a digital image. Or video frame against a database of faces. Usually it can be used for a syndicate user through ID verification servers. And the facial recognition technology is constantly evolving. It was based on a low dimension characterization. And then nowadays it has evolved to three dimension face recognition. And there are already many applications implemented the face recognition. For example, the face ID to unlock our mobile phone and iPhone. And boarding the plane in the airport. And up recently, the car company has started to use face recognition technology for driver monitoring system. And also use face ID for driver profile to improve the driving experience. And of course, use the human face to syndicate the owner of a vehicle is indeed a very convenient way. And here are the four stages of face recognition procedure. The first one is face detection. So basically, the system needs to know if there's a human face or cat face. And second is a lightness detection, a.k.a. face anti-spoofing. This stage played a very important role in the face recognition procedure. And third and fourth is a feature instruction and a feature matching. And at this stage. The system will try to match the face features from the database. And let's take a close look at a face recognition procedure. But this time without anti-face spoofing. First, the input data is the image. The system needs to determine whether it's a human face. Once the system spots a human face, it will try to extract the features from this particular human face. And the final step. The system will match the face features to see if it's in the database. And next, let's talk about more about face anti-spoofing. As we mentioned, this stage plays a very important role in the face recognition procedure. Usually, we need to do some action like open our mouth or shake our head for a system to determine whether the human face presented is a real human being or just a piece of paper. In addition, the system can do a silent face. And this means no human action required. It will determine based on the things like human skin texture or different frequency of motion and so on. And this is a face recognition structure. From the diagram that we can see, there are many other entry points to attack. For example, later in the talk, we're going to share more real-life cases such as trash hold value and feature value attack. But first, let's talk about the way that the system works. Okay, so what could possibly go wrong? So here we have listed the six most common methods to spoof the facial recognition system. For example, the photo attack and more advanced attack like the adverse serial example attack. We're going to talk about these attacks in more detail next. So this is the face photo attack. We can print a written photo on a piece of paper, and as you can see, it's very easy to do. Even the kids can do it, right? See, they are very happy. And this is what we call Mr. Orange attack. Basically, we draw a human face on orange and in order to test the target system face detection function. And as we mentioned, human face detection is the first stage of every. Face recognition system simply draw a human face. Orange will easily spoof the facial recognition system when the system does not have good face anti spoofing mechanism. OK, so our first target or smart lock from Xiaomi. Let's play the video first. OK. As we can see from the video recording. When we presented an orange to the lock, you will not just detect it as a real human, even think this guy is 24 years old. And we also test the Xiaomi lock with a face photo attack and adverse serial example attack. And as we can see, every trick will work. The picture from the left is a real human victim. This is the point where the face button and Xiaomi lock has detected correctly. But when we present a face photo, which is the one in the middle. And as this is very serial example mask, it's the one here. You will also detect it as the same victim. So that all works. But this type of attack can be easily prevented because some of more more advanced system, you will come with the infrared camera. and this is what it looks like from a facial recognition system point of view so we can see if we presented a human face photo or video on a mobile see that one here on the right to the infrared camera you actually see nothing at all usually we need to do some action like open our mouse or shaking head for the face on this spoofing system to determine determine whether the face presented is a real human being or not but what can we do what what we can do is cut holes and in the eyes or mouse area to bypass the detection and we even can buy a customizing face sculpture to to bypass the system which lacks detection on a human skin texture so here's the video demo for the face sculpture tag on uh huawei p30 pro hey it's still working I need to use the Milky Way you can be all out So it's working uh as we mentioned uh early on the principle of of adversarial example attack is that attacker has intentionally designed to cast a machine learning model to make a mistake. As we can see, when we added a small perturbation to the handle picture, the machine learning model will have 99.3% confidence to think it is even in the instance, and this is classic adversarial example attack. Based on various characteristics, adversarial example attack is the most common example attack. example can be divided into three different attack methods, such as without-target, white-box or black-box attack, and one-step or multi-step attack. We mainly use the black-box adversarial example attack method for testing the traceability of adversarial examples as guaranteed by joint training of multiple models. The normal model training process is to try the parameters of the model on a fixed dataset. The adversarial example is training the sample under the condition of fixed parameters, which continuously makes the output of the model close to our expectations. The perturbation area within the eyes and the face is a big impact on the attack result. We can add perturbation in different areas on the face, but based on a research article from Tsinghua University, the perturbation area within the eyes and the face is a big impact on the attack result. We can add perturbation in different areas on the face, but based on an academic research article from Tsinghua University, the perturbation area within the eyes and the face is a big impact on the attack result. It can affect the atteplicity of the blueprints, only short報 and ne�uман of lines as opposite distance andаменends. set of optimization parameters is an ideal tool to choose the ballpark type table. mask because the human face, skin, and shape are different. One person may have more success rate than the others, as the left picture shows only 73% similarity, and the picture on the right has 89%. Okay, so this is a video demo for the adversarial example attack on Huawei P30 Pro Face ID login system. So first, this is a real person. It can be logged in successfully. Now the attackers come in. See, it doesn't work at the first time. Okay. And then he starts wearing an adversarial example mask straight in, right? So and this is a video demo for the adversarial example attack on Weimar vehicle Face ID system. So again, without a mask. Doesn't work. So now we started wearing. We modified mask. Let's try again. We got in. And this is another video. The demo. but the target is a car which we cannot disclose the name um but this car actually allow us to turn on the engine and drive off if we bypass the face id system so it's kind of scary uh if we can bypass it right with the adversarial sample mask so we need to continue you see them we continue to try and yeah eventually it works so okay so now we have the clear idea of principle of adversarial attack is we can add a small perturbation uh to cause the machine learning model to make a mistake and during the research we have found by putting a target face image on the attacker's face it can it can cover attack face partially and we can deceive some of our face recognition system with the higher successful rates and this this is a common limitation for 2d face recognition system so this is a video demo for a feature replaced attack and we test it on xiaomi notes 9. so without a mask it won't work then i will kind of wear this special mask yeah always works all the time yeah um well of course when systems set a rule so tight and like very high threshold value we weren't able to bypass it easily and this one is a face id system for banking login system which we were failed to get in good for them and for us right and so the threshold value this is car we were pen tested before which we cannot disclose the name but just like a lot of smart car it has an android based ivi which we were able to get in uh in the engineer mode and then we once we're in the engineer mode we're able to enable adb connection and once we got adb cell uh we are root straight away so what we what would you do when you got a result on ivi um maybe you replace a new screen feature maybe right um see pretty cool so and this car also gets a face id function however the anti-facial spoofing is so tight so good so we cannot spoof it with the tricks we were just mentioned above but we are roots on the system remember turns out the threshold value configure file is stored locally on ivi so we can actually modify it to a very low value in order to pass the test right so here's the video demo for the attack so first we saw modify the threshold value and when we try to log in that it failed try again yeah it won't work so then we start to do some magic like by changing the threshold value and once we change it we need to change the threshold value and we need to reboot ivi system in order to get it from working so once the system is rebooted itself and we can go into try again so see if it works so now since i reboot it okay so let's try it again and you can see the system yeah it's working see syncing syncing syncing yeah cool uh similarly this is a face id system we have come across during the nano pen test ops but this system has a two human features stored in the database once we got root in the system we can replace the system with the system one feature for our own and then the system will verify any one of them for logging in successfully which means we can log in as the victims while victims still able to log in as in themselves but which means nobody will even know where we're there okay now what if we cannot get a cell on a target and then we lose our face id is so tight and are we out of option yet let's take a look see the door is open so yeah a simple rf replay attack will work because uh those access control system usually have multiple features enabled so it turns out our target can also be opened by a fixed code radio remote controller just like people have been doing for a long time so let's take a look let's take a look let's take a look to here we go but what i did was say this is a bug it's not a bug it's a feature okay let's summarize some of the technique we have seen so far for a face detection it can be spoofed by a Mr. orange attack and face photo attack and face sculpture attack and for the face anti-spoothing uh the feature replays attack and the advanced serial sample attack will work and for the feature matching feature value attack threshold results on at some moves level or another. value attack is always a trick we can always try. So in the end, let's not forget those extra function attack by using a hacker if or something to replay. OK, here are some references if anyone would like to know more. And see, we can, for the research, we have done a lot of readings, right? Yeah, I think that's it. OK, thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you.