An Efficient Random Forest Classifier for Detecting Malicious Docker Images in Docker Hub Repository
Authors:
Open Access
- 26 November 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. PP, 1
Abstract
The number of exploits of Docker images involving the injection of adversarial behaviors into the image’s layers is increasing immensely. Docker images are a fundamental component of Docker. Therefore, developing a machine learning classifier that effectively predicts and classifies whether a Docker image contains injected malicious behaviors is crucial as a proactive approach. This paper proposes a machine learning model to assess the feasibility of employing machine learning algorithms for detecting the security status of Docker images available in the Docker Hub repository. The paper develops a machine learning model for detecting malicious Docker images by using a newly created dataset containing Docker images associated with 14 corresponding features that were specifically chosen as they are critical indicators of potential security risks in Docker images, and the dataset was published for research purposes. Moreover, the paper developed and tested several machine learning algorithms using Docker image features: Naıve Bayes, Decision Tree, Random Forest, Gradient Boosting, Extreme Gradient Boosting, and Neural Network. The results show that the Random Forest classifier demonstrates exceptional accuracy, achieving a 99% F1-score and an AUC of 100%. This performance refers to its capability to accurately classify the images and effectively distinguish between secure and insecure images, in addition to the minimal error rate of less than 1%, outperforming state-of-the-art models to identify malicious Docker images.Keywords
This publication has 14 references indexed in Scilit:
- Artificial intelligence, machine learning and deep learning in advanced robotics, a reviewCognitive Robotics, 2023
- Static Vulnerability Analysis of Docker ImagesIOP Conference Series: Materials Science and Engineering, 2021
- DIVDS: Docker Image Vulnerability Diagnostic SystemIEEE Access, 2020
- KubAnomaly: Anomaly detection for the Docker orchestration platform with neural network approachesEngineering Reports, 2019
- Security Analysis and Threats Detection Techniques on Docker Container2019
- Emerging Trends, Techniques and Open Issues of Containerization: A ReviewIEEE Access, 2019
- A Study on Container Vulnerability Exploit Detection2019
- Webshell Detection Based on Random Forest–Gradient Boosting Decision Tree Algorithm2018
- Evaluation Metrics and Evaluation2018
- DockerFinder: Multi-attribute Search of Docker Images2017