The Android Malware Handbook: Detection and Analysis by Human and Machine

Front Cover
Written by machine-learning researchers and members of the Android Security team, this all-star guide tackles the analysis and detection of malware that targets the Android operating system.

This groundbreaking guide to Android malware distills years of research by machine learning experts in academia and members of Meta and Google’s Android Security teams into a comprehensive introduction to detecting common threats facing the Android eco-system today.

Explore the history of Android malware in the wild since the operating system first launched and then practice static and dynamic approaches to analyzing real malware specimens. Next, examine machine learning techniques that can be used to detect malicious apps, the types of classification models that defenders can implement to achieve these detections, and the various malware features that can be used as input to these models. Adapt these machine learning strategies to the identifica-tion of malware categories like banking trojans, ransomware, and SMS fraud.

You’ll:

  • Dive deep into the source code of real malware
  • Explore the static, dynamic, and complex features you can extract from malware for analysis
  • Master the machine learning algorithms useful for malware detection
  • Survey the efficacy of machine learning techniques at detecting common Android malware categories

The Android Malware Handbook’s team of expert authors will guide you through the Android threat landscape and prepare you for the next wave of malware to come.

Contents

The Android Package
10
Up Next
26
Android Malware in the Wild
27
2013 and 2014
35
2015 and 2016
42
2017 and Onward
54
Up Next
67
Static Analysis
71
Machine Learning Features
181
Triadic Suspicion Graph Features
187
56
194
LandmarkBased Features
195
Feature Clustering
199
Rooting Malware
205
57
211
Rooting Malware vs Other Malware
214

Loading the Malware Sample into jadx
73
Hiding Malicious Code
81
Name Mangling
92
CommandandControl Server Communication
100
27
105
The Mysterious Fourth Stage
111
35
112
Dynamic Analysis
115
The Android Studio Emulator
117
36
125
Analysis with Frida
127
CommandandControl Server Messages
138
Adding Static Analysis
145
54
154
Up Next
157
Machine Learning Fundamentals
161
Classification Algorithms
167
Evaluating Machine Learning Models
174
Spyware
219
Spyware vs Goodware
220
A Case Study
227
Up Next
233
Banking Trojans
235
Banking Trojans vs Other Malware
242
A Case Study
246
Ransomware
251
How Ransomware Attacks Work
252
Ransomware vs Other Malware
258
Predictions for Important Ransomware Samples
264
SMS Fraud
267
SMS Fraud vs Other Malware
275
The Future of Android Malware
283
Distribution
289
Malware Economics
291
58
295
Copyright

Common terms and phrases

About the author (2023)

Qian Han, Research Scientist at Meta since 2021, received his PhD in Computer Science from Dartmouth College and his Bachelor’s in Electronic Engineering from Tsinghua University, Beijing, China.

Salvador Mandujano, Security Engineering Manager at Google, has led product security engineering, malware reverse engineering and payments security teams. Before Google, he held senior security research and architecture positions at Intel and Nvidia. He has a PhD in Artificial Intelligence from Tecnol�gico de Monterrey, an MSc in Computer Science from Purdue, an MBA from The University of Texas, and a BSc in Computer Engineering from Universidad Nacional Aut�noma de M�xico.

Sebastian Porst is manager of Google’s Android Application Security Research team, which tries to predict or research novel attacks on Android devices and Android users by malware or through app vulnerabilities. He has an MSc Masters from Trier University of Applied Sciences, Germany in 2007.

V.S. Subrahmanian is the Walter P. Murphy Professor of Computer Science and Buffet Faculty Fellow in the Buffet Institute of Global Affairs at Northwestern University. Prof. Subrahmanian is one of the world’s foremost experts at the intersection of AI and security issues. He has written eight books, edited ten, and published over 300 refereed articles.

Sai Deep Tetali, Principal Engineer and Tech Lead Manager at Meta, works on privacy solutions for augmented and virtual reality applications. He spent 5 years at Google developing machine learning techniques to detect Android malware and has a PhD from University of California Los Angeles.

Yanhai Xiong is currently an Assistant Professor in the Department of Computer Science and Engineering at the University of Louisville. She has a PhD from Nanyang Technological University focusing on applying AI techniques to improve the efficiency of electric vehicle infrastructure and a BS in Engineering from the University of Science and Technology of China.

Bibliographic information