For those of you who attended the last talk, mine is not going to be that low level. It's going to be like poetry compared to it. I'm here to discuss privacy issues in IoT, to see how privacy issues look like, and hopefully to bring some awareness to that and send you out with the knowledge. So let's start. So the left one is me. Another guy who worked with me on the research, his name is David Sopas, very talented man, follow him on Twitter. We both work at Checkmarks. I'm the head of AppSec Research of Checkmarks. This is my details to contact me if you have any questions after the talk. If you want to connect, I'd be more than happy to do that. I know some people don't like to ask questions, but I'm not going to be in a crowd, so this is a good way to catch me. Okay, so I'm starting with some assumptions. I'm assuming you're familiar with basics of Bluetooth and BLE. I'm assuming you're familiar with the attacks on this kind of technologies. I'm assuming you're going to be cool with oversimplifications that I'm going to do. We don't have time to... talk about every single thing, so I'm going to lie a bit. And I'm assuming you will want some links to the tools and methodologies that I'm going to show, because I'm not going to discuss them in depth, just to show them. So I promise to publish everything that you will need. So let's start with the agenda. I'm going to describe a bit of privacy, what is it, and what is it good for. We'll show some IOT privacy leaks as a result of bad implementations. We'll do the same with malicious intent of devs and vendors. We'll talk about one very nice privacy leak we made with the high-end IOT. Spoiler, Amazon Alexa on Echo Dot. I'm saying that so you'll stay. And some takeaways. So let's talk about privacy. Okay. I always start with a good book, Wikipedia, to describe things. So privacy is the ability of an individual or group to seclude themselves or information about themselves and thereby express themselves selectively. So there are some points in there that are very important to privacy. One of them is the right to be let alone. Yes, it is a thing. The option to limit some access to information, to private information, secrecy, control over. Your information about oneself, obviously about oneself, about where you walk or your employees' information as well, et cetera. So what are the reasons that people have, vendors, developers, if they're legitimate or not, to take one's privacy? First is security. Okay. If I tell you that one of you is a terrorist and I need to check each and every one of you, this is a good reason to do that, maybe. Maybe to get something physical. If I can break into your house or any other private place you have, I can steal things, I can take things, get private information. There are a few aspects of private information that I can gain from getting your personal information. It's worth a lot of money, as we know these days. Maybe. Maybe some information about organizations, behavior analysis, all these are worth money. And also sometimes because I lack the interest of actually making sure that your privacy is kept. I think this is one of the most common issues, actually. What does it take from a person to forfeit his privacy? Also security. At the top place, people believe that if... They're letting themselves being groped at the airport makes... It means that their flight will be okay. Then they agree to it. Sentences like, I have nothing to hide. I'm sure you heard it from people. Try to ask these people some personal questions, like maiden number, date of birth, and sexual preferences, and you'll see that suddenly they do have stuff to hide. Sometimes laziness. I don't care. I don't read what I'm clicking on. It doesn't really matter. Ignorance from people who doesn't really know what they might lose. And the terrible of all, convenience. If I can let Google know where I'm going and just wait for them to let me know where I should eat or what I should pack in my suitcase, then I'm willing to forfeit my privacy. And then comes IOT and breaks everything because it has all the reasons to take one's privacy, all the reasons to forfeit one's privacy, and obviously lack of interest on the side of the vendors and convenience on the side of the users is a really bad combination. So what we did? We gathered a lot of IOTs. We gathered a lot of IOT devices. Some are really ridiculous. Here on top you can see a Bluetooth pacifier. I kid you not. People are putting Bluetooth in their baby's mouths now. Every single device had a privacy issue. Again, every single device. We did not manage to find even one device or lacking any problems. Cheap ones. Expensive ones, no matter where they were manufactured, made in the U.S., made in China, all the same. Every single device. This is a scary thing. Let's start with physical security. A lock, a Bluetooth lock, they come in many shapes and sizes. None of them stays closed. None of them. None of them. It's, first of all, probably if I would hack this thing it would be it live, but still people want to use it for small things I guess. It's the same with the houses though. There are two really effective ways to build a smart lock. HCI Snooping is a, I think most of the locks actually broke with this method. It's really an easy method, easy as one, two, three. You enable HCI log in your phone. You use the application that's supposed to open the lock. You extract relevant data using PCAP, Wireshark, and then use a script to replay or fuzz. Extremely easy. Again, this is how you use HCI, run the application, and then look at the PCAP files. In this case, you can immediately see, well, maybe you can't, but I can, see that the code is a six-digit number. Obviously, very easily fuzzed, like in this example. Here it is locked. And here it is not. And this is the time it takes, not more than that. Almost all locks we checked. So another, for those that this method did not work, we actually had to work a bit harder. We used the middle, a man-in-the-middle attack. I tried to make a live demo for it, but the atmosphere here is too dirty. So it really didn't work. So we'll just keep it at that. You run a proxy between a device and a lock, extract relevant data, replay, and the lock opens. You remember the right to be let alone. That's a nice thing, that part of privacy. This is not something you can do if you have this kind of a smart band, an anonymous smart band. We tried several of those, again. We will not let you alone. Again, faking messages using the same methods. It's really scary. It's really scary. Just faking a message, that's it. Nothing more than that. So why is it so easy? Why is it so easy? Well, two things, two reasons. One is lack of encryption. An IoT, a BLE device vendor, they either do not implement at all encryption. or they use deprecated methods or they use them wrong, encryption is sometimes complicated. But if you don't care, it makes it even more complicated. This really allows easily to sniff either passively or by doing a man-in-the-middle attack. The second thing is using very weak pairing methods, methods like JustWorks and PASCII. Read about it. It's really deprecated. It's really old. There are way better methods these days that should be used. So why not make it better? Again, it's cheaper. You don't need to change anything. I have the same software for four years now. If it's cheaper, I can sell more. Vendors come and go very quickly. Some of them don't really have names, just imaginary names. Zero liability. And people keep buying anyway, no matter what. So why bother? So this is when you implement in a negligent way. What about malicious? Actually, this was kind of surprising because we didn't really aim at finding something like that. We thought that just bad implementation is what we're going to see all over the place. And then we took a smart scale by AEG. The reason we took a smart scale by AEG is because we tried to get serious and not all these no-name IoT devices that we used before. AEG is German. Nothing more serious than that. Also, it was in white or black. We took the black. Very serious. So the scale was AEG, but the app that came with it, not so much. It wasn't really AEG. The app was by someone called V-Trump, a Chinese company. Among their clients are AEG, Texas Instruments, and Realtek. Seems legit. Nothing to suspect. And we didn't. So we started by installing the app like any other user who needs to check his weight. Maybe. Sometimes. And then we got all these permissions. All these needed permissions. It's not that bad. I mean, it's a bit weird that a smart scale would need to be able to mount and unmount file systems, maybe. We started to kind of suspect, but we kind of understood what's going on when checking the technology. First of all, they didn't really try to hide anything because the host, I don't know if you can see it. It's called gather.lotusseed.com. They actually gather things. And then it was pretty horrible to notice that the app connects to a server in China and sends the following info. IMEI, Wi-Fi ID, phone operator. Phone brand and model. Wi-Fi. Wi-Fi of your house and phone. MAC address. Latitude, longitude, and obviously your weight. This is just to make it insulting of the old data. So it's not my mistake. This is not negligent, right? They actually. Made a lot of work to gather all this information. So we tried to get responses from all the previous devices. We didn't manage to get any response because I don't think it's real companies. So I just skipped that part. But here we did have real companies, right? AEG and V-Trump. So AEG said we action products with priority whenever we believe it is necessary. I think they didn't believe it is necessary. Because I could never manage to contact them again or get any response. So this is the response we left with. V-Trump, on the other hand, said that their app functionality does require these permissions. I mean, they ignored completely the second part of all the information that is sent. They only talked about the permissions. And obviously they decided not to change anything. And this is what they told us. But they did make some changes. Just a little before this lecture, we checked again. They made changes. First of all, they changed the host. So it's not gather something something dot com. It's now just a bunch of characters dot com. The second thing they did is they added encryption. So it's actually mitigating the permissions. It's not just the penetration testers. It's mitigating the researchers. Because they didn't want us to see what they're sending. They did it really bad. We did check. They're actually sending the same thing. Not that important. And this is an AEG that you would probably think that you should trust. Let's go a bit high level towards not personal, but maybe corporate, military, I don't know, other users. Exfiltration. So everyone knows what airgap is. Everyone who knows what airgap is, please raise your hand. Okay. That's quite an amount. So airgap is being used for highly sensitive data. It's disconnected from outside network completely. It's supposed to be completely disconnected. Things can get in. No problem. It's an assistive network. It's an assumption that some viruses or malware will go into the system. And that's, let's say, it's not okay, but it's okay. But nothing gets out. So no matter what, nothing gets out. Unless you're using a $650 smart light bulb in your building, base, room, whatever. What we did here... On the left side, you can see... Well, let's start on the right side. On the right side, you see simulation of a computer who has, let's say, malware or virus. And this virus or malware found out that there is a smart light bulb somewhere in the vicinity. Connects to it. And start exfiltrating data through the blinking of light bulb. That's it. On the left, you can see... The app is running. We did it for Android. That it will start to gather the blinks and make them into letters. It's very sterile here because it's just aimed at the wall. At the white wall. I don't know why it's blue. But it's a white wall. Believe me. We actually tested it from a distance of 100 meters with a telescope during daylight to a window. And it also works. You can see it starts blinking. And soon it will start interpreting the data. As you can see, just ones and zeros. Nothing fancy. Some of you probably say it's not really effective because the victim actually sits in a room and the light blinks. He should be suspecting something sometimes. We actually did the same thing with only blue... Blue wave lights. It cannot be seen in the eye. But every camera catches it. Obviously, we can do it multi-layered with several... With several colors. If you want larger, wider bandwidth. But this is enough for the POC. So, that's it. And it was kind of funny to do something through a telescope during daylight. We didn't look crazy at all, by the way, doing it. Okay. So, the same person who said, yeah, but the guy says it's blinking also is saying, yeah, but this is all just cheap crappy devices. And he's right. So, we tried something else. We... We went for Alexa. We went for Alexa because it's the least, cheapest, crappiest device we could find. Amazon Echoes. The series. Most sold intelligent personal assistant. By the end of 2017, 45 million units were sold. I'm pretty sure some more sold since then. Popularity. Popularity rose in last years. So is the fear of being recorded or listened to unknowingly. And we wanted to show that the fear is totally justified. So, we started checking it. What we wanted is to turn our Echo Dot into a tapping device. We're coming from AppSec, application security. So, we don't like soldering. And we don't like, I don't know, some dirt on our hands. So, we decided to do it remotely. We thought it would be easier for us. Because I think that in the last couple of years, a couple of groups managed to do some hacks and cracks by actually having contact with the Echo. So, we tried to do something remotely. The first challenge was actually the activation challenge. Because Alexa is asleep until you wake her up. She only starts streaming audio to the cloud after the wake up word Alexa has heard. This is something that is very hard to do remotely. Unless you shout really hard. So, our solution was to start. After the user wakes her up. It usually happens several times a day, I guess, for users. We had several options how to do that. Not to go into it very deep. We decided to use Alexa skills. Alexa skill is like an application that is run by Alexa. It can be either built in or you can download it for a dedicated Alexa store. Alexa skill is like an application that is run by Alexa. It can be either built in or you can download it for a dedicated Alexa store. It can be either built in or you can download it for a dedicated Alexa store. And we thought it would be really nice to create a malicious one. Something that starts benign, like a calculator, that you ask him how much is one plus one. You get the answer and you don't suspect anything, but Alexa will then continue to record you. But Alexa will then continue to record you. So this was the grand plan. The second challenge came quite quickly. Because we couldn't keep the session alive after the benign part. The second challenge came quite quickly. We couldn't keep the session alive after the benign part. gives the answer and then she goes to sleep again. She either shuts down or if you tell her to stay, she prompts the user. So the partial solution was a flag that we found. I mean, it's a normal flag. It's a default flag. Should end session. If you mentioned that you should not end session, then Alexa goes into another cycle, another session. But Alexa will prompt the user that she's again waiting for a response. So this is kind of problematic because the users of Alexa are very smart. And they will know that something is going on. So the complete solution came from a class that is called reprompt. We said what if we try and put an empty string in reprompt? Well, complete silence. So we tried to put an empty string in reprompt. So that was pretty cool. We managed to keep the sessions coming without Alexa saying anything to the user. So that was the first challenge that was solved. The second challenge that was solved. The third challenge was to actually get the data to the malicious developer. The actual recording is not accessible for the developers. It's uploaded to the cloud. But the transcription generates a user's response. And to the developer, the thing that needs to be done is to mushroom by Amazon is accessible. Usually, the developer needs to choose a specific group of words, which they call the word slot. For example, if you put cities, Alexa expects to get some sort of city name in your mumblings. Names, animals, you get the gist. So our solution was to create the custom word slot that will get everything, whatever is said. Alexa will try to guess what is the closest word to it. And we actually created a custom one. We called it input. And this word slot would capture any single word. But we wanted sentences, not single word. Because if the user says a single word and they don't know what they're saying, and then goes to another cycle, then we'll probably miss the other ten words in the sentence. So we actually created templates for different sentences with all lengths of sentence we could think of. We could think of 15. I don't know why. Maybe you have bigger vocabulary and you can make sentences of more than 15 words. We couldn't. So we decided, no, every sentence that is no more than 15 words will be captured by Alexa, transcribed, and be sent to the malicious user. Okay. I'll give a link to the demo later. Sorry about that. Sorry. No, there was a perfect line. That was out of order. Thank you. Thanks. So the first thing Alexa, what's the distance between Tel Aviv and New York? Can you hear it? No? Okay, let's skip it. And voila! Thank you, thank you. You're a great crowd. Okay, so that guy from before, from earlier, who pointed out things, he probably is saying now, what about the blue light? The blue light is on all the time. And he's right. But it doesn't matter much. And actually, we thought it lowered the effectiveness of the attack, of the malicious app. But it didn't. But Amazon didn't think so. Amazon thought it's still bad. And they said that the users of intelligent private assistant are not expected to keep an eye content with the device. So the blue light is not expected to be there. Also, and this was actually news for us, there is something called Alexa voice services, which allows any vendor with some sort of IoT to embed Alexa capabilities into their probably lightless products. If I make a teapot or a refrigerator with Alexa in it, I don't have to put any light. So this does not lower the risk here. Amazon responds, and they ask that we read it. Customer trust is important to us, and we take security and privacy seriously. We have put mitigation in place for detecting this type of skill behavior. Reported by check marks. This came from the security team at Lab 126 in Amazon. Actually, it was amazing working with these guys. They gave us very rapid responses. We collaborated with them the entire way with the fixes. And they decided to make the following mitigations. Detect and disallow empty reprompts. There is no use of that feature. Identify eavesdropping skills that are uploaded to the store. They didn't really give us more details, but obviously they're on it. And detect lower than usual sessions and act appropriately. So this is kind of great. Quick round of takeaways. And I'm sorry if I'm getting a bit preachy. But it's important. So it's very easy to forget that IoT devices are actually computers who has inputs and outputs, cameras, ears and eyes, whatever. Really, users, normal users, everyday users do not really think that there may be a privacy breach in stuff they wear all the time. The breaches, as we said, sometimes it's because the device sucks. Sometimes it's because it's malicious. But always because the users allow it. So privacy issues are a layer eight problem. Only users can solve it by making sure that they buy only trusted devices. By making it very clear to vendors that vulnerable devices will stay on the shelves. And by making it very clear to vendors that found vulnerabilities must be fixed quickly. Your job. I'm supposed to write it down. Talk to users, please. Talk to vendors, if it's possible. Educate and bring awareness. Privacy issues are a real big problem. Break as many IoT devices as possible and publish your findings. No matter how small they are. Bring awareness. Please. And that's it. That was me.