Skip to content

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

SENTINEL AI – Android Malware Detection System

🌐 Live Project

🚀 Frontend (Vercel): https://apk-malware-detection.vercel.app/


Overview

SENTINEL AI is an AI-powered Android malware detection platform that analyzes APK files and application permissions to determine whether an Android application is malicious or benign.

The system uses a machine learning model trained on Android malware datasets and performs security analysis using:

  • APK static analysis (Androguard)
  • Permission-based feature extraction

Users can:

  • Upload an APK file for automated scanning
  • Analyze app risk manually using permissions

🆕 Recent Updates & Improvements

🚀 Deployment Enhancements

  • ✅ Deployed Frontend on Vercel
  • ✅ Deployed Backend on Render
  • ✅ Configured production API communication between frontend and backend

🔐 CORS Fix (Production Issue)

  • Fixed CORS errors by configuring Flask-CORS properly

  • Allowed frontend domain:

    https://apk-malware-detection.vercel.app
    

📁 File Upload Fix (Critical Bug)

  • Fixed FileNotFoundError by dynamically creating upload directory:

    os.makedirs("uploads", exist_ok=True)

🧹 File Management Improvement

  • Implemented automatic deletion of uploaded APK files

  • Ensures:

    • No storage overflow
    • Better security

⚡ Error Handling Improvements

  • Added try-catch blocks in backend
  • Prevented frontend crash due to invalid JSON responses

🔗 API Integration Fix

  • Replaced localhost URLs with production API:

    https://apkmalwaredetection.onrender.com
    
  • Added environment variable support:

    VITE_API_URL
    

🛠 Frontend Stability Improvements

  • Added API error handling
  • Prevented crashes on failed requests
  • Improved user feedback during scanning

Screenshots

🏠 Hero Section

Hero Section

📤 APK Upload & Analysis

APK Upload

🔍 Analyze Without APK

Analyze Without APK

📊 Threat Analysis Report

Threat Analysis Report


Key Features

  • APK malware detection using Machine Learning
  • Static APK analysis using Androguard
  • Permission-based threat detection
  • Real-time malware probability score
  • Threat classification (Low / Medium / High)
  • Suspicious permission detection
  • Interactive dashboard
  • APK upload & analysis
  • Manual permission analysis mode

Technology Stack

Frontend

  • React (Vite + TypeScript)
  • Tailwind CSS
  • Framer Motion
  • ShadCN UI

Backend

  • Python
  • Flask
  • Flask-CORS
  • Androguard

Machine Learning

  • Scikit-learn
  • Pandas
  • NumPy
  • Joblib

☁️ Deployment Architecture

Frontend (Vercel)
        │
        ▼
Backend API (Render)
        │
        ▼
APK Analyzer (Androguard)
        │
        ▼
ML Model (Scikit-learn)

Project Structure

.
├── Frontend/
├── Model/
│   ├── app.py
│   ├── apk_analyzer.py
│   ├── predict.py
│   ├── model/
│   └── uploads/

API Endpoints

🔹 Predict (Permission-Based)

POST /predict

🔹 Scan APK

POST /scan-apk

⚠️ Important Notes

  • Uploaded APK files are temporary
  • Files are automatically deleted after analysis
  • Static analysis only (no execution)

Future Enhancements

  • Deep Learning-based detection
  • Dynamic malware analysis
  • Real-time threat intelligence
  • Mobile app version
  • Multi-model ensemble system

Author

Developed as part of a Machine Learning & Cybersecurity Project


License

This project is for educational and research purposes only

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages