MalwareMind
End-to-end AI security demo that converts executable binaries into image representations for CNN-based malware family classification.
I owned the end-to-end implementation, from binary preprocessing and model training through backend inference, the web interface, and deployment.
- Python
- TensorFlow
- FastAPI
- Vue.js
- Vercel
- Classification Accuracy
- 95%+
- Prototype benchmark on the prepared malware image dataset.
The Challenge
Malware analysis often requires specialized tooling, signature databases, or manual inspection. MalwareMind explores whether executable files can be represented as images and classified using computer vision, with a web interface that makes the workflow easy to demonstrate.
Architecture
The backend converts an uploaded executable into a grayscale image, preprocesses the image for a CNN, and returns a malware family prediction for the web interface to display.
- UploadVue.js
Submit an executable from the web interface.
- Read file bytesFastAPI
Validate the request and read the uploaded file.
- Visual encoding
Map bytes to grayscale pixels, then resize and normalize the image.
- CNN inferenceTensorFlow
Score malware families from the image.
- Classification result
Show the predicted family and confidence.
Binary-to-Image Transformation
Executable files are not naturally image data.
A key challenge was converting raw binary content into a structured visual format that could preserve meaningful patterns for model training and inference.
The transformation process needed to produce consistent image inputs while still reflecting the internal structure of the executable file.
Model Training and Classification
The CNN model needed to learn visual patterns associated with different malware samples.
This required preprocessing consistency, appropriate input sizing, and careful handling of classification output so that the model could produce meaningful predictions instead of simply memorizing noisy binary artifacts.
Safe Demo Boundaries
Because the system accepts executable uploads, the demo needed clear boundaries around file handling, inference, and result presentation.
The application treats uploaded binaries as analysis inputs rather than executable programs, limiting the workflow to byte-level preprocessing and model inference instead of execution or sandbox behavior.
Web-based Malware Analysis Workflow
Malware detection tools are often command-line based or research-oriented.
MalwareMind was designed as an interactive web platform, which required connecting model inference with a usable frontend experience.
The application needed to support:
- File upload
- Detection progress feedback
- Prediction results
- Visual result summaries
- Clear user interaction flow
My Contributions
I owned the end-to-end implementation of MalwareMind, from binary preprocessing and model training through backend inference, frontend workflow, and deployment.
My work included:
- Designing the binary-to-image transformation pipeline for executable files
- Preparing malware image data for CNN training and inference
- Training and evaluating a CNN model for malware family classification
- Building the FastAPI backend for file handling, preprocessing, and model inference
- Developing the web interface for upload, detection, and result display
- Creating visual result summaries for classification outputs
- Deploying the application as an interactive AI security demo
Results & Product Evidence
The final platform successfully demonstrated:
- Image-based malware classification using CNN models
- Support for executable file upload and analysis
- Classification accuracy above 95%
- Interactive web-based detection workflow
- Visual result presentation for malware analysis
- End-to-end deployment as a usable security demo
The accuracy result reflects evaluation on the prepared malware image dataset for this project and should be read as a prototype benchmark rather than a production malware detection claim.
Engineering Takeaways
This project showed how cybersecurity problems can be reframed as machine learning and representation learning problems.
The most valuable insight was that malware detection is not only about model accuracy, but also about designing the full pipeline around the model: preprocessing, inference, interface design, and result interpretation.
MalwareMind helped me connect applied AI, backend development, and cybersecurity into a complete end-to-end system.
Future Directions
Potential future improvements include:
- Support for additional executable formats
- Larger malware family classification dataset
- Explainable AI visualizations for model decisions
- Static feature extraction combined with image-based detection
- Sandbox-based behavioral analysis integration
- Batch upload and report generation
- Model confidence calibration and risk scoring
Related Concepts
- Malware Detection
- Image-based Classification
- Convolutional Neural Networks
- Applied Machine Learning
- Cybersecurity Analytics
More projects
Continue exploring other systems across security, data pipelines, and applied AI.
PQ-SAT
A TLS data pipeline that turns Zeek observations into a cryptographic inventory and reports for post-quantum migration planning.
- Python
- DuckDB
- Polars
- PostgreSQL
Cybersecurity Compliance Intelligence
Structured regulatory mapping database for cross-referencing cybersecurity standards and compliance frameworks.
- Python
- SQLite
- GraphQL
- Metabase
Web Scraping & Data Extraction Pipelines
Repeatable Python extraction workflows that turn inconsistent semi-structured web sources into structured data for downstream analysis.
- Python
- Requests
- Selenium
- Airflow
Synapse
Collaborative learning map that helps AI study groups navigate topics, prerequisites, shared resources, and the group’s current learning focus.
- Next.js
- React
- TypeScript
- Supabase