A web-based security analysis tool that identifies file types and detects malware using VirusTotal's API.
- 🔍 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
- Backend: Python, Flask
- Frontend: HTML5, CSS3, JavaScript
- API: VirusTotal API v3
- Security: SHA-256, Environment Variables
- Deployment: Render / Railway / PythonAnywhere
- Python 3.10 or higher
- VirusTotal API Key (free)
- Clone the repository
git clone https://github.com/Sanche3t/file-analyzer.git
cd file-analyzer- Install dependencies
pip install -r requirements.txt- Set up environment variables
cp .env.example .envThen edit .env and add your VirusTotal API key:
VIRUSTOTAL_API_KEY=your_actual_api_key_here
- Run the application
python app.py- Open in browser
http://127.0.0.1:5000
- Sign up at VirusTotal
- Go to your profile → API Key
- Copy your API key
- Add it to
.envfile
Free tier limits:
- 4 requests per minute
- 500 requests per day
Screenshots coming soon
- Upload - User uploads a file via drag-and-drop or file picker
- Analyze - Backend calculates SHA-256 hash and identifies file type using magic numbers
- Scan - Queries VirusTotal API with file hash
- Display - Shows results with visual threat assessment gauge
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
This project can be deployed on:
- Render (Recommended)
- Railway
- PythonAnywhere
- Heroku
See deployment guide in the repository.
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
This project is open source and available under the MIT License.
Sancheet Pawar
⭐ If you found this project helpful, please give it a star!
Built with ❤️ using Python & Flask :)