Let's skip the morning part. Okay, those are the rules. That's my name and that's the site and so on. Okay, this is the outline. The first part is the state of the art. If you have followed the presentation this morning about mobile security, you probably already know everything which is written in this part. Then we go on talking about Tor mobile phone and other strange devices. As we are a bit late, the first part will go out very fast. Okay. The main problem with phones is that mobile phones right now are really powerful devices. They are almost like computer. They got a lot of computational power, high speed data access and they are running on real operating system. The other problem is that phones are personal. Raise your hand, please, if anyone in this room doesn't own a phone. I don't think that, oh, you are my hero. You are cool. The other problem is that phones are personal and we keep them everywhere we go. And usually we go out and we never leave the house without them. Phones are critical because there are catalogs, address book entries, e-mail, SMS. You know, if you were there, if you were here at Christian's presentation about the Android rootkit, he dumped the content of his address book and his SMS database and so on. The other problem is that when we are talking about phones and mobile phones operator and so on, there is too much trust involved. So, you know, there is too much trust involved in the connection. Because I, as a user, I trust my phone because I use the phone to make phone calls. The phones have to trust the operator, which is the entity, which gives them access to the network. And operator have to trust themselves to route calls around the globe. So what happens? That the user have to trust the operator as well. Why operators are using so much trust between them? Because they want the things to go out smooth. Because if the calls, if texting, if anything, won't go out smooth, the user will be pretty angry. The other problem is that there's too much heterogeneity. I mean, usually it's not a big problem. But, you know, when you have to work with different communication, close communication protocol or a different kind of network or different hardware landscape, you know, you have to work with different networks. So you get problems when you try to stick them together and secure the environment. The other issue are, well, phones are really powerful, as I said before, but they were burned for making calls and sending SMS. So the operating system adapted to this behavior. And in the screen shot, it's my phone. I was trying to access my gmail account. I was trying to access my address. And as you can see from the keyboard, I can only input letters. There are even numbers or let's not talk about special symbols. I need to push that button over there. And I need to change the cable. So what does it mean? That difficult passwords are difficult to enter. And the user will usually choose an easier password. So I'm going to show you how it works. The other problem is the screen size. I'm trying in this screen shot, I was trying to connect to a site with a self-signed certificate. And I have no idea what the certificate would be because I have no way to check that. Another thing is that we usually think that we have bought the device, so we are usually owning it. And we don't know what the device is. And it's not true. Because on top of the food chain, there's the manufacturer. I'm reporting here some headlines from past news. CBS reported that Apple phone ban for minister in France. I think I can remember. Android developer forum, which talk about the keys which they implemented and so on. The carrier operator update, which burst, which was, you know, which was spyware. And the black hat DC talk about iPhone privacy and so on and so on. Another problem is data. Usually that is stored in clear text. Right now, Blackberry and Nokia love some sort of encryption. Another problem is that access usually is all or nothing. You can access the data. You can access all data. And the problem is that the data is not accessible. So what I'd like to see in the future is fine tuning of application permissions. If you switch to the communication side, well, it's not going to be easy as well. GSM has been broken. UMTS, almost. SMS, well, it has been abused. Easily spoofable. If you can remember, Charlie Miller, yeah, Charlie Miller and Colin Miller, both of them have been abused. Colin Miller brought an exploit with MMS for, I think it was iPhone. Bluetooth. Everybody knows about Bluetooth. And Wi-Fi and so on. That's pretty. Oh, this is interesting. This one was discovered by Colin Miller. There are mobile phone operators which are injecting custom HTTP headers in the request you're sending to your mobile phone. So, you know, there's a lot of problems with that. It's not going to work. Your mobile phone browser make something like, you know, the IME, IMEI, IMSI. It's not really important. So just to recap, this part I was really speeding through. Which are the problems? Mobile phones are everywhere. They are designed for call and text messages, not for going out on the Internet or using secure protocols. But the problem is that it's not going to work. It's not going to work. It's not going to work. Stored data cannot be easily protected. And communication needs to be secured. I won't address a solution for this problem. But for this last one, which is Tor, we can get some degree of privacy and protection using Tor on our devices. Anybody here who doesn't know at all how Tor works? Okay. Cool. That was our crash course. This is the story of Tor. Tor on unusual devices. Yeah. The first time Tor got on the iPhone was December 2007. Then we got a champion one on 2009. iPhone again on 2010. Nokia, 900, and Android. When you are trying to port Tor to mobile platform or other platform that, you know, Linux, Windows, you got some address, some problem to address. Like, you know, the available hardware or the hosting operating system, how easy is it to write or to port the program on that operating system? The installation process is very important. And the presence or not of a graphical user interface. This one is quite interesting. This port has been done by Jacob Applebone and Bunny of Bunny Studios. And it's a very interesting port. It's a very interesting port. You probably know what that is. Champion one, an alarm clock. Which has an ARM CPU and 64 megabytes of RAM. And they run on Linux. And it's wonderful. This port is not easy to install. You need the champion one cross tool chain. You need to check out the sources. You need to enter the folder and type make. Then you have to unzip the build on a USB drive. And then you have to reboot the alarm clock with the key inserted. And, well, there's always the easy way, which is just unzip a provided build on the USB key and you are free to go. This port is quite interesting because, you know, the champion one has very limited resources to run Tor. So they needed a swap file. And this is very clever. They called it the champion one. And they said, you know, you need to configure Tor as a bridge. Listening on the 443 port, TCP port. Why they do this? Why do they do this? Because Tor running as a bridge will not be so angry about resources as a full blown relay. Unfortunately, there's no easy upgrade in machine. You need to, I mean, you need to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to, to. And they need to build a another version of the program, about it on USB and reboot the device. But this is very interesting. Bani found out there is an official support for 3G DataNet for cellular DataNet during those alarm clocks. So these are the achievement running Tor of very limited resources and an easy instal method. Tor of Memo and 900. What's this phone? Powerful IRM CPU. Plenty of RAM to run Tor. And this was a bit easy because Tor is already in the MIMO community repository. How could you install Tor on such device? Well, just enable the repository extras. There's a big ugly warning telling you it's dangerous. You know, okay. You just look for Tor in the package manager and you're done. How could you eventually run it? Just toggle it. This was wonderful. You open up the control panel. You tap on your router and here you are. You are running Tor on your Nokia. What does this port achieve? Well, it was a little bit of a challenge. You can easily install, you know, repository are wonderful. You can install software with just one click. Better than the champion one, you can even upgrade your program. And, well, this was the first graphical controller application for Tor mobile devices. Then we got Tor bot or Tor on Android. Okay. Everybody, I think, knows what Android is. Linux based operating system. Many different devices available. This port has been built by the Guardian project. How could you install it? Well, just scan the QR code. If you are running Android, you can just take a picture of the slide of the presentation and you will be about to install Tor in a minute. Unfortunately, it's not yet on the Android market. How could you run Tor on your Android device? Well, you can install Tor on your Android device. It's easier than ever. Toggle it. Another interesting feature about Tor on Android is that finally it's fully configurable. You know, this is the screen shot of the configuration program and it will offer you all of the options that Vidalia offers you when you are trying to run Tor on a full blown computer. And there's a bonus. If you are running a rooted Tor device, Tor can do transparent proxy. So you don't have to set a proxy for each application or you can use applications which are not designed to go through a proxy. So the achievement is installation, highly configurable and transparent proxy. And finally, Tor can run Tor on Android devices. You can install Tor on mobile phones, mobile Tor. Okay. When I talk about iPhones, I'm really talking about iPod touch, iPad and so on. What we got here? We got Darwin, which is the iPhone OS. Powerful CPU and plenty of RAM. And before going on, I want to thank the EFF for what they did. And I also want to thank Yeah. Thanks. And also for the jail breaking community for the hard work they are putting into this stuff. Yeah. The main problem right now is that my port of door for iDevices is that you have to have a jail broken device. That's just because it's easier for me to develop. I'm doing all my development from Linux using the open tool chain. I don't own an Intel Mac. I had to go that way. Okay. If you remember, I said that Tor on the iPhone was already available in December 2007. Yes, but there was a problem. The original port was made by Cjacker1. The original port was made by Cjacker1. It was built for iPhone OS version 1. He or she patched the sources to overcome firmware limitation. The firmware at the time wasn't able to handle all the connection Tor opens while it's working. And the ship that program with a copy of privacy and a graphical controller application. Unfortunately, Cjacker1 totally disappeared. I told the tab that disappeared with the author. The only thing which remains were the patches because they were included in the official source 3. So what I did, when I was trying to bring back Tor on the iPhone, I just installed the open source tool chain. Right now I'm targeting iPhone OS 3.1.2. That's just because it's the version of the operating system. I'm not targeting the operating system which is shipping with the phone at the time I bought it. And then cross-compiling from Slack where. I'm building the program following J Freeman convention. If you don't know who J Freeman is, he's the guy behind Cydia. My sources are an overlay to his sources so you can just check out J Freeman sources. Check out mine sources. You just go to the browser and copy my sources over the check out of and you can just use this build system to build my package. And that's the address if you want to take a look at the sources and the repository and so on. So the new port is made by me. Built for a newer version of the operating system. It should work with version 4 and so on. There's really no problem at all. The old patches were no longer needed because right now the firmware is able to handle that many connections. When you install the mobile Tor package from Cydia, you also get a copy of Polypo instead of Pryvoxy. And you get an SB settings plug-in so you can easily toggle it on or off. And the plug-in will start both Tor itself and Polypo. It's not a very long time. For example, for example, the mobile Tor is using a screenshot of the application. You just tap on the button and you are free to go. What happens when you run Tor on your iPhone? Well, you can get client functionality, obviously. You can be a relay. You can run hidden services. It's working. It's fully working. The interesting thing is that obviously you can run it over the wireless or over the cellular data network without problem. And another cool feature of the operating system is that it's doing the transparent proxy thing. So you didn't have to care about proxying applications. There are some limitations, unfortunately. The operating system doesn't support SOX proxies. That's no problem. We can run polypod in front of it. There is still no, there isn't still an easy way to set up a proxy while you are surfing through the cellular data network. I'm trying to discover a way to do it. There's a VPN trick. You can set up an easy crackable VPN. And at the time when you recognize that the VPN is running, it lets you choose a proxy. So you can do that. Another problem is that there isn't yet Tor secure browser, meaning a Tor which, a browser which, which respect all the, which protect you from the privacy threats that browsing through the Internet pose to your privacy. Other limitations are that it's cryptographically intense, so it's a bit of a battery drain. And at least in Italy, several data networks are a very tough friend because you've got rapidly changing IP address, spot coverage. It's not, it's not that funny, but it works. How's the development going? It's, well, there's a bit too much fiddling with the common line interface. It's a bit of a challenge. It's a bit of a challenge. So we're trying to reduce all the, all these steps. But for instance, for installing the repository, you have to copy and paste a common into your SSH connection to your phone. Many users, according to the media receiver, aren't able to do that. There's really, really a strong need for a graphical controller application like, like Vidalia and what it does need for a secret browser, too. Some of the future crazy ideas, IRM is working. If you don't know what IRM is, it's the anonymity relay monitor. It was one of the first Google summer of code projects sponsored by Tor project. It's a Python application to monitor your Tor relay. It's screen shot right here. I got a plan to port to this platform. I'm doing work on TDDNS. Right now the main problem is it's a bit tricky to build and have it run. It will be nice to try out the devices. I got positive feedback after running on iPod touches and iPad. I'm going to put a link to the link in the chat. If you it would be nice to have other feedback. I was going to show you how to toggle it but I had to do that on the network so I just used this backup movie. Okay. So I'm going to show you how to do it. Okay. Sorry for the quality. I was recording a VNC connection to my phone. This is the mobile Safari. I just fire it up, go to check the project. Okay. I'm not using Tor. I'm closing the web browser. I'm opening the settings, the SB settings application. I'm just tapping on the Tor icon and it's running. Both Tor and PolyPo are running. Okay. Closing it. Opening the settings, the system settings application. You just go to your Wi-Fi. You choose your Wi-Fi network you are currently connected to. You scroll down. Okay. HTTP proxy, manual. Server is a local host. I'm going to show you how to do it. Local host. And port, well, it's the default port. It was the private support. Okay. Now if you go back to mobile Safari. And we hit the refresh button. And we go back to the network. Okay. Here's the address. Go. The network was low. Congratulations. We are running Tor. Woo! Okay. That's all.