Skip to main content
QUICK REVIEW

[Paper Review] Lightweight Classification of IoT Malware based on Image Recognition

Jiawei Su, Danilo Vargas|arXiv (Cornell University)|Feb 11, 2018
Advanced Malware Detection TechniquesComputer Science16 references34 citations
TL;DR

This paper proposes a lightweight, CNN-based malware classification system that converts IoT malware binaries into grayscale images for detection using a two-layer convolutional neural network. It achieves 94.0% accuracy in distinguishing benign software from DDoS malware and 81.8% accuracy in classifying among benign, Mirai, and Gafgyt families, demonstrating feasibility for deployment on resource-constrained IoT devices.

ABSTRACT

The Internet of Things (IoT) is an extension of the traditional Internet, which allows a very large number of smart devices, such as home appliances, network cameras, sensors and controllers to connect to one another to share information and improve user experiences. Current IoT devices are typically micro-computers for domain-specific computations rather than traditional functionspecific embedded devices. Therefore, many existing attacks, targeted at traditional computers connected to the Internet, may also be directed at IoT devices. For example, DDoS attacks have become very common in IoT environments, as these environments currently lack basic security monitoring and protection mechanisms, as shown by the recent Mirai and Brickerbot IoT botnets. In this paper, we propose a novel light-weight approach for detecting DDos malware in IoT environments.We firstly extract one-channel gray-scale images converted from binaries, and then utilize a lightweight convolutional neural network for classifying IoT malware families. The experimental results show that the proposed system can achieve 94.0% accuracy for the classification of goodware and DDoS malware, and 81.8% accuracy for the classification of goodware and two main malware families.

Motivation & Objective

  • To address the lack of lightweight, on-device malware detection solutions for IoT devices, which are vulnerable to botnet-based DDoS attacks due to limited computational resources.
  • To overcome the scarcity of real IoT malware samples by developing a system tested on actual, recently collected Mirai and Gafgyt malware samples from an IoT honeypot.
  • To enable local, real-time malware classification on IoT devices by leveraging image-based representation of binaries and a minimal deep learning model.
  • To demonstrate that a shallow, lightweight CNN can achieve high detection accuracy without requiring complex preprocessing or large models.
  • To provide a first-stage classifier for IoT malware that can be used on-device, with more detailed family classification offloaded to cloud-based systems.

Proposed method

  • Convert raw IoT malware and benign application binaries into single-channel grayscale images by interpreting binary bytes as pixel intensities.
  • Train a two-layer convolutional neural network (CNN) on these image representations to classify malware families and benign software.
  • Use a lightweight architecture with minimal fully connected layers and low-dimensional input to ensure low computational cost and feasibility on IoT devices.
  • Apply standard CNN operations such as convolution, ReLU activation, and pooling to extract spatial features from the image-formatted binaries.
  • Optimize the model for inference efficiency by minimizing parameters and avoiding complex operations, enabling deployment on devices with limited processing power.
  • Utilize a custom dataset of real-world IoT malware (Mirai, Gafgyt) and benign binaries collected via a dedicated IoT honeypot to train and evaluate the system.

Experimental results

Research questions

  • RQ1Can a lightweight CNN-based system effectively classify IoT malware using image representations of binary files on resource-constrained devices?
  • RQ2How does the performance of the proposed image-based malware classification system compare to existing approaches in terms of accuracy and model size?
  • RQ3To what extent do IoT malware families like Mirai and Gafgyt exhibit visual similarities in their binary-to-image representations, affecting classification accuracy?
  • RQ4Is it feasible to deploy a small, efficient CNN for on-device malware detection without relying on external cloud processing?
  • RQ5How does the proposed method compare to traditional machine learning classifiers (e.g., SVM, KNN) in terms of computational overhead and scalability for IoT environments?

Key findings

  • The proposed system achieves 94.0% accuracy in distinguishing benign software from DDoS malware in a two-class classification task.
  • The system reaches 81.8% accuracy in a three-class classification task, differentiating between benign software, Mirai, and Gafgyt malware families.
  • All misclassified malware samples in the three-class setting belong to the Gafgyt family, with 6.67% of Gafgyt samples incorrectly labeled as benign.
  • No Mirai samples were misclassified as benign, indicating that Mirai binaries are more visually distinct from benign software than Gafgyt binaries.
  • The model's performance is robust despite its minimal architecture, with only two convolutional layers and a small number of parameters, making it suitable for edge deployment.
  • The system outperforms or matches previous works in accuracy while using a significantly smaller and more efficient model, particularly when compared to deep networks like VGG used in similar tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.