Trainings

Objectives

Be able to analyze Android applications and understand the interaction with the system.

Synopsis

This training aims to give you the keys to analyze Android applications as well as their interactions with the system. The first part is focused on applications analysis, the second part on the system itself and the third part on a topic involving both the application and the system.

Target audience

Reverse engineers or analysts that are familiar with Android and who wish to understand Android internals as well as applications reversing.

Duration

5 days

Prerequisites

Basic knowledge on Linux and Android applications.

Modules

Day 1

  • Introduction:
    • Android Ecosystem
    • The SDK / NDK
    • AOSP
    • Environment setup
  • Android Application
    • File components (Manifest, Resources, Libraries, …)
    • Application components (Activities, Services, …)
    • The entrypoints
    • JNI

Day 2

  • Android Application
    • Reverse engineering techniques (Static analysis, dynamic analysis, hooking, …)
    • Protections (Obfuscation, packer, anti-debug, …)

Day 3: Android Internals

  • Overview
  • ARM architecture
  • [Optional] JNI reversing
  • Filesystem (/system/app, /user/data/, etc)
  • Zygote process
  • Service manager and permissions

Day 4: Android Internals

  • Android Runtime and file formats (DEX, ART, OAT, ODEX, VDEX, ELF)
  • IPC and Binder
  • Boot process
  • Securities (dm-verity, SELinux, …)

Day 5:

  • [Optional] Malware analysis
    • Analysis of some techniques used by advanced malwares such as Chrysaor
  • [Optional] ROM analysis
    • How they are structured, how to identify components added by a constructor, …
  • [Optional] Vulnerabilities Researching
    • Overview of vulnerabilities affecting android (Deserialization, Weak crypto, Unsecured Android components, …)