This project presents a lightweight, privacy-respecting, signature-based malware detection system developed using TypeScript and Next.js. It can scan multiple file formats including .exe
, .docx
, .png
, .mp3
, .csv
, .json
, and more by matching known malware signatures in the hexadecimal content of the file.
- TypeScript
- Next.js
- React
- LocalStorage (for storing scan history)
- TailwindCSS (optional styling)
- HTML5 File API
- Static Hexadecimal Analysis
- Binary files:
.exe
,.bin
,.dat
- Text-based files:
.txt
,.log
,.csv
,.json
,.xml
- Document files:
.docx
,.pdf
- Media files:
.png
,.jpg
,.mp3
,.mp4
- Archives:
.zip
,.rar
- User uploads a file via the web interface.
- The first 10KB of the file is read and converted to hexadecimal.
- Each byte pattern is compared to a local database of known malware signatures.
- If a match is found, it reports the type, severity, and category of the malware.
- All scans are performed locally to preserve privacy.
git clone https://github.com/ullashdn/Signature-Based-Malware-Detection-System.git
cd Signature-Based-Malware-Detection-System
- ✅ Successfully detected embedded malware in various file types.
- 🧪 Benchmarked across clean and infected file samples.
- 💡 Real-time feedback with a clean UI.
- 📁 All scans are processed client-side.
- 🔒 Signature Scope: Only known (predefined) malware patterns can be detected.
- 🧬 Obfuscation: Cannot detect polymorphic or encrypted malware.
- 🔍 Scan Depth: The scan is limited to the first 10KB of each file.
- 📦 No Archive Unpacking: Files inside .zip or .rar are not extracted or analyzed.
- 🧠 No Heuristics or AI: No machine learning or behavior-based detection.
- 🕵️ Metadata Blind Spots: Steganographic and macro-based payloads may bypass detection.
- 📚 Heuristic + ML Integration: Combine static scanning with lightweight machine learning.
- 📦 Recursive Scan Engine: Support for scanning extracted contents of .zip, .rar, and embedded objects.
- ⌛ Full File Scanning: Expand beyond the 10KB limit for deeper analysis.
- 🌐 Signature Update Module: Include auto-updating mechanism for threat signature sets.
- 🧩 Browser Plugin: Convert the system into a Chrome/Firefox browser extension for real-time scanning.
- 🛡️ Offline Forensics Tool: Build a downloadable forensic toolkit with an exportable report interface.