80
Mobile Malware John Mitchell CS 155 Spring 2016 Acknowledgments: Lecture slides are from the Computer Security course thought by Dan Boneh and John Mitchell at Stanford University. When slides are obtained from other sources, a a reference will be noted on the bottom of that slide. A full list of references is provided on the last slide.

Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices. ... • Mobile malware

Embed Size (px)

Citation preview

Page 1: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mobile Malware

John Mitchell

CS 155 Spring 2016

Acknowledgments: Lecture slides are from the Computer Security course thought by Dan Boneh and John Mitchell at Stanford University. When slides are obtained from other sources, a a reference will be noted on the bottom of that slide. A full list of references is provided on the last slide.

Page 2: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Outline

• Mobile malware • Identifying malware – Detect at app store rather than on platform

• Classification study of mobile web apps – Entire Google Play market as of 2014 – 85% of approx 1 million apps use web interface

• Target fragmentation in Android – Out-of-date Apps may disable more recent

security platform patches

Page 3: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Malware Trends

Page 4: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

W

Page 5: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 6: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Based on FairPlay vulnerability

• Requires malware on user PC, installation of malicious app in App Store • Continues to work after app removed from store • Silently installs app on phone

Page 7: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Android malware 2015

Page 8: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Current Android MalwareDescription

AccuTrack This application turns an Android smartphone into a GPS tracker.Ackposts This Trojan steals contact information from the compromised device and uploads them to a remote server.Acnetdoor This Trojan opens a backdoor on the infected device and sends the IP address to a remote server.Adsms This is a Trojan which is allowed to send SMS messages. The distribution channel ... is through a SMS message containing the download link.Airpush/StopSMSAirpush is a very aggresive Ad-Network.…

BankBotThis malware tries to steal users’ confidential information and money from bank and mobile accounts associated with infected devices.

http://forensics.spreitzenbarth.de/android-malware/

Page 9: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Trends 2014-15

Page 11: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Android malware example

Page 12: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Install malicious “conference app”

Page 13: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Malware behavior triggered by C&C server (Chuli)

Page 14: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Outline

• Mobile malware • Identifying malware – Detect at app store rather than on platform

• Classification study of mobile web apps – Entire Google Play market as of 2014 – 85% of approx 1 million apps use web interface

• Target fragmentation in Android – Out-of-date Apps may disable more recent

security platform patches

Page 15: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

STAMP Admission System

Static

Dynamic

STAMP

Static AnalysisMore behaviors,

fewer details

Dynamic AnalysisFewer behaviors,

more details

Alex Aiken,John Mitchell,Saswat Anand,Jason FranklinOsbert Bastani,Lazaro Clapp,Patrick Mutchler,Manolis Papadakis

Page 16: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Data Flow Analysis

getLoc() sendSMS()

sendInet()

Source: Location Sink: SMS

Sink: Internet

Location SMS Location Internet

• Source-to-sink flows o Sources: Location, Calendar, Contacts, Device ID etc.o Sinks: Internet, SMS, Disk, etc.

Page 17: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Data Flow Analysis in Action

• Vulnerability Discovery

Privacy PolicyThis app collects your:ContactsPhone NumberAddress

FB API

Send Internet

Source: FB_Data Sink: Internet

Web Source: Untrusted_Data

SQL Stmt Sink: SQL

• Malware/Greyware Analysiso Data flow summaries enable enterprise-specific policies

• API Misuse and Data Theft Detection

• Automatic Generation of App Privacy Policieso Avoid liability, protect consumer privacy

Page 18: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Challenges

• Android is 3.4M+ lines of complex code o Uses reflection, callbacks, native code

• Scalability: Whole system analysis impractical

• Soundness: Avoid missing flows

• Precision: Minimize false positives

Page 19: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

STAMP Approach

• Model Android/Java o Sources and sinks o Data structures o Callbacks o 500+ models

• Whole-program analysis o Context sensitiveSTAMP

Android

Models

App App

Too expensive!

OS

HW

Page 20: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Data We Track (Sources)

• Account data

• Audio

• Calendar

• Call log

• Camera

• Contacts

• Device Id

• Location

• Photos (Geotags)

• SD card data

• SMS

30+ types of sensitive data

Page 21: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Data Destinations (Sinks)

• Internet (socket)

• SMS

• Email

• System Logs

• Webview/Browser

• File System

• Broadcast Message

10+ types of exit points

Page 22: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Currently Detectable Flow Types

Unique Flow Types = Sources x Sink

396 Flow Types

Page 23: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Example Analysis

Contact Sync for Facebook (unofficial)

Description: This application allows you to synchronize

your Facebook contacts on Android.

IMPORTANT: * "Facebook does not allow [sic] to export phone

numbers or emails. Only names, pictures and statuses are synced."

* "Facebook users have the option to block one or all apps. If they opt for that, they will be EXCLUDED from your friends list."

Privacy Policy: (page not found)

Page 24: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Possible Flows from Permissions

Sources Sinks

INTERNETREAD_CONTACTS

WRITE_SETTINGSREAD_SYNC_SETTINGS

WRITE_CONTACTSREAD_SYNC_STATS

GET_ACCOUNTS WRITE_SECURE_SETTINGS

WRITE_SETTINGSINTERNET

Page 25: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Expected Flows

Sources Sinks

INTERNETREAD_CONTACTS

WRITE_SETTINGSREAD_SYNC_SETTINGS

WRITE_CONTACTSREAD_SYNC_STATS

GET_ACCOUNTS WRITE_SECURE_SETTINGS

WRITE_SETTINGSINTERNET

Page 26: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Observed Flows

FB API

Write Contacts

Send Internet

Source: FB_Data

Sink: Contact_Book

Sink: InternetRead Contacts

Source: Contacts

Page 27: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Chuli source-to-sink flows

Page 28: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Outline

• Mobile malware • Identifying malware – Detect at app store rather than on platform

• Classification study of mobile web apps – Entire Google Play market as of 2014 – 85% of approx 1 million apps use web interface

• Target fragmentation in Android – Out-of-date Apps may disable more recent

security platform patches

Page 29: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

A Large-Scale Study of Mobile Web App Security

Patrick Mutchler, Adam Doupe, John Mitchell, Chris Kruegel, Giovanni Vigna

Page 30: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mobile Apps

Page 31: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mobile Apps

Page 32: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mobile Apps

Page 33: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

• Mobile web app: embeds a fully functional web browser as a UI element

Mobile Web Apps

Page 34: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Obj foo = new Object();addJavascriptInterface(foo, ‘f’);

JavaScript Bridge

JavaJavaScript

Page 35: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

JavaScript Bridge

JavaJavaScript

f.bar();

Page 36: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Security Concerns

• Who can access the bridge?

– Everyone

Page 37: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Isolated in Browser

Page 38: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

No origin distinction in WebView

Java

JavaScript

f.bar();

Page 39: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Static Analysis

• How many mobile web apps?

• How many use JavaScript Bridge?

• How many vulnerable?

Page 40: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Experimental Results

• 737,828 free apps from Google Play (Oct ’13)

• 563,109 apps embed a browser

• 219,404 use the JavaScript Bridge

• 107,974 have at least one security violation

Page 41: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Most significant vulnerabilities

1. Loading untrusted web content

2. Leaking URLs to foreign apps

3. Exposing state changing navigation to foreign apps

Page 42: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

1. Loading untrusted web content

2. Leaking URLs to foreign apps

3. Exposing state changing navigation to foreign apps

Page 43: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

“You should restrict the web-pages that can load inside your WebView with a whitelist.”- Facebook

Page 44: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

“…only loading content from trusted sources into WebView will help protect users.”- Adrian Ludwig, Google

Page 45: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

1. Navigate to untrusted content

Page 46: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

// In app codemyWebView.loadUrl(“foo.com”);

Page 47: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

// In app codemyWebView.load(“foo.com”);

<!-- In HTML --><a href=“foo.com”>click!</a>

Page 48: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

// In app codemyWebView.load(“foo.com”);

<!-- In HTML --><a href=“foo.com”>click!</a>

<!-- More HTML --><iframe src=“foo.com”/>

Page 49: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

// In app codemyWebView.loadUrl(“foo.com”);

<!-- In HTML --><a href=“foo.com”>click!</a>

<!-- More HTML --><iframe src=“foo.com”/>

// In JavaScriptwindow.location = “foo.com”;

Page 50: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

public boolean shouldOverrideUrlLoading( WebView view, String url){

// False -> Load URL in WebView // True -> Prevent the URL load

}

Page 51: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

public boolean shouldOverrideUrlLoading( WebView view, String url){

String host = new URL(url).getHost(); if(host.equals(“stanford.edu”)) return false; log(“Overrode URL: ” + url); return true;}

Page 52: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Reach Untrusted Content?

• 40,084 apps with full URLs and use

JavaScript Bridge

• 13,683 apps (34%) can reach untrusted

content

Page 53: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mishandling SSL Errors

• 117,974 apps implement onReceivedSslError

• 29,652 apps (25%) must ignore errors

Page 54: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Vulnerability % Relevant % Vulnerable

Unsafe Nav 15 34

HTTP 40 56

Unsafe HTTPS 27 29

Primary results

Page 55: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Popularity

Page 56: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Outdated Apps

Page 57: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

29% unsafe nav

Libraries

51% HTTP

53% unsafe HTTPS

Page 58: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Takeaways

• Apps must not load untrusted content into WebViews

• Able to identify violating apps using static analysis

• Vulnerabilities are present in the entire app ecosystem

Page 59: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Outline

• Mobile malware • Identifying malware – Detect at app store rather than on platform

• Classification study of mobile web apps – Entire Google Play market as of 2014 – 85% of approx 1 million apps use web interface

• Target fragmentation in Android – Out-of-date Apps may disable more recent

security platform patches

Page 60: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Target Fragmentation in Android Apps

Patrick Mutchler John Mitchell

Yeganeh Safaei Adam Doupe

Page 61: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Android apps can run using outdated OS behavior - The large majority of Android apps do this - Including popular and well maintained apps

Takeaways

Outdated security code invisibly permeates the app ecosystem - “Patched” security vulnerabilities still exist in the wild - “Risky by default” behavior is widespread

Page 62: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

What is target fragmentation?

Target fragmentation statistics

Security consequences

Roadmap

Page 63: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

“If the [operating system version of the device] is higher than the version declared by your app’s targetSdkVersion, the system may enable compatibility behaviors to ensure that your app continues to work the way you expect.”

- Android Developer Reference

Page 64: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

What is target fragmentation?

Target fragmentation statistics

Security consequences

Roadmap

Page 65: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

1,232,696 Android Apps

Popularity, Category, Update, and Developer metadata

Collected between May 2012 and Dec 2015

Broken into five datasets by collection date

Dataset

Page 66: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Android 5.0

Released

Android 5.1

Released

Android 6.0

Released

App Collecte

d

Outdatedness

Page 67: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 68: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 69: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

App Collecte

d

Outdatedness

App Updated

Negligent Outdatedness

Android 5.0

Released

Android 5.1

Released

Android 6.0

Released

Page 70: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 71: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

What is target fragmentation?

Target fragmentation statistics

Security consequences

Roadmap

Page 72: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mixed Content in WebView

Page 73: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Mixed Content in WebView

Major web browsers block Mixed Content

In Android 5.0, WebViews block Mixed Content by default

Can override default with setMixedContentMode()

Page 74: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 75: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 76: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

SOP for file:// URLs in WebView

Android 4.1 separate file:// URLs are treated as unique origins

Can override with setAllowFileAccessFromFileURLs()

Page 77: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 78: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware
Page 79: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Android apps can run using outdated OS behavior - The large majority of Android apps do this - Including popular and well maintained appsOutdated security code invisibly permeates the app ecosystem - “Patched” security vulnerabilities still exist in the wild - “Risky by default” behavior is widespread

Recap

Page 80: Mobile Malware - Sharifsharif.edu/~kharrazi/courses/40442-952/18-mobile-malware.pdf · bank and mobile accounts associated with infected devices.  ... • Mobile malware

Summary

• Mobile malware • Identifying malware – Detect at app store rather than on platform

• Classification study of mobile web apps – Entire Google Play market as of 2014 – 85% of approx 1 million apps use web interface

• Target fragmentation in Android – Out-of-date Apps may disable more recent

security platform patches