techhimanshu001/FlagSenseAI

This project is an AI-powered APK analysis tool that leverages the CodeGemma language model to assist in reverse engineering and deobfuscation of Android applications. It automates the process of decompiling APK files, extracting and analyzing Java code, and uses advanced natural language processing to identify potential flags, secrets.

1

stars

3

commits

Python

primary language

Aug 10, 2025

updated

README

FlagSenseAI πŸ”

An AI-powered APK analysis tool that leverages the CodeGemma language model to assist in reverse engineering and deobfuscation of Android applications.

Features

  • πŸ€– Uses CodeGemma 2B model for code analysis
  • πŸ“± Decompiles APK files using JADX
  • πŸ” Detects potential flags, secrets, and debug bypasses
  • πŸ’‘ Provides clear explanations of code functionality
  • ✨ Suggests improved naming for variables and methods

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file with your Hugging Face token:
HUGGING_FACE_TOKEN=your_token_here
  1. Place your APK file in the apk directory

Usage

python scripts/decompile.py  # Decompile APK
python scripts/analyze.py    # Run AI analysis

Project Structure

  • scripts/ - Python source code
    • decompile.py - APK decompilation logic
    • ai_model.py - CodeGemma integration
    • extract_flags.py - Flag detection
  • apk/ - APK files for analysis
  • decompiled/ - Decompiled Java code
  • ai_output/ - Analysis results

Contributors

techhimanshu001/FlagSenseAI

This project is an AI-powered APK analysis tool that leverages the CodeGemma language model to assist in reverse engineering and deobfuscation of Android applications. It automates the process of decompiling APK files, extracting and analyzing Java code, and uses advanced natural language processing to identify potential flags, secrets.

1

stars

3

commits

Python

primary language

Aug 10, 2025

updated

README

FlagSenseAI πŸ”

An AI-powered APK analysis tool that leverages the CodeGemma language model to assist in reverse engineering and deobfuscation of Android applications.

Features

  • πŸ€– Uses CodeGemma 2B model for code analysis
  • πŸ“± Decompiles APK files using JADX
  • πŸ” Detects potential flags, secrets, and debug bypasses
  • πŸ’‘ Provides clear explanations of code functionality
  • ✨ Suggests improved naming for variables and methods

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file with your Hugging Face token:
HUGGING_FACE_TOKEN=your_token_here
  1. Place your APK file in the apk directory

Usage

python scripts/decompile.py  # Decompile APK
python scripts/analyze.py    # Run AI analysis

Project Structure

  • scripts/ - Python source code
    • decompile.py - APK decompilation logic
    • ai_model.py - CodeGemma integration
    • extract_flags.py - Flag detection
  • apk/ - APK files for analysis
  • decompiled/ - Decompiled Java code
  • ai_output/ - Analysis results

Contributors

Languages

Python

79.8%

JavaScript

13.4%

HTML

5.3%

CSS

1.4%