Vol.69, No.1, 2021, pp.1159-1181, doi:10.32604/cmc.2021.016938
Detecting Man-in-the-Middle Attack in Fog Computing for Social Media
  • Farouq Aliyu1,*, Tarek Sheltami1, Ashraf Mahmoud1, Louai Al-Awami1, Ansar Yasar2
1 King Fahd University of Petroleum and Minerals, Dhahran, 31261, Saudi Arabia
2 Transportation Research Institute (IMOB), Hasselt University, Hasselt, 3500, Belgium
* Corresponding Author: Farouq Aliyu. Email:
(This article belongs to this Special Issue: Powering the Future Intelligence - Ambient Social Media Analytics)
Received 15 January 2021; Accepted 02 April 2021; Issue published 04 June 2021
Fog computing (FC) is a networking paradigm where wireless devices known as fog nodes are placed at the edge of the network (close to the Internet of Things (IoT) devices). Fog nodes provide services in lieu of the cloud. Thus, improving the performance of the network and making it attractive to social media-based systems. Security issues are one of the most challenges encountered in FC. In this paper, we propose an anomaly-based Intrusion Detection and Prevention System (IDPS) against Man-in-the-Middle (MITM) attack in the fog layer. The system uses special nodes known as Intrusion Detection System (IDS) nodes to detect intrusion in the network. They periodically monitor the behavior of the fog nodes in the network. Any deviation from normal network activity is categorized as malicious, and the suspected node is isolated. Exponentially Weighted Moving Average (EWMA) is added to the system to smooth out the noise that is typically found in social media communications. Our results (with 95% confidence) show that the accuracy of the proposed system increases from 80% to 95% after EWMA is added. Also, with EWMA, the proposed system can detect the intrusion from 0.25–0.5 s seconds faster than that without EWMA. However, it affects the latency of services provided by the fog nodes by at least 0.75–1.3 s. Finally, EWMA has not increased the energy overhead of the system, due to its lightweight.
Fog computing; man-in-the-middle attack; intrusion detection system and prevention system; network security; social media
Cite This Article
F. Aliyu, T. Sheltami, A. Mahmoud, L. Al-Awami and A. Yasar, "Detecting man-in-the-middle attack in fog computing for social media," Computers, Materials & Continua, vol. 69, no.1, pp. 1159–1181, 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.