Good morning, ladies and gentlemen. How is everything going? Today, I'm going to show you a security risk which I discovered is possible on Android system. It's an APK file infection on Android system. My name is Bob Pan. I'm a Chinese. I wrote Daxujia. Maybe some of you know me through my work, and I work for China Micro. I focus on the research on mobile security. I love my job. Yeah. Okay. When Android has been designed, Google certainly has security in mind. Now we start from three announcement that Google made to show Android is safe. Okay. The first was announced in March 2011 because some bad guys play some bad application on the Google market. So Google throws a kill switch on Android phones. And they showed their power by removing 50 in fact blade of bad applications. And then Christie Bunu from Google made a statement shocked the world. Ms. Christie said Android is safe. Antivirus companies are scammers. And they should be ashamed of themselves. themselves. Oh, those are really strong words. And then on February 2002, 2012, sorry. Also, Google said Android staff says themselves had a new layer to the security of the Android, the Google bouncer. The Google bouncer performs a set of analysis of everything of the Google market and the Google said downloading are decreasing. After reading this I am sad. BY limitation you have to be professional. beş�� I found Android is safe, no antivirus company I needed, I'm going to lose my job. Oh, shit. But after I looked into applications on the market, I found my job is safe because there are a lot of bad applications still there with a lot of downloads, so Google Bonsai is inactive. And this is a blog I published in May 3rd, highlights the list of bad applications and according to the date. From China Micro, the malware will be more and more and more this year, why? Because a famous system like Android will be targeted by real scammers, everyone knows it. So where is the challenge? Experience test, challenge is to explore the system. And only through exploring the system, we can find a way to protect the system. So let's look inside the system. I want to show you what happens to me and how I find the security risk. Actually, this year on March 1 day, I was playing a game on my computer. My mobile on my Android phone, and the advertisement popped up on my screen, I had it, so I'm going to remove it, and then I look inside the APK files, and I found APKs, I signed the zip files, it contains the Android manifest.xml. We can find the package name, version, definition. For the service, activities, receivers, whatever. And the classes.exe, we can find the code for the DAVIC version machine. And the meta info photo, we can find the certificate and signature there. So let's look deeper into the Android manifest file. It's a Google-defined application. It's an XML file, Google-defined, but not documented. So we have to find it by ourselves, we can read the source code there. And there are many tools can read this, but all of them are limited, and we must do modification on it to make it suitable for the Android system. And the DAX file is in DAVIC-executed format, this time Google-defined, and then document. Yeah. We can find the format on the Android website, yeah, and a lot of tools can modify it. I personally like the ASM DAX, it's well-documented and have a nice API. And smiley-back-smiley. DAX makers are also good. When I was modifying an application on my Android phone, using the ASM DAX, I got an out-of-memory exception. Then I Googled it, and I found APKs can only use 16 to 32 megabytes of memory. It is limited. And it's not enough. Yeah. It's not enough for the ASM DAX to modify a DX, so we must do in a clever way. And as last, I find by start a separated DAVIC version machine, we can bypass the limitation. Okay. The last is the meta-info photo. It is designed by the Sun Microsystem. Now it's Oracle. So we can find... It's a document from the Oracle's website. And tools like Jarsign from the JDK and the Sun APK from Android source can generate it. But the Sun APK, we have the source, but it is dependent on the complement only available on the Oracle Java version machine. So to make it runable on Android platform, it's not necessary. We have to do small modification to replace the dependence. Okay. I put the previews together and build my advertisement remover, and then I show the remover to my team-mates. They said, oh, shit. If we don't have the remover, we can't use it. If the bad guy got this technology, they can build a virus. So I look inside code again and build a proof of sound concept virus. It can work on Android without root or without any exploit. So it's time to see. Okay. So the magic... So Tom, the cat, has an Android phone, and he install Hello World on his device. One day, he get a short message from the mouse Jerry, and Jerry ask Tom to install a new version of Dropbox. And Tom downloaded. Then he install it. Yeah. So Dropbox is actually a virus. It will try to infect us applications on the device. So let's open the Dropbox. Yeah. It's actually just seems... Looks like... Same with the original. Yeah. Same with the new one. So let's forget about the Dropbox. Now Tom get an application update for the Hello World, and it prompt him to uninstall the previous Hello World, okay, and install the new Hello World. Okay. Now let's open the new Hello World. Yeah. We got to use this app. You must pay me bar bar dollar. I don't want to pay, so I click no, and a school on my screen. Oh, I hate it. And then we start again, and we want to use the original Hello World, so we have to pay for the money. Okay. This is actually a virus, and this technology can hijack an APK. Okay. Okay. So to use... So how this works, I split this into two part, part A and part B. Part A is the payload of the virus. Its duty is to extract and load part B. Part B is the payload of the virus. It will try to find... Okay. And then APK inject part A into the APK, and copy itself, the part B, into the APK. Because the APK is modified, so part B will try to resign the APK, and at last, part B will promote the user to install the infected APK. So. When a virus begins, it starts part A, and part A starts part B. Part B infects another application, and when another application starts, the virus begins again. So part A, part B, again and again. Yes. This is truly a virus. Okay. Thank you. Thank you. Today, I flew from China to United States to talk about the security of NGO system. There are certainly security risk on NGO system. I hope by talking about the risk, the community can join. together to solve it. And we are looking forward to work with anybody to make Android safe. Thank you.