How to Set Up and Use Adhrit: Your Go-To Android APK Reversing and Analysis Tool

Jan 27, 2024 | Programming

Welcome to the world of mobile security! In this article, we will go step by step on how to set up and utilize Adhrit, an open-source suite designed for Android APK reversing and analysis. Whether you’re new to mobile security or an experienced professional, this guide will help you get started with Adhrit.

What is Adhrit?

Adhrit is a robust tool aimed at meeting the diverse needs of mobile security testing and automation. Developed to provide a flexible and modular approach, it leverages the Ghera benchmarks to detect vulnerability patterns in Android applications. The suite is constantly updated to integrate the latest methodologies and tools.

Key Features of Adhrit

  • Manifest Analysis: This includes package name, debug status, exported components, deep links, implicit intent filters, and critical permissions.
  • Bytecode Analysis: Dive into usage analysis via SQLite DBs and SharedPreferences and spot vulnerabilities like ICC, web and storage issues, networking pitfalls, and crypto vulnerabilities.
  • Secrets Analysis: Uncover hidden URLs, API tokens, and strings from native libraries.

Pre-requisites

  • Operating System: Linux or MAC
  • Python3
  • Java JDK

Quick Setup

Here’s how you can set up Adhrit and start analyzing Android APKs:

  1. Download the zip or clone the package by running the command: git clone https://github.com/abhi-r3v0/Adhrit.git.
  2. Navigate to the tool’s directory and run the setup script: python3 run.py. This script will automatically install all necessary dependencies for you.

Using Docker

If you prefer using Docker, follow these steps:

  1. Run the command: docker-compose up.
  2. Visit http://127.0.0.1:4200 in your browser.

How to Perform an APK Analysis

To analyze an APK using Adhrit, simply execute:

python3 run.py

This command launches the web interface, allowing you to upload the APK and generate a report. If the UI doesn’t launch automatically, you can manually navigateto http://localhost:4200.

Troubleshooting

If you encounter any issues during setup or use, here are some common solutions:

  • Problem: Adhrit not starting. Ensure that you’re using compatible versions of Python3 and Java JDK, and revisit the installation steps to ensure all dependencies are correctly installed.
  • Problem: UI not launching. Check if the command was executed properly. If it fails to launch automatically, try accessing localhost:4200 directly.
  • Problem: Dependency issues. Some dependencies may fail to install. Make sure they are present in your package manager or try installing them manually.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

The Final Cuts

Adhrit is continually evolving, aiming to incorporate cutting-edge methodologies and tools for Android APK analysis. As you embark on your mobile security journey, make sure to take advantage of the awesome tools and resources available, such as apktool and jd-cli.

Conclusion

With Adhrit, you can enhance your mobile security testing effectively and efficiently. Whether you’re analyzing apps for vulnerabilities or ensuring compliance with security standards, Adhrit is here to help!

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox