guard your android

23
Stay Hungry, Stay Foolish! Stay Alert, Stay Safe! Om Shanti

Upload: harsh-dattani

Post on 08-Feb-2017

191 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Guard your Android

Stay Hungry, Stay Foolish!Stay Alert, Stay Safe!

Om Shanti

Page 2: Guard your Android

Aboutme.apk

A Student and a Learner! Always! :P

Harsh Dattani GDG Baroda

Page 3: Guard your Android

We all know!

● Fastest Growing Mobile Operating System● 1.5 billion downloads a month and growing● Millions of Devices running this Operating

System● Easy (Are you sure?) to Develop Applications● Open Source!

Page 4: Guard your Android

What we Don’t know!

● It’s easy to create malware and target Android.

● Even “seem like trusty” app can be malicious.

● It’s not that our data, but friend’s data is also important!

Page 5: Guard your Android

Important Security Terms!

● Assets● Vulnerabilities● Attack Vectors● Threats● Proactive Measures● Counter Measures● Patches● Malware

Page 6: Guard your Android

Some Famous Android Malware

● Fake Opera Browser● Fake Angry Bird Space● Droid Dream Malware● Blackmart● Cracked Apks● Battery Savers● And More...!

Page 7: Guard your Android

Unix Security Policy

1. Process Isolation2. Hardware Isolation3. User Permission Model4. R/W/X Permissions to file5. Secure IPC

Page 8: Guard your Android

Application Installation

Page 9: Guard your Android

Android Security Policy

1. Application Isolation2. Sandbox of Application3. Secure Communication4. Signing the Application5. Permission model of Application

Page 10: Guard your Android

Virtualization

Page 11: Guard your Android

Application Isolation

● Each application has own GID/UID.

● System apps also have own GID/UID.

● Based on UNIX Security Model.

Page 12: Guard your Android

Permission Policy (Default)

● No app can Write other app data.● But can Read data, with due permission● Connect to network● Cannot Use Peripherals● Cannot Use System APIs to Read/Send

SMS, Call..● Cannot Load App on System Start

Page 13: Guard your Android

Darwin’s Theory!

Page 14: Guard your Android

Dalvik → ART

Page 15: Guard your Android

1.0 → 6.0

Page 16: Guard your Android

Less Secure → More Less Secure

Page 17: Guard your Android

Some Steps!

1. Select popular application. 2. Reverse Engineer it.

a. Dex2jarb. Apktoolc. Smali/Baksmali and many more..

3. Inject malicious code.4. Distribute the app. (With new Certi)

Page 18: Guard your Android

Root?

Page 19: Guard your Android

But it’s not Free!

Page 20: Guard your Android

Dangers of Root!

● Isolation is gone!

● We have unknown code (Custom ROM)

● Permission Exploits

● Privacy! (Major)

Page 21: Guard your Android

Exploitation Frameworks

● AFE● Santoku● MSFvemon● Androguard● APKTool● Dex2Jar

Page 22: Guard your Android

Security Checklist?

Page 23: Guard your Android

JQuery?