Skip to content

About

Web-based file type identifier and malware scanner using VirusTotal API"

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

🔍 File Analyzer

A web-based security analysis tool that identifies file types and detects malware using VirusTotal's API.

Python Flask License

✨ Features

  • 🔍 File Type Detection - Analyzes file signatures (magic numbers) to identify file types
  • 🔐 SHA-256 Hashing - Generates cryptographic hash fingerprints
  • 🛡️ Malware Scanning - Scans files against 70+ antivirus engines via VirusTotal API
  • 📊 Visual Safety Ratings - Interactive circular gauge showing threat assessment
  • 🎨 Modern UI - Clean, dark-themed responsive interface

🚀 Live Demo

Try it Live →

🛠️ Tech Stack

  • Backend: Python, Flask
  • Frontend: HTML5, CSS3, JavaScript
  • API: VirusTotal API v3
  • Security: SHA-256, Environment Variables
  • Deployment: Render / Railway / PythonAnywhere

📦 Installation

Prerequisites

  • Python 3.10 or higher
  • VirusTotal API Key (free)

Setup

  1. Clone the repository
git clone https://github.com/Sanche3t/file-analyzer.git
cd file-analyzer
  1. Install dependencies
pip install -r requirements.txt
  1. Set up environment variables
cp .env.example .env

Then edit .env and add your VirusTotal API key:

VIRUSTOTAL_API_KEY=your_actual_api_key_here
  1. Run the application
python app.py
  1. Open in browser
http://127.0.0.1:5000

🔑 Getting VirusTotal API Key

  1. Sign up at VirusTotal
  2. Go to your profile → API Key
  3. Copy your API key
  4. Add it to .env file

Free tier limits:

  • 4 requests per minute
  • 500 requests per day

📸 Screenshots

Screenshots coming soon

🎯 How It Works

  1. Upload - User uploads a file via drag-and-drop or file picker
  2. Analyze - Backend calculates SHA-256 hash and identifies file type using magic numbers
  3. Scan - Queries VirusTotal API with file hash
  4. Display - Shows results with visual threat assessment gauge

📁 Project Structure

file-analyzer/
├── app.py                 # Flask application & API logic
├── templates/
│   └── index.html        # Frontend interface
├── uploads/              # Temporary file storage (auto-created)
├── requirements.txt      # Python dependencies
├── .env.example         # Environment variables template
├── .gitignore           # Git ignore rules
└── README.md            # Project documentation

🚀 Deployment

This project can be deployed on:

  • Render (Recommended)
  • Railway
  • PythonAnywhere
  • Heroku

See deployment guide in the repository.

🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest features
  • Submit pull requests

📄 License

This project is open source and available under the MIT License.

👨‍💻 Author

Sancheet Pawar

GitHub LinkedIn


⭐ If you found this project helpful, please give it a star!

Built with ❤️ using Python & Flask :)

About

Web-based file type identifier and malware scanner using VirusTotal API"

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages