MALNOTWARE
Smart Defense. Seamless Security
Created on 13th April 2025
•
MALNOTWARE
Smart Defense. Seamless Security
The problem MALNOTWARE solves
project addresses the challenge of accurately detecting modern malware across multiple file types (.exe, .doc, .pdf, .zip, .bat, etc.), which traditional antivirus tools often fail to do.
Specifically, it solves:
-Inability to detect unknown or new malware — Traditional antivirus relies on static signatures, missing zero-day threats.
-High false positives/negatives — Legitimate files sometimes get flagged, while real threats slip through.
-Limited file type coverage — Many systems don't deeply scan formats like .txt, .docm, or .zip.
- Lack of intelligent fallback — Most tools don’t verify borderline cases with online intelligence like VirusTotal.
Challenges we ran into
We faced several technical and strategic challenges while building the malware detection system. A few notable ones include:
-
False Positives from Rule-Based Detection
Early on, our rule-based heuristics were flagging safe files (like VirtualBox executables) as malicious.
Fix: We balanced detection logic by incorporating ML-based models and adjusted thresholds, and added VirusTotal as a final fallback only when internal checks were inconclusive. -
No Proper Testing & Validation
Initially, our model was trained on the full dataset with no validation, causing overfitting.
Fix: We restructured the training pipeline with a proper train/validation/test split and evaluated performance using ROC-AUC and classification reports. -
VirusTotal Fallback Misfires
Sometimes VirusTotal was returning high detection scores for benign files, or not triggering at all due to early exits in logic.
Fix: We changed the logic to always consult VirusTotal at the final stage and compare results before deciding the verdict. -
Environment Path Confusion
Activating the virtual environment (emberenv) across multiple directories was confusing.
Fix: We relocated and unified environment setup and added absolute path support for easy activation from any directory. -
ZIP File Analysis
Extracting ZIPs with nested malicious files and scanning them dynamically was tricky.
Fix: We used Python’s tempfile and zipfile modules to extract and analyze each file individually in a secure, temp-isolated path.
Technologies used