
In this post we are going to discuss about android pentesting lab setup. Before Starting Android Penetration testing or any kind of Penetration testing we need a proper lab setup. In Android penetration testing lab setup is a dedicated, controlled environment of hardware, virtual devices, and software tools used to analyze Android applications, intercept traffic, reverse engineer code, and test for security vulnerabilities.
Lab Setup Requirements
Before starting, ensure that your system meets the following requirements:
Hardware Requirements
- Minimum 8 GB RAM (16 GB recommended).
- Intel or AMD 64-bit processor.
- At least 50 GB of free disk space.
- Stable internet connection.
Tools and Technologies
- Kali linux
- Physical Rooted Android Device or Android Emulator
- Burpsuite
- Frida
- Android Debug Bridge (ADB)
- Objection
- Mobsf
Setting up Kali Linux
Kali Linux is a popular Linux distribution used by security professionals for penetration testing and security research. It provides several pre-installed tools that help us perform different security testing activities.
We can install Kali Linux in two ways:
- Virtual Machine: Install Kali Linux using VMware or VirtualBox. This is a convenient option because it allows us to run Kali Linux alongside our existing operating system.
- Dual Boot: Install Kali Linux directly on the system alongside another operating system.
For beginners, using a virtual machine is generally recommended because it provides an isolated environment and makes it easier to create snapshots and restore the system whenever required.
Setting Up an Android Emulator or Physical Device
The next step is to prepare an Android device that will be used for application security testing.
We can use either a physical Android device or an Android emulator.
Option 1: Physical Android Device
A physical Android device provides a real-world testing environment. For penetration testing, a dedicated test device with root access can be useful because some security testing activities require elevated privileges.
Make sure that the device is not used for personal activities and does not contain sensitive information.
Option 2: Android Emulator
An Android emulator allows us to run Android applications without purchasing a separate physical device. We can create virtual Android devices with different Android versions and configurations.
Android Studio provides an Android Virtual Device (AVD) Manager that can be used to create and manage Android emulators.


For beginners, an Android emulator is a good starting point because it is easy to configure and can be reset whenever required.
Installing Android Debug Bridge (ADB)
ADB is a command-line tool that allows us to communicate with an Android device from our computer.
ADB is one of the most important tools in Android penetration testing. It helps us install applications, access device logs, inspect application packages, and interact with the Android device.
We can install ADB on Kali Linux using:
sudo apt install adb -y
After installation, check whether ADB is working:
adb version
To check whether the Android device is connected, use:
adb devices
If the device is connected properly and USB debugging is enabled, it should appear in the command output.
For an emulator, ADB connectivity is generally available automatically when the emulator is running.
Setting Up Burp Suite
Burp Suite is a web security testing tool that is widely used for intercepting and analyzing HTTP and HTTPS traffic.
In Android application penetration testing, Burp Suite helps us understand how an application communicates with its backend server. It allows us to inspect requests and responses, analyze API communication, and identify security issues related to network traffic.

To use Burp Suite with an Android device, we need to configure the device to route its network traffic through the Burp proxy.
The basic setup involves:
- Starting the Burp Suite proxy listener.
- Configuring the Android device to use the proxy.
- Installing the Burp CA certificate in the appropriate test environment.
- Verifying that application traffic is visible in Burp Suite.
One important thing to understand is that some Android applications implement certificate pinning. In such cases, HTTPS traffic may not be visible through a standard proxy configuration. We will cover this concept in the application testing section.
Installing Frida
Frida is a dynamic instrumentation toolkit used to analyze applications while they are running.
In Android penetration testing, Frida helps security testers observe application behavior, inspect runtime functions, and understand how an application handles sensitive operations.
It is particularly useful for dynamic analysis because it allows us to investigate application behavior without modifying the original application source code.
Frida has two main components:
- Frida Client: Runs on the testing machine and is used to communicate with the target application.
- Frida Server: Runs on the Android test device and provides the instrumentation interface.
We can install the Frida tools on Kali Linux using:
pip install frida-tools
Verify the installation:
frida --version
Make sure the Frida client and server versions are compatible.
Installing Objection
Objection is a runtime mobile exploration toolkit powered by Frida. It makes dynamic application testing easier by providing a convenient command-line interface.
Instead of writing Frida scripts for every basic testing activity, we can use Objection to explore application components and investigate runtime behavior.
Some common uses of Objection include:
- Exploring application directories.
- Inspecting application storage.
- Analyzing runtime behavior.
- Investigating application security configurations.
- Performing authorized runtime security assessments.
Install Objection using:
pip install objection
Verify the installation:
objection --help
Objection is especially useful for testers who are getting started with Android application security testing.
Setting Up MobSF
MobSF (Mobile Security Framework) is an automated mobile application security testing framework. It supports both static and dynamic analysis of Android applications.
It helps us identify potential security issues in an APK without manually analyzing every component.
Some of the information MobSF can provide includes:
- Application permissions.
- Application components.
- Hardcoded secrets and sensitive information.
- Security-related configuration issues.
- Insecure code patterns.
- Network security configurations.
- Potential vulnerabilities in the application.

MobSF can be installed using Docker, which is a convenient way to manage its dependencies and environment.
Official project and installation instructions: https://github.com/MobSF/Mobile-Security-Framework-MobSF
Downloading Android Test Applications
Once our lab is ready, we need some Android applications to practice security testing.
For learning purposes, we should start with intentionally vulnerable Android applications. These applications are designed to help beginners understand common Android security issues in a safe environment.
Some popular Android security testing applications include:
- DIVA (Damn Insecure and Vulnerable App): An intentionally vulnerable Android application designed for learning mobile application security.
- InsecureBankv2: A vulnerable banking application used to practice Android application security testing.
- AndroGoat: An intentionally vulnerable Android application covering different mobile security weaknesses.
Only use applications that you are authorized to test, and keep vulnerable applications inside your dedicated lab environment.
Conclusion
Setting up a proper Android penetration testing lab is the first and most important step before starting Android application security testing. With Kali Linux, an Android emulator or physical device, Burp Suite, Frida, ADB, Objection, and MobSF, we have the basic environment required to perform both static and dynamic analysis.
Once the lab is ready, we can move towards the actual Android penetration testing process, where we will learn how to analyze APK files, understand application architecture, inspect network traffic, examine local storage, and identify common Android security vulnerabilities.
Leave a Reply