Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PrathicaShettyM/MalVisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Malvisor - ML-Powered Static Malware Analysis Platform

Python React Flask Vite TailwindCSS LightGBM

πŸ” A comprehensive static malware analysis platform powered by machine learning that provides deep insights into Windows PE files and DLLs with intelligent threat detection and severity scoring.

🌟 Overview

Malvisor is an advanced static malware analysis platform that combines the power of machine learning with comprehensive file analysis to detect and classify various types of malware. Built with modern web technologies and powered by Google's Gemini AI, it provides security researchers, analysts, and developers with a robust tool for malware detection and analysis.

✨ Key Features

πŸ“ File Analysis Engine

  • 🎯 Targeted File Support: Accepts only PE (Portable Executable) files and DLLs for focused Windows malware analysis
  • ⚑ Static Analysis: Performs comprehensive static analysis without executing potentially harmful files
  • πŸ”¬ Deep Feature Extraction: Extracts critical static features for ML-based classification

πŸ€– Machine Learning Detection

  • 🧠 LightGBM Model: Utilizes advanced gradient boosting for accurate malware classification
  • πŸ“Š Multi-Class Classification: Detects 10 different malware families and benign files
  • 🎯 High Accuracy: Trained on extensive datasets for reliable threat detection

πŸ“ˆ Comprehensive Reporting

  • πŸ“‹ Detailed Analysis Reports: In-depth analysis with extracted features and classifications
  • ⭐ Severity Scoring: Intelligent severity assessment based on threat level
  • πŸ’Ύ Downloadable Reports: Export analysis results in PDF format for documentation
  • πŸ€– AI-Powered Insights: Gemini AI integration for interactive report analysis

🦠 Detected Malware Families

Malvisor can identify the following malware categories:

🏷️ Category πŸ“ Description 🚨 Severity Level
πŸ”’ Ransomware Encrypts user data for ransom πŸ”΄ Critical
🐴 Trojan Disguised malicious software 🟠 High
πŸ› Worm Self-replicating network spreader 🟠 High
πŸ“Ί Adware Unwanted advertisement software 🟑 Medium
πŸ‘οΈ Spyware Covert information gathering 🟠 High
πŸšͺ Backdoor Unauthorized remote access πŸ”΄ Critical
⌨️ Keylogger Keystroke monitoring software 🟠 High
πŸ“¦ Dropper Malware delivery mechanism 🟠 High
🌿 Rootkit System-level hiding malware πŸ”΄ Critical
βœ… Benign Safe, legitimate software 🟒 Safe

πŸ”¬ Static Feature Analysis

Malvisor extracts and analyzes the following critical features:

πŸ“Š Structural Features

  • num_imports πŸ“₯: Number of imported functions and libraries
  • section_count πŸ“‘: Count of PE file sections
  • filesize πŸ“: File size in bytes

πŸ”’ Entropy Analysis

  • entropy_mean πŸ“Š: Average entropy across file sections
  • entropy_max πŸ“ˆ: Maximum entropy value found
  • entropy_min πŸ“‰: Minimum entropy value found

πŸ”€ String Analysis

  • string_count πŸ“: Total number of extracted strings
  • suspicious_string_count ⚠️: Count of potentially malicious strings

These features are processed through our trained LightGBM model to provide accurate malware classification and threat assessment.

πŸ› οΈ Technology Stack

🎨 Frontend

  • React 18+ βš›οΈ: Modern component-based UI framework
  • Vite ⚑: Next-generation frontend build tool for blazing fast development
  • TailwindCSS 🎨: Utility-first CSS framework for rapid UI development

πŸ”§ Backend

  • Flask 🐍: Lightweight Python web framework for API development
  • LightGBM πŸ€–: Gradient boosting framework for machine learning inference

🧠 AI Integration

  • Google Gemini API πŸ’Ž: Advanced AI for intelligent report analysis and interactive querying

πŸ“š Core Libraries & Dependencies

πŸ” Analysis Libraries

  • pefile πŸ“: Python library for parsing PE (Portable Executable) files

    • Extracts headers, sections, imports, and metadata from Windows executables
    • Essential for structural analysis of PE files and DLLs
  • string πŸ”€: Built-in Python module for string operations and constants

    • Used for extracting and analyzing printable strings from binary files
    • Helps identify suspicious text patterns and embedded URLs
  • hashlib πŸ”: Cryptographic hash functions library

    • Generates MD5, SHA1, SHA256 hashes for file identification
    • Creates unique fingerprints for malware samples
  • capstone πŸ”§: Disassembly framework for multiple architectures

    • Disassembles x86/x64 machine code for static code analysis
    • Enables detection of malicious code patterns and behaviors

πŸ“„ Report Generation

  • jspdf πŸ“‹: JavaScript library for PDF generation

    • Creates downloadable analysis reports in PDF format
    • Enables professional documentation of analysis results
  • react-markdown πŸ“: React component for rendering Markdown content

    • Displays formatted analysis reports and documentation
    • Provides rich text rendering capabilities for better readability

πŸš€ Getting Started

πŸ“‹ Prerequisites

  • Node.js 16+ and npm
  • Python 3.8+
  • Google Gemini API key

πŸ”§ Installation

  1. Clone the repository

    git clone https://github.com/PrathicaShettyM/Malvisor.git
  2. Setup Frontend

    cd client
    npm install
    npm run dev
  3. Setup Backend

    cd server
    pip install -r requirements.txt
    python app.py
  4. Configure Environment

    # Add your Gemini API key to environment variables
    export GEMINI_API_KEY=your_api_key_here

πŸ’‘ Usage

  1. πŸ“€ Upload File: Select and upload a PE file or DLL through the web interface
  2. ⏳ Analysis: The system automatically extracts static features and processes them through the ML model
  3. πŸ“Š Results: View comprehensive analysis results including malware classification and severity score
  4. πŸ€– AI Insights: Use the Gemini AI bot to ask questions about the analysis report
  5. πŸ’Ύ Export: Download detailed PDF reports for documentation and further analysis

πŸ”’ Security Features

  • πŸ›‘οΈ Safe Analysis: Static analysis only - no file execution
  • πŸ” Comprehensive Detection: Multi-layered feature extraction and analysis
  • πŸ“ˆ Severity Assessment: Intelligent threat level classification
  • πŸ€– AI-Enhanced: Gemini AI provides additional insights and explanations

🀝 Contributing

We welcome contributions! Please feel free to submit issues, feature requests, or pull requests to help improve Malvisor.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ›‘οΈ Stay Safe, Analyze Smart with Malvisor! πŸ›‘οΈ

Made by Prathica Shetty M

About

This is a all-in-one static malware analysis platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published