Darrius

AI Security · shipped

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.

  1. UploadVue.js

    Submit an executable from the web interface.

  2. Read file bytesFastAPI

    Validate the request and read the uploaded file.

  3. Visual encoding

    Map bytes to grayscale pixels, then resize and normalize the image.

  4. CNN inferenceTensorFlow

    Score malware families from the image.

  5. Classification result

    Show the predicted family and confidence.

The demo reads uploaded executables as data and never runs them.

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