1 00:00:01,540 --> 00:00:07,760 Let's skip the morning part. Okay, those are the rules. That's my name and that's the 2 00:00:07,760 --> 00:00:15,220 site and so on. Okay, this is the outline. The first part is the state of the art. If you 3 00:00:15,220 --> 00:00:20,020 have followed the presentation this morning about mobile security, you probably already know 4 00:00:20,020 --> 00:00:27,700 everything which is written in this part. Then we go on talking about Tor mobile phone and 5 00:00:27,700 --> 00:00:40,600 other strange devices. As we are a bit late, the first part will go out very fast. Okay. The 6 00:00:40,600 --> 00:00:49,900 main problem with phones is that mobile phones right now are really powerful devices. They are 7 00:00:49,900 --> 00:00:55,900 almost like computer. They got a lot of computational power, high speed data access and they 8 00:00:55,900 --> 00:00:57,460 are running on real operating system. 9 00:00:57,700 --> 00:01:04,100 The other problem is that phones are personal. Raise your hand, please, if anyone in this 10 00:01:04,100 --> 00:01:11,460 room doesn't own a phone. I don't think that, oh, you are my hero. You are cool. The other 11 00:01:11,460 --> 00:01:17,720 problem is that phones are personal and we keep them everywhere we go. And usually we go out 12 00:01:17,720 --> 00:01:24,820 and we never leave the house without them. Phones are critical because there are 13 00:01:24,820 --> 00:01:30,820 catalogs, address book entries, e-mail, SMS. You know, if you were there, if you were here at 14 00:01:31,560 --> 00:01:40,200 Christian's presentation about the Android rootkit, he dumped the content of his address book 15 00:01:40,200 --> 00:01:48,960 and his SMS database and so on. The other problem is that when we are talking about phones and 16 00:01:48,960 --> 00:01:54,800 mobile phones operator and so on, there is too much trust involved. So, you know, there is too 17 00:01:54,820 --> 00:02:00,900 much trust involved in the connection. Because I, as a user, I trust my phone because I use the 18 00:02:00,900 --> 00:02:07,760 phone to make phone calls. The phones have to trust the operator, which is the entity, which 19 00:02:07,760 --> 00:02:14,940 gives them access to the network. And operator have to trust themselves to route calls around the 20 00:02:14,940 --> 00:02:24,580 globe. So what happens? That the user have to trust the operator as well. Why operators are using 21 00:02:24,580 --> 00:02:30,060 so much trust between them? Because they want the things to go out smooth. Because if the calls, 22 00:02:30,180 --> 00:02:39,440 if texting, if anything, won't go out smooth, the user will be pretty angry. The other problem is 23 00:02:39,440 --> 00:02:45,800 that there's too much heterogeneity. I mean, usually it's not a big problem. But, you know, 24 00:02:45,860 --> 00:02:51,440 when you have to work with different communication, close communication protocol or a different 25 00:02:51,440 --> 00:02:54,560 kind of network or different hardware landscape, you know, you have to work with different 26 00:02:54,580 --> 00:03:00,020 networks. So you get problems when you try to stick them together and secure the environment. 27 00:03:01,040 --> 00:03:08,760 The other issue are, well, phones are really powerful, as I said before, but they were burned for 28 00:03:08,760 --> 00:03:18,120 making calls and sending SMS. So the operating system adapted to this behavior. And in the 29 00:03:18,120 --> 00:03:24,560 screen shot, it's my phone. I was trying to access my gmail account. I was trying to access my 30 00:03:24,580 --> 00:03:32,220 address. And as you can see from the keyboard, I can only input letters. There are even numbers 31 00:03:32,220 --> 00:03:41,360 or let's not talk about special symbols. I need to push that button over there. And I need to 32 00:03:41,360 --> 00:03:46,580 change the cable. So what does it mean? That difficult passwords are difficult to enter. And 33 00:03:46,580 --> 00:03:54,560 the user will usually choose an easier password. So I'm going to show you how it works. 34 00:03:54,580 --> 00:04:00,000 The other problem is the screen size. I'm trying in this screen shot, I was trying to connect to 35 00:04:00,440 --> 00:04:11,140 a site with a self-signed certificate. And I have no idea what the certificate would be 36 00:04:11,140 --> 00:04:21,980 because I have no way to check that. Another thing is that we usually think that we have 37 00:04:21,980 --> 00:04:24,560 bought the device, so we are usually owning it. And we don't know what the device is. And 38 00:04:24,580 --> 00:04:32,560 it's not true. Because on top of the food chain, there's the manufacturer. I'm reporting 39 00:04:32,560 --> 00:04:39,680 here some headlines from past news. CBS reported that Apple phone ban for minister in France. 40 00:04:39,820 --> 00:04:46,400 I think I can remember. Android developer forum, which talk about the keys which they 41 00:04:46,400 --> 00:04:53,940 implemented and so on. The carrier operator update, which burst, which was, you know, 42 00:04:54,680 --> 00:05:04,160 which was spyware. And the black hat DC talk about iPhone privacy and so on and so on. 43 00:05:06,180 --> 00:05:13,580 Another problem is data. Usually that is stored in clear text. Right now, Blackberry and Nokia 44 00:05:13,580 --> 00:05:21,480 love some sort of encryption. Another problem is that access usually is all or nothing. You can 45 00:05:21,480 --> 00:05:24,560 access the data. You can access all data. And the problem is that the data is not accessible. 46 00:05:24,580 --> 00:05:32,880 So what I'd like to see in the future is fine tuning of application permissions. If you 47 00:05:32,880 --> 00:05:40,440 switch to the communication side, well, it's not going to be easy as well. GSM has been 48 00:05:40,440 --> 00:05:49,900 broken. UMTS, almost. SMS, well, it has been abused. Easily spoofable. If you can remember, 49 00:05:50,060 --> 00:05:54,560 Charlie Miller, yeah, Charlie Miller and Colin Miller, both of them have been abused. 50 00:05:54,580 --> 00:06:03,560 Colin Miller brought an exploit with MMS for, I think it was iPhone. Bluetooth. Everybody 51 00:06:03,560 --> 00:06:12,940 knows about Bluetooth. And Wi-Fi and so on. That's pretty. Oh, this is interesting. This one 52 00:06:12,940 --> 00:06:19,240 was discovered by Colin Miller. There are mobile phone operators which are injecting custom 53 00:06:19,240 --> 00:06:24,560 HTTP headers in the request you're sending to your mobile phone. So, you know, there's a lot of 54 00:06:24,580 --> 00:06:27,820 problems with that. It's not going to work. Your mobile phone browser make something like, 55 00:06:27,980 --> 00:06:39,900 you know, the IME, IMEI, IMSI. It's not really important. So just to recap, this part I was 56 00:06:39,900 --> 00:06:46,120 really speeding through. Which are the problems? Mobile phones are everywhere. They are 57 00:06:46,120 --> 00:06:53,360 designed for call and text messages, not for going out on the Internet or using secure 58 00:06:53,360 --> 00:06:54,560 protocols. But the problem is that it's not going to work. It's not going to work. It's not 59 00:06:54,580 --> 00:06:58,140 going to work. Stored data cannot be easily protected. And communication needs to be 60 00:06:58,140 --> 00:07:05,040 secured. I won't address a solution for this problem. But for this last one, which is Tor, we 61 00:07:05,040 --> 00:07:14,960 can get some degree of privacy and protection using Tor on our devices. Anybody here who doesn't 62 00:07:14,960 --> 00:07:24,560 know at all how Tor works? Okay. Cool. That was our crash course. This is the story of Tor. 63 00:07:24,580 --> 00:07:36,280 Tor on unusual devices. Yeah. The first time Tor got on the iPhone was December 2007. Then we 64 00:07:36,280 --> 00:07:45,100 got a champion one on 2009. iPhone again on 2010. Nokia, 900, and Android. When you are trying 65 00:07:45,100 --> 00:07:54,240 to port Tor to mobile platform or other platform that, you know, Linux, Windows, you got 66 00:07:54,580 --> 00:08:01,240 some address, some problem to address. Like, you know, the available hardware or the hosting 67 00:08:01,240 --> 00:08:06,460 operating system, how easy is it to write or to port the program on that operating system? 68 00:08:07,000 --> 00:08:12,280 The installation process is very important. And the presence or not of a graphical user 69 00:08:12,280 --> 00:08:21,040 interface. This one is quite interesting. This port has been done by Jacob Applebone and 70 00:08:21,040 --> 00:08:24,560 Bunny of Bunny Studios. And it's a very interesting port. It's a very interesting port. 71 00:08:24,580 --> 00:08:32,220 You probably know what that is. Champion one, an alarm clock. Which has an ARM CPU and 64 72 00:08:32,220 --> 00:08:41,760 megabytes of RAM. And they run on Linux. And it's wonderful. This port is not easy to install. 73 00:08:41,900 --> 00:08:49,020 You need the champion one cross tool chain. You need to check out the sources. You need to enter 74 00:08:49,020 --> 00:08:54,560 the folder and type make. Then you have to unzip the build on a USB drive. And then you have to 75 00:08:54,580 --> 00:09:02,100 reboot the alarm clock with the key inserted. And, well, there's always the easy way, which is 76 00:09:02,100 --> 00:09:11,660 just unzip a provided build on the USB key and you are free to go. This port is quite interesting 77 00:09:11,660 --> 00:09:20,720 because, you know, the champion one has very limited resources to run Tor. So they needed a 78 00:09:20,720 --> 00:09:24,560 swap file. And this is very clever. They called it the champion one. And they said, you know, 79 00:09:24,560 --> 00:09:33,480 you need to configure Tor as a bridge. Listening on the 443 port, TCP port. Why they do this? 80 00:09:33,580 --> 00:09:46,960 Why do they do this? Because Tor running as a bridge will not be so angry about resources as a 81 00:09:46,960 --> 00:09:53,000 full blown relay. Unfortunately, there's no easy upgrade in machine. You need to, I mean, you 82 00:09:53,000 --> 00:09:54,540 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, 83 00:09:54,560 --> 00:09:56,960 to, to, to, to, to, to, to. And they need to build a another version of the program, about 84 00:09:56,960 --> 00:10:08,820 it on USB and reboot the device. But this is very interesting. Bani found out there is an 85 00:10:08,820 --> 00:10:15,800 official support for 3G DataNet for cellular DataNet during those alarm clocks. So these are 86 00:10:15,800 --> 00:10:23,680 the achievement running Tor of very limited resources and an easy instal method. Tor of Memo and 87 00:10:27,180 --> 00:10:33,780 900. What's this phone? Powerful IRM CPU. Plenty of RAM to run 88 00:10:33,780 --> 00:10:40,740 Tor. And this was a bit easy because Tor is already in the 89 00:10:40,740 --> 00:10:46,780 MIMO community repository. How could you install Tor on such 90 00:10:46,780 --> 00:10:52,660 device? Well, just enable the repository extras. There's a big 91 00:10:52,660 --> 00:10:57,540 ugly warning telling you it's dangerous. You know, okay. You 92 00:10:57,540 --> 00:11:01,880 just look for Tor in the package manager and you're done. How 93 00:11:01,880 --> 00:11:05,320 could you eventually run it? Just toggle it. This was 94 00:11:06,060 --> 00:11:14,000 wonderful. You open up the control panel. You tap on your 95 00:11:14,000 --> 00:11:20,180 router and here you are. You are running Tor on your Nokia. What 96 00:11:20,180 --> 00:11:22,640 does this port achieve? Well, it was a little bit of a 97 00:11:22,660 --> 00:11:24,900 challenge. You can easily install, you know, repository 98 00:11:24,900 --> 00:11:28,800 are wonderful. You can install software with just one click. 99 00:11:31,440 --> 00:11:36,640 Better than the champion one, you can even upgrade your 100 00:11:37,200 --> 00:11:40,800 program. And, well, this was the first graphical controller 101 00:11:40,800 --> 00:11:46,340 application for Tor mobile devices. Then we got Tor bot or 102 00:11:46,340 --> 00:11:52,600 Tor on Android. Okay. Everybody, I think, knows what 103 00:11:52,660 --> 00:11:56,580 Android is. Linux based operating system. Many different 104 00:11:56,580 --> 00:12:01,280 devices available. This port has been built by the Guardian 105 00:12:01,280 --> 00:12:06,720 project. How could you install it? Well, just scan the QR code. 106 00:12:07,180 --> 00:12:10,420 If you are running Android, you can just take a picture of the 107 00:12:10,420 --> 00:12:14,560 slide of the presentation and you will be about to install Tor 108 00:12:14,560 --> 00:12:19,660 in a minute. Unfortunately, it's not yet on the Android market. 109 00:12:21,500 --> 00:12:22,640 How could you run Tor on your Android device? Well, you can 110 00:12:22,660 --> 00:12:24,860 install Tor on your Android device. It's easier than ever. 111 00:12:25,500 --> 00:12:31,740 Toggle it. Another interesting feature about Tor on Android is 112 00:12:31,740 --> 00:12:38,260 that finally it's fully configurable. You know, this is 113 00:12:38,260 --> 00:12:43,220 the screen shot of the configuration program and it 114 00:12:43,220 --> 00:12:47,240 will offer you all of the options that Vidalia offers you 115 00:12:47,240 --> 00:12:52,640 when you are trying to run Tor on a full blown computer. And 116 00:12:52,640 --> 00:12:57,540 there's a bonus. If you are running a rooted Tor device, 117 00:12:59,930 --> 00:13:06,960 Tor can do transparent proxy. So you don't have to set a proxy 118 00:13:06,960 --> 00:13:11,820 for each application or you can use applications which are not 119 00:13:11,820 --> 00:13:17,000 designed to go through a proxy. So the achievement is 120 00:13:17,000 --> 00:13:19,060 installation, highly configurable and transparent 121 00:13:19,060 --> 00:13:22,620 proxy. And finally, Tor can run Tor on Android devices. You can 122 00:13:22,620 --> 00:13:28,620 install Tor on mobile phones, mobile Tor. Okay. When I talk 123 00:13:28,620 --> 00:13:31,660 about iPhones, I'm really talking about iPod touch, iPad 124 00:13:31,660 --> 00:13:38,460 and so on. What we got here? We got Darwin, which is the iPhone 125 00:13:38,460 --> 00:13:46,420 OS. Powerful CPU and plenty of RAM. And before going on, I want 126 00:13:46,420 --> 00:13:52,600 to thank the EFF for what they did. And I also want to thank 127 00:13:52,600 --> 00:14:03,540 Yeah. Thanks. And also for the jail breaking community for the 128 00:14:03,540 --> 00:14:11,660 hard work they are putting into this stuff. Yeah. The main 129 00:14:11,660 --> 00:14:14,980 problem right now is that my port of door for iDevices is 130 00:14:14,980 --> 00:14:20,800 that you have to have a jail broken device. That's just 131 00:14:20,800 --> 00:14:25,320 because it's easier for me to develop. I'm doing all my 132 00:14:25,320 --> 00:14:29,940 development from Linux using the open tool chain. I don't own an 133 00:14:29,940 --> 00:14:37,420 Intel Mac. I had to go that way. Okay. If you remember, I said 134 00:14:37,420 --> 00:14:41,700 that Tor on the iPhone was already available in December 135 00:14:41,700 --> 00:14:48,080 2007. Yes, but there was a problem. The original port was 136 00:14:48,080 --> 00:14:50,780 made by Cjacker1. The original port was made by Cjacker1. 137 00:14:50,800 --> 00:14:57,200 It was built for iPhone OS version 1. He or she patched the 138 00:14:57,200 --> 00:15:00,660 sources to overcome firmware limitation. The firmware at the 139 00:15:00,660 --> 00:15:05,420 time wasn't able to handle all the connection Tor opens while 140 00:15:05,420 --> 00:15:09,380 it's working. And the ship that program with a copy of 141 00:15:09,380 --> 00:15:11,800 privacy and a graphical controller application. 142 00:15:15,000 --> 00:15:20,540 Unfortunately, Cjacker1 totally disappeared. I told the tab 143 00:15:20,800 --> 00:15:24,220 that disappeared with the author. The only thing which 144 00:15:24,220 --> 00:15:28,460 remains were the patches because they were included in the 145 00:15:28,460 --> 00:15:38,740 official source 3. So what I did, when I was trying to bring 146 00:15:38,740 --> 00:15:41,960 back Tor on the iPhone, I just installed the open source tool 147 00:15:41,960 --> 00:15:48,120 chain. Right now I'm targeting iPhone OS 3.1.2. That's just 148 00:15:48,120 --> 00:15:50,780 because it's the version of the operating system. I'm not 149 00:15:50,800 --> 00:15:53,620 targeting the operating system which is shipping with the phone 150 00:15:53,620 --> 00:15:57,380 at the time I bought it. And then cross-compiling from Slack 151 00:15:57,380 --> 00:16:02,760 where. I'm building the program following J Freeman convention. 152 00:16:03,160 --> 00:16:06,020 If you don't know who J Freeman is, he's the guy behind Cydia. 153 00:16:09,520 --> 00:16:14,280 My sources are an overlay to his sources so you can just check 154 00:16:14,280 --> 00:16:20,780 out J Freeman sources. Check out mine sources. You just go to the 155 00:16:20,800 --> 00:16:27,480 browser and copy my sources over the check out of and you can 156 00:16:27,480 --> 00:16:32,100 just use this build system to build my package. And that's the 157 00:16:32,100 --> 00:16:34,760 address if you want to take a look at the sources and the 158 00:16:34,760 --> 00:16:40,640 repository and so on. So the new port is made by me. Built 159 00:16:40,640 --> 00:16:45,280 for a newer version of the operating system. It should work 160 00:16:45,280 --> 00:16:50,060 with version 4 and so on. There's really no problem at all. 161 00:16:50,800 --> 00:16:53,360 The old patches were no longer needed because right now the 162 00:16:53,360 --> 00:16:57,980 firmware is able to handle that many connections. When you 163 00:16:57,980 --> 00:17:03,580 install the mobile Tor package from Cydia, you also get a copy 164 00:17:03,580 --> 00:17:09,500 of Polypo instead of Pryvoxy. And you get an SB settings 165 00:17:09,500 --> 00:17:13,240 plug-in so you can easily toggle it on or off. And the 166 00:17:13,240 --> 00:17:20,060 plug-in will start both Tor itself and Polypo. It's not a 167 00:17:20,060 --> 00:17:20,380 very long time. For example, for example, the mobile Tor is using a 168 00:17:21,000 --> 00:17:27,840 screenshot of the application. You just tap on the button and 169 00:17:28,520 --> 00:17:35,160 you are free to go. What happens when you run Tor on your iPhone? 170 00:17:35,320 --> 00:17:38,660 Well, you can get client functionality, obviously. You 171 00:17:38,660 --> 00:17:43,480 can be a relay. You can run hidden services. It's working. 172 00:17:43,940 --> 00:17:49,800 It's fully working. The interesting thing is that 173 00:17:49,800 --> 00:17:54,980 obviously you can run it over the wireless or over the 174 00:17:54,980 --> 00:17:58,940 cellular data network without problem. And another cool 175 00:17:58,940 --> 00:18:02,680 feature of the operating system is that it's doing the 176 00:18:02,680 --> 00:18:08,180 transparent proxy thing. So you didn't have to care about 177 00:18:09,840 --> 00:18:14,560 proxying applications. There are some limitations, 178 00:18:14,760 --> 00:18:18,320 unfortunately. The operating system doesn't support SOX 179 00:18:18,320 --> 00:18:19,060 proxies. 180 00:18:19,960 --> 00:18:24,760 That's no problem. We can run polypod in front of it. There 181 00:18:24,760 --> 00:18:30,160 is still no, there isn't still an easy way to set up a proxy 182 00:18:30,160 --> 00:18:34,260 while you are surfing through the cellular data network. I'm 183 00:18:34,260 --> 00:18:41,120 trying to discover a way to do it. There's a VPN trick. You 184 00:18:41,120 --> 00:18:49,340 can set up an easy crackable VPN. And at the time when you 185 00:18:49,800 --> 00:18:54,840 recognize that the VPN is running, it lets you choose a 186 00:18:55,400 --> 00:19:00,940 proxy. So you can do that. Another problem is that there 187 00:19:00,940 --> 00:19:05,920 isn't yet Tor secure browser, meaning a Tor which, a browser 188 00:19:05,920 --> 00:19:14,020 which, which respect all the, which protect you from the 189 00:19:14,340 --> 00:19:18,120 privacy threats that browsing through the Internet pose to 190 00:19:18,120 --> 00:19:19,020 your privacy. 191 00:19:19,800 --> 00:19:24,400 Other limitations are that it's cryptographically intense, so 192 00:19:24,400 --> 00:19:29,260 it's a bit of a battery drain. And at least in Italy, several 193 00:19:29,260 --> 00:19:32,100 data networks are a very tough friend because you've got 194 00:19:32,100 --> 00:19:37,220 rapidly changing IP address, spot coverage. It's not, it's 195 00:19:37,220 --> 00:19:44,060 not that funny, but it works. How's the development going? 196 00:19:44,360 --> 00:19:49,000 It's, well, there's a bit too much fiddling with the common 197 00:19:49,000 --> 00:19:49,780 line interface. It's a bit of a challenge. It's a bit of a 198 00:19:49,800 --> 00:19:52,640 challenge. So we're trying to reduce all the, all these steps. 199 00:19:53,140 --> 00:20:00,200 But for instance, for installing the repository, you have to copy 200 00:20:00,200 --> 00:20:05,360 and paste a common into your SSH connection to your phone. 201 00:20:06,460 --> 00:20:09,820 Many users, according to the media receiver, aren't able to 202 00:20:09,820 --> 00:20:15,240 do that. There's really, really a strong need for a graphical 203 00:20:15,240 --> 00:20:19,080 controller application like, like Vidalia and what it does 204 00:20:19,080 --> 00:20:23,960 need for a secret browser, too. Some of the future crazy ideas, 205 00:20:24,260 --> 00:20:28,220 IRM is working. If you don't know what IRM is, it's the 206 00:20:28,220 --> 00:20:34,980 anonymity relay monitor. It was one of the first Google summer 207 00:20:34,980 --> 00:20:40,600 of code projects sponsored by Tor project. It's a Python 208 00:20:40,600 --> 00:20:45,420 application to monitor your Tor relay. It's screen shot right 209 00:20:45,420 --> 00:20:55,260 here. I got a plan to port to this platform. I'm doing work on 210 00:20:55,260 --> 00:21:01,580 TDDNS. Right now the main problem is it's a bit tricky to 211 00:21:02,050 --> 00:21:08,840 build and have it run. It will be nice to try out the devices. I 212 00:21:08,840 --> 00:21:13,640 got positive feedback after running on iPod touches and 213 00:21:13,640 --> 00:21:15,400 iPad. I'm going to put a link to the link in the chat. If you 214 00:21:15,420 --> 00:21:24,280 it would be nice to have other feedback. I was going to show 215 00:21:24,860 --> 00:21:33,840 you how to toggle it but I had to do that on the network so I 216 00:21:33,840 --> 00:21:45,400 just used this backup movie. Okay. So I'm going to show you 217 00:21:50,640 --> 00:21:54,900 how to do it. Okay. Sorry for the quality. I was recording a 218 00:21:54,900 --> 00:22:01,280 VNC connection to my phone. This is the mobile Safari. I just fire 219 00:22:01,280 --> 00:22:07,300 it up, go to check the project. Okay. I'm not using Tor. I'm 220 00:22:07,300 --> 00:22:11,500 closing the web browser. I'm opening the settings, the SB 221 00:22:11,500 --> 00:22:15,400 settings application. I'm just tapping on the Tor icon and 222 00:22:16,400 --> 00:22:21,060 it's running. Both Tor and PolyPo are running. Okay. Closing 223 00:22:21,060 --> 00:22:25,920 it. Opening the settings, the system settings application. You 224 00:22:25,920 --> 00:22:35,020 just go to your Wi-Fi. You choose your Wi-Fi network you 225 00:22:35,020 --> 00:22:41,620 are currently connected to. You scroll down. Okay. HTTP proxy, 226 00:22:41,760 --> 00:22:45,400 manual. Server is a local host. I'm going to show you how to 227 00:22:48,600 --> 00:23:00,320 do it. Local host. And port, well, it's the default port. It 228 00:23:00,320 --> 00:23:09,880 was the private support. Okay. Now if you go back to mobile 229 00:23:09,880 --> 00:23:15,400 Safari. And we hit the refresh button. And we go back to the 230 00:23:18,500 --> 00:23:29,900 network. Okay. Here's the address. Go. The network was 231 00:23:29,900 --> 00:23:41,220 low. Congratulations. We are running Tor. Woo! Okay. 232 00:23:42,440 --> 00:23:42,780 That's all.