Hybrid CNN-ViT model reaches 98% accuracy on malware image classification
Integrating raw-image CNN, wavelet CNN, and Vision Transformer improves malware family classification accuracy to 98.01% on Malimg.
AI/ML arXiv 4 Jul 2026 Method Prototype evidence
Published as “ThreatVisionAI: A Hybrid CNN-ViT Framework for Image-Based Malware Classification”
Why it matters
The high clean-data accuracy suggests the approach could improve static malware family triage, but the lack of adversarial robustness limits deployment in hostile environments without further defenses.
Summary
ThreatVisionAI reaches 98.01% accuracy and a weighted F1 of 0.9742 on the Malimg benchmark, showing that adding a wavelet-based CNN and a Vision Transformer improves image-based malware family classification. Ablation shows the wavelet branch yields the biggest gain, and the ViT adds a small but consistent boost. However, under a white-box FGSM attack accuracy collapses to 59.46% at ε=0.01, indicating strong adversarial vulnerability. The evidence is based on a single public dataset of 9,465 samples, with no evaluation on newer or larger corpora.
What they found 2
- The full hybrid model achieves 98.01% accuracy and 0.9742 weighted F1 on the Malimg test set.
“Full Hybrid (0.50/0.40/0.10) 0.9801 0.9742”
- Under FGSM white-box perturbations the hybrid accuracy drops to 59.46% at ε=0.01.
“Hybrid Accuracy 0.00 (clean) 0.9801 0.01 0.5946 0.03 0.1118 0.05 0.0784”
Caveats 3
- Adversarial robustness analysis shows accuracy falls from 98.01% to 59.46% with a small FGSM perturbation (ε=0.01), and to 7.84% at ε=0.05.
- Evaluation is conducted on Malimg alone, a dataset collected in 2011 whose 9,465 samples do not reflect the scale or diversity of contemporary malware ecosystems.
- Adversarial robustness analysis under FGSM confirms vulnerability to white-box evasion, and no testing against stronger attacks, such as PGD or dataset shift, has been conducted.
What’s new here 4
- Integrates a dedicated frequency-domain (wavelet) CNN alongside a raw-image CNN and a Vision Transformer.
- Uses weighted soft voting without additional trainable fusion parameters to combine branch predictions.
- Applies Grad-CAM to provide visual explanations of classification decisions.
- Evaluates white-box adversarial robustness (FGSM) for an image-based malware classifier.